JGeometry and SDO_BUFFER of geodetic coordinates

I can successfully execute SQL that will create a "circle" around a geodetic lat/long using the SDO_BUFFER. The goal is to persist the resulting "circle" that SDO_BUFFER calculates. However, even using JGeometry, I still get the error "Too Many Values" when inserting over JDBC.
How can I execute the following SQL via JDBC? I'm using the JGeometry to "wrap" the point; however, I don't see how to use SDO_BUFFER.
The following is the prepared statement:
insert into t1 (?, ?, SDO_GEOM.SDO_BUFFER(?), ?, ?, ?, ?, ?)
// create a JGeometry for the point reprenting the lat/long
JGeometry landmarkGeo = JGeometry.createPoint(new double[]{latLong.getLongitude(), latLong.getLatitude()}, JGeometry.GTYPE_POINT, 8307);
STRUCT struct = JGeometry.store(landmarkGeo, conn);
stmt.setObject(3, struct);

Your call to sdo_buffer is not correct (syntax error), so it ends up
sending too many values to the table.
> insert into t1 (?, ?, SDO_GEOM.SDO_BUFFER(?), ?, ?, ?, ?, ?)
This closing ")" for sdo_buffer is not in the right place.
Depending on which signature you are using for buffer, move
the ")" to the right place.
How many columns are there in your table ?
siva

Similar Messages

  • Connection between 2 points in a geodetic coordinate system

    In a geodetic coordinate system the connection between two points is a geodetic line or "great circle" (the shortest connection between two points on the surface of the earth).
    Since Oracle 9i distances and queries like "Is a point outside or inside the polygon" are computed correctly for a geodetic coordinate system.
    Even though a circle or arc is not allowed in a geodetic coordinate system (like WGS84 - SRID 8307)
    arcs and circles are used in geographic applications like aeronautical maps.
    Frequently a special area is defined like this "10 nautical miles around airport XXXX"
    and this area is shown as a circle in aeronautical maps (in the projection).
    The function SDO_UTIL.CIRCLE_POLYGON (in Oracle 10g) is very useful to construct such kind of areas and for queries like
    "Does the area belonging to airport XXXX overlap with the area belonging to airport YYYY?".
    For Oracle 8i we had to write special PL/SQL code.
    Another type of connection between two points that is frequently used is a line of equal latitude (parallel).
    Many boundaries are defined like "from meridian (longitude) 30°E to meridian 31°E along parallel 47.5°N".
    If this line is a border of a polygon and if we use a direct connection (geodetic line) and we ask if a point is
    inside or outside the polygon, we will not get the correct answer if the point is close north to this line.
    We have to approximate the line and add points e.g. every 0.1° longitude (30.1,30.2,30.3...), then the answer will be correct.
    My question:
    Are there plans to support circles of equal latitude or generally rhumb lines as a type of connection between two points?
    Karl Mann

    There are no plans to support rhumb lines, also know as loxodromes, and including the special case of parallels of latitude, at this time. Note that it is easy to simulate such rhumb lines with a sufficiently dense set of sampled points. Such a densification is implemented implicitly for parallels in the VIEWPORT_TRANSFORM function so that the concept of the "geodetic minimum bounding rectangle" can be supported, primarily for visualization applications.

  • Is it possible to locate a point using Latitude and Longitude or UMT coordinates in MAP?

    Is it possible to locate a point in Maps using lattitude and longitude or UMT coordinates on my iPhone?    

    Here's one:
    https://itunes.apple.com/us/app/utm-convert/id402708997?mt=8
    I don't use them, so can't recommend one over the other.

  • How to make a robot roam and simultaneously display its coordinate using other vi

    Hi i am using Cricket to find the coordinates of moving robot as my receiver is attached to the robot.I made a vi which can extract the exact coordinates using my CRICKET sensor data.How to move a robot and simultaneously display its coordinates.In turn moving the robot usin roaming Vi as well as same time my VI display its coordinate.

    Hi,
    Is this an NXT robot and are you deploying your code on the robot?  Are you running the robot from a VI on you PC using blue tooth, etc... ?
    If you are running both VI's in LabVIEW you can use parallel loops.  If they have to communicate with each other, then you have to decide which approach to use with parallel loop communication.  Like simple variables or more complex choices like queue, etc...
    Can you provide more information about your system and version of LabVIEW?
    Mark Ramsdale

  • I am trying to convert latitude and longitude into UTM coordinates.

    I am trying to convert latitude and longitude into UTM coordinates. can sombody please help

    Hi....I am 'anu' from india.
    I want to draw 3D plot of aircraft trajetory by using the latitude,longittude and altitude of aircraft is it possible with labview8.5. If you have any similar VI pls share. And is it possible to define a 3D object like aircraft, 2 axis moving objects?
    Thanks in Advance

  • Converting latitude and longitude into UTM coordinates

    hi
    can anybody help me to convert latitude and longitude into UTM coordinates
    maybe someone have a program
    thanks

    do you searched the internet for that?
    My quick search return this link:
    http://www.uwgb.edu/dutchs/usefuldata/utmformulas.htm
    In this, you can find also a spreadsheet that may help more.
    See if it's good for you
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL

  • SDO_RELATE and SDO_BUFFER

    Hi Folks,
    I created a generic stored procedure that gets a table and a polygon coordinates as parameters and returns
    the table records that satisfy a relationship.
    One example of fhe SQL executed by the procedure is:
    select GEOFT_MESORREGIAO.* from GEOFT_MESORREGIAO
    where SDO_RELATE(GEOFT_MESORREGIAO.MES_GM_POLIGONO,
    SDO_GEOMETRY(2003,2000004,NULL,
    SDO_ELEM_INFO_ARRAY(1,1003,1),
    SDO_ORDINATE_ARRAY(-51.427259,-20.547785,-51.575114,-22.289193,-49.094429,-22.387763,-49.028716,-20.457420)),'mask=ANYINTERACT') ='TRUE'
    The GEOFT_MESORREGIAO stores polygon geometries.
    Running the example I got 7 rows as result.
    In the same procedure, users can pass additional parameters to create a buffer around the polygon defined as the query window.
    In this case, the SQL executed is:
    select GEOFT_MESORREGIAO.* from GEOFT_MESORREGIAO
    where SDO_RELATE(GEOFT_MESORREGIAO.MES_GM_POLIGONO,
    SDO_GEOM.SDO_BUFFER(SDO_GEOMETRY(2003,2000004,NULL,
    SDO_ELEM_INFO_ARRAY(1,1003,1),
    SDO_ORDINATE_ARRAY(-51.427259,-20.547785,-51.575114,-22.289193,-49.094429,-22.387763,-49.028716,-20.457420)),10,0.05,'unit=KM'),'mask=ANYINTERACT') ='TRUE'
    Running this example I got 6 rows as result.
    This is not right to me, because if I'm using a bigger query window created by the buffer function, it was expected to get more rows
    as result or, at least, the same number of rows returned by the first example.
    This was tested in Oracle 11g R1.
    Am I missing anything?
    Regards,
    Luis

    Hi
    When validating your inline geometry, it returns a ORA-13348: polygon boundary is not closed.
    The first coordinate should be repeated at the end to close a ring in a polygon.
    SDO_GEOMETRY(2003,8236,NULL,
    SDO_ELEM_INFO_ARRAY(1,1003,1),
    SDO_ORDINATE_ARRAY(-51.427259,-20.547785,-51.575114,-22.289193,-49.094429,-22.387763,-49.028716,-20.457420*,-51.427259,-20.547785*))
    will validate.
    Try it and see if your results are as expected.
    Luc

  • Capturing and Locking on mouse coordinates from ROI done in Vision

    My application is on microscopic imaging where I need to scan an area and be able to pick out by an ROI a smaller area from it and be able to zoom at this. The sample is being moved by servos with a motion controller whose displacement depends on the coordinates on it's X and Y axis by user control. I need to be able to feed my LabVIEW code variables of updated X & Y coordinates with from each new ROI "captured & locked" from mouse clicks or ROI corner positions and use them to run the servos based on these updated coordinates. How do you lock the mouse to a ROI and extract the coordinates from it and update your X & Y coordinate variables?
    Bernardino Jerez Buenaobra
    Senior Test and Systems Development Engineer
    Test and Systems Development Group
    Integrated Microelectronics Inc.- Philippines
    Telephone:+632772-4941-43
    Fax/Data: +632772-4944
    URL: http://www.imiphil.com/our_location.html
    email: [email protected]

    You can use the IMAQ WindLastEvent VI to obtain the ROI boundary coordinates from a user-drawn ROI on a WindDraw display window.
    Check out the example below. This VI returns the location of a point from a mouse click rather than the bounding coordinates of an ROI, but you could probably modify it easily to achieve what you want.
    Developer Zone Example: Get a Point in a Winddraw Window from a Mouse Click Event

  • Is it possible to find and retrieve the pixel coordinates of a polygon image? Perhaps using Magic Wand and Paths?

    THANK YOU!

    Hi Mylenium,
    I want to create a complicated polygonal hotspot around the map of many countries of the world in Dreamweaver (eg. a hotspot around the US border), but don't want to spend the time tediously selecting the coordinates around the border.
    i.e. the code in Dreamweaver would be something like this
    <area shape="poly" coords="5,343,18,340,38,327,71,314,88,304,75,302,63,301,46,301,58,290,58,284,40,292,36,28 1,43,276,47,263,62,257,91,244,99,244,113,237,132,235,146,226,155,222,131,221,102,223,106,2 06,151,197,153,202,164,203,178,198,187,198,181,189,176,187,170,173,185,166,209,162,229,154 ,253,146,280,143,307,142,321,136,354,143,374,145,404,150,429,149,440,155,314,259,304,268,2 94,276,302,281,310,278,308,288,311,296,328,292,338,284,342,290,340,296,341,310,335,325,342 ,335,346,341,342,345,333,351,327,357,321,343,324,340,316,323,321,318,318,306,307,307,298,2 87,274,282,252,280,238,272,236,268,212,273,209,283,164,294,187,274,132,295,128,301,32,338, 18,346" href="/UnitedStates.html"
    Is there a way to use Photoshop's magic wand tool / slice / path tool to extract the coordinates of an images border for me?
    Thanks

  • Geodetic and not

    Hello,
    Does anyone have a good reference that explains the differences between geodetic and non-geodetic coordinate systems? I've read the spatial user's guide and would like to see a more detailed explanation of the differences and rationale behind deciding to use one or the other.
    Regards,
    Steven Pierce

    Steven,
    Probably the easiest way to think about these two concepts is:
    - Non-geodetic data, or projected data is the kind of data you see on flat maps. In otherwords, at the very center of a flat map is where you find the MOST precision. Projections have been around for a LONG time and are typically used for things like State planes, golf courses, airports, cities, topo-maps - where the area(s) you are analyzing tends to be relatively small (when compared to a large state, country, continent, etc.). Non-geodetic coordinate systems typically follow cartesian scales (not longitude/latitude).
    - Geodetic coordinate systems are attempts to model the Earth's shape, taking into account the curvature of a relatively large, oblate ellipsoid - these are made up of longitudes/latitudes. Geodetic data is typically used for large areas like large states, countries, continents etc. The reason: on a flat map, or a projection, there can be quite a bit of distortion as you move from the center. On the other hand, geodetic systems tend to be uniform in their accuracy.
    Today, many people tend to use geodetic coordinate systems for newer projects as there are some pretty accurate systems out there and if you are focusing on one area in particular (like North America) there will be no need to mix and match other State plane coordinate systems. For instance, you will see a lot of Oracle SRIDs like 8307 and 8265 - which are both based on geodetic coordinate systems. However, no matter what you choose to develop with, the nice thing about Oracle10g Locator/Spatial is that it can transform between any two coordinate systems out there. Hope this helps.
    -Justin

  • Can Lightroom recognize and import gps coordinates from xmp files?

    Hello guys
    i have LR 4.2 and using Lion with a MBP.
    I recently got gps4cam for my iphone to record gps coordinates.
    Unfortunately i imported all the pix of my vacation to LR instead of importing them with the gp24cam app first
    so Now i have the xmp files with gps coordinates in a separate file for each photo, but LR even though ca see that file, does not import any of the info on it
    Is there a way to force LR to read and recognize those gps coordinates without having to delete all the pix of my vacation from LR, and re-import them to my mac before with the gps4cam app and afterwards import em in LR.?
    i mean i cant believe there is not way to do that...
    y LR can read and recognize gps coordinates if are on a picture, but cant recognize and attach those same coordinate to the original fine if they are in a separate xmp file?
    thanks for your input guys
    matteo

    I would process differently:
    Import your images as usual directly into LR, without the GPS data
    copy the gpx-track from your external device to a storage sport from where LR can access it (my choice: same folder as my images).
    Use either the map module to populate LR records with the GPS data (as stated by jim1403) or a plugin from Jeffrey Friedl for geo-encoding.
    If you want to have the GPS data in your xmp, trigger the save from LR then (cmd s; may be auto-activated in your catalog settings)
    Please note that several import problems have been reported by using other software before LR to update something. Do not let your GPS tracking software touch your images, especially if it offers to write into your proprietary raw files, at least not into your only copy of them... I consider this way too dangerous for my precious negatives. If it also creates xmp, then fine.
    I am also a happy user of MotionX-GPS.
    The real disdavantage of the LR command to read metadata from files is that it is all-or-nothing: it would be so convenient if one could choose which partial sort of metadata (EXIF, IPTC, development, GPS-coordinates, rating+caption+title) - but that would be a matter of a feature request, not for this forum.
    Cornelia

  • How to create a circle object with center(lat/long) and radius(kilo)?

    Hi
    I want to create a circle in my table, the data I have are the coordinate of center(lat/long) and the radius of the circle. The srid of the table is lat/long.
    Did I have to use some fomula to compute the coordinate of three points on the circle? If it's true, is there any example procedure you can show me?
    Thanks
    Lannie

    When a circle is created using SDO_BUFFER in geodetic space,
    the result is a circle with stroked arcs (as in arc_densify function).
    So the result from SDO_BUFFER will be a valid polygon without arcs,
    but approximate circle with straight lines.
    For example, in the example given by Dan, this is what you get:
    SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARRAY(-120, 42.09003, -120.03128, 42.086958, -120.06042, 42.0779524, -120.08543, 42.0636292, -120.1046, 42.0449675, -120.11663, 42.0232424, -120.1207, 41.9999365,
    -120.11654, 41.9766391, -120.10445, 41.9549369, -120.08526, 41.9363067, -120.06028, 41.9220148, -120.0312, 41.9130321, -120, 41.9099686, -119.9688, 41.9130321,
    -119.93972, 41.9220148, -119.91474, 41.9363067, -119.89555, 41.9549369, -119.88346, 41.9766391, -119.8793, 41.9999365, -119.88337, 42.0232424, -119.8954, 42.0449675, -119.91457, 42.0636292, -119.93958, 42.0779524, -119.96872, 42.086958, -120, 42.09003))
    siva

  • Sdo_buffer question

    I am hoping that someone can help me. I know this is a super easy fix. I am looking to creat a buffer around one xy coord. Am I on the right tract.
    select sdo_geom.sdo_buffer(MDSYS.SDO_GEOMETRY(2001,8307,MDSYS.SDO_POINT_TYPE(2560808.6,387514.844,0),NULL,NULL), m.diminfo,100,.0005)
    from tractblockpoint2000 t, user_sdo_geom_metadata m
    select sdo_geom.sdo_buffer(MDSYS.SDO_GEOMETRY(2001,8307,MDSYS.SDO_POINT_TYPE(2560808.6,387514.844,0)
    ERROR at line 1:
    ORA-13205: internal error while parsing spatial parameters
    ORA-06512: at "MDSYS.SDO_3GL", line 439
    ORA-06512: at "MDSYS.SDO_GEOM", line 3065

    The answer is yes. It is easy to buffer a point.
    There are more questions to ask and answer here, though, because your data is not valid.
    your sdo_gtype = 2301: this is not allowed. If I was to guess from looking at your data, I would guess you want 2001.
    your sdo_srid = 8307: this is fine if your coordinates are between -180 and 180 in longitude (x), and -90 to 90 in latitude (y). Your data is not in this range.
    if I was writing this, i would use the sdo_point_type instead of sdo_elem_info_array and sdo_ordinate array.
    A two-d point in the sdo_ordinate_array should only have 2 ordinates (x and y, not x,y,null) - if stored in the sdo_point_type, then you need x, y, and null.
    you don't need a select ... from dual to buffer the geometry, you can call the function in the operator.
    Arc tolerance of 1/2 meter (0.5) is very fine - you will get a geometry with lots of vertices, and it may take a long time to get results. Below is an example of your query, rewritten, with a 10 meter tolerance. That said, further below is the same query written as sdo_within_distance, which includes an implicit, highly accurate buffer operation and an anyinteract.
    Note since these queries are in a geodetic coordinate system and you didn't specify units, the default is meters.
    The rewritten queries use the geod_cities table which is downloadable from OTN ( http://otn.oracle.com/products/spatial ), click on training on the right, then exercise solutions.
    Your query rewritten:
    select city
    from geod_cities t
    where sdo_relate(t.location, sdo_geom.sdo_buffer( mdsys.SDO_GEOMETRY(2001,8307, sdo_point_type(-75.13,40,NULL),null,null), 1000, 0.05, 'arc_tolerance=10'), 'mask = anyinteract querytype=window') = 'TRUE';
    But best done using sdo_within_distance:
    select city
    from geod_cities t
    where sdo_within_distance(t.location, mdsys.SDO_GEOMETRY(2001,8307, sdo_point_type(-75.13,40,NULL),null,null), 'distance=1000') = 'TRUE';

  • SDO_UTIL.FROM_KMLGEOMETRY and Java

    Hello,
    I'm trying to write a Java program that will parse a KML file, convert KML geometry coordinates into SDO_GEOMETRY coordinates, then insert appropriate records into the database.
    I'm stuck on the 2nd part, converting KML into SDO_GEOMETRY. Here's my code:
    private static void getSDOGeom(Connection con, String [] geomKML, JGeometry [] geomSDO) throws Exception {
    CallableStatement s = con.prepareCall("{? = call SDO_UTIL.FROM_KMLGEOMETRY(?)}");
    ResultSet rs = null;
    for (int i = 0; i < geomKML.length; i++) {
    s.registerOutParameter(1, JGeometry.GTYPE_POINT);
    s.setString(2, "\'<Point><coordinates>" + geomKML[i] + "</coordinates></Point>\'");
    rs = s.executeQuery();
    geomSDO[i] = (JGeometry) s.getObject(1);
    Here's my error message:
    java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00382: expression is of wrong type
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    -then stack trace saying which line of my program caused the error - the executeQuery line.
    It looks like my problem is from the JGeometry.GTYPE_POINT in the registerOutParameter method call. I've tried a number of items here to no effect. The geomKML array contains KML coordinates stripped from a KML/XML file, I had to put the <Point> and <coordinates> tags in because the XML parser isn't including them. I've converted coordinates directly in the database, so I know the KML input is correct. The geomSDO array is of the proper size, but is null. I'm not sure what I'm doing wrong and can't find anything like this in the forums. A DB guy here at work did some searching and said I should use JGeometry, but he's not sure why it isn't working either.
    Anyone have any ideas?

    Thanks for the help... my problem was the ResultSet. I didn't noticed until your most recent code example that you weren't using it, but were acting upon the CallableStatement directly for the getObject method. I was using CallableStatement wrong. I think I saw an example somewhere with the CallableStatement and the ResultSet both being used. Thanks for the STRUCT code too, I saw something about that in a forum post, but wasn't sure what it was doing... but my code doesn't work without it. I did have to track down the jar libraries and imports for STRUCT and OracleType, but that wasn't too difficult.
    As to your other points, there is a bit of a misunderstanding because of the limited information I posted - I should have been more clear. This method is one method in a larger program - my database connection was already set up and working, though I thank you for being proactive and including it just in case. I was also printing out my KML coordinates to check to make sure they were ok and had already tested them in the database with a written procedure and knew they were working. The "\" was an escape character for a single quote, which I thought I needed to include because the input to FROM_KMLGEOMETRY needed to be surrounded by single quotes in the database testing. Your initial response also included them. I found that by removing them, my error went away - in fact, I didn't even notice they were there at first. Finally, the JGeometry array does indeed work and the array list isn't needed. I was hoping the array would work as it's more light weight and I'm able to pass the object by reference instead of by value, decreasing the overhead of my code. I was delighted to find that it did work once I fixed the ResultSet issue as previously mentioned. It is initialized elsewhere in my code to be the same size as the array with the KML geometry.
    I don't add the comments above to rebuff you. I'm very glad to you provided extremely complete answers. You've helped me before. I add them in case someone else stumbles upon this thread in hopes that the information will be useful to them.
    For posterity, Final code with related imports:
    import java.sql.CallableStatement;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import oracle.spatial.geometry.JGeometry;
    import oracle.jdbc.OracleTypes;
    import oracle.sql.STRUCT;
    private static void getSDOGeom(Connection con, String [] geomKML, JGeometry [] geomSDO) throws Exception {
    CallableStatement s = con.prepareCall("{? = call SDO_UTIL.FROM_KMLGEOMETRY(?)}");
    STRUCT geomSDO_STRUCT = null;
    for (int i = 0; i < geomKML.length; i++) {
    s.registerOutParameter(1, OracleTypes.STRUCT, "MDSYS.SDO_GEOMETRY");
    // You could also add extrude, tessellate and altitudeMode
    s.setString(2, "<Point><extrude>0</extrude><tessellate>0</tessellate>" +
    "<altitudeMode>clampToGround</altitudeMode><coordinates>" + geomKML[i] +
    "</coordinates><extrude>0</extrude><tessellate>0</tessellate>" +
    "<altitudeMode>clampToGround</altitudeMode></Point>");
    s.executeQuery();
    geomSDO_STRUCT = (STRUCT) s.getObject(1);
    geomSDO[i] = JGeometry.load(geomSDO_STRUCT);
    s.close();
    The libraries that I needed to add to the project at compile time (already had the jdbc driver loaded for runtime) are
    sdoapi.jar (this is for JGeometry and other spatial related items) located <oracle home>/md/jlib/
    ojdbc6.jar (this is where the STRUCT and OracleTypes are found) located <oracle home>/jdbc/lib/
    Thanks,
    Edit:
    If you're trying to write SDO_GEOMETRY to a database, this thread will help.
    ORA-00939: too many arguments for function
    Edited by: J-rd-n on Sep 14, 2010 11:44 AM

  • Creating a point geometry with coordinate transformation using JDBC

    If I execute the following SQL statement using a tool such as TOAD then I get a correct value for the point in the oracle column.
    INSERT INTO node (id, position) VALUES (53, SDO_CS.TRANSFORM(SDO_GEOMETRY(2001, 26910, SDO_POINT_TYPE(489535.0, 5457841.0, NULL), NULL, NULL), 4269))
    Point geometry:
    (2001, 4269, (-123.143865452971, 49.2732377100255, ), , )
    If I execute the same statement using JDBC in a Statement or PreparedStatement the Point in the oracle column has 0,0 for the coordinates.
    Point: geometry
    (2001, 4269, (0, 0, ), , )
    In both cases the SQL is exactly the same.
    my JDBC code is
    String insertSql = "INSERT INTO node (id, position) VALUES (" + id
    + ", SDO_CS.TRANSFORM(SDO_GEOMETRY(2001, " + geometrySrid
    + ", SDO_POINT_TYPE(" + coordinate2d.x + ", " + coordinate2d.y
    + ", NULL), NULL, NULL), " + srid + "))";
    Statement insertStatement = connection.createStatement();
    try {
    insertStatement.execute(insertSql);
    } finally {
    JdbcUtils.closeStatement(insertStatement);
    connection.commit();
    Any ideas why this is happening?
    I've tried to do the coordinate transformation in a separate call and pass in the STRUCT returned from that, using JGeometry to create a STRUCT for the value, using a WKT geometry and none of these approaches seem to work

    Paul,
    I have seen this work using JGeometry and STRUCT objects with PreparedStatements. Here's some sample code that seems to work just fine:
    ResultSet rs = null;
    try {
    PreparedStatement ps =
    getConn().prepareStatement("select SDO_CS.TRANSFORM(?, ?) from dual");
    /* constucts JGeometry objects using simple points (doubles) and SRID
    * Per the Javadoc, JGeometry objects can be constructed using the same
    * notation and signature as SDO_GEOMETRY objects -
    * JGeometry(int gtype, int srid, double x, double y, double z, int[] elemInfo, double[] ordinates) */
    JGeometry j_geom1 = new JGeometry(-122.4, 37.8, 8265);
    int newSRID = 4269;
    //convert JGeometry instances to DB STRUCT
    STRUCT obj1 = JGeometry.store(j_geom1, getConn());
    ps.setObject(1, obj1);
    ps.setInt(2, newSRID);
    rs = ps.executeQuery();
    while (rs.next()) {
    //System.out.println(rs.getString(1));
    STRUCT st = (oracle.sql.STRUCT) rs.getObject(1);
    JGeometry j_geom = JGeometry.load(st);
    System.out.println(j_geom);
    ps.close();
    rs.close();
    conn.close();
    } catch (Exception e) {
    System.err.print(e);
    Hope this helps.
    -Justin

Maybe you are looking for

  • Large Report Errors out with Java Heap Space in EBS 12.0.6

    When running custom or Standard BI report that have a huge data , we get a following error in EBS [UNEXPECTED] [156627:RT4605044] java.lang.OutOfMemoryError: Java heap space at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:45) at

  • HT204632 some of my notes in my ipad 2 air arent syncing, showing on my iphone 5s

    some of my notes in my ipad 2 air arent syncing, showing on my iphone 5s. and vice versa..the notes on my ipad and iphone just arent in sycn together

  • Skype crashes when starting up

    I am running skype 7 on win 8.1 and have used skype for many years. Just started having this problem overnight. Very odd, but on starting up skype it crashes "skype has stopped working". Have tried resetting by deleting the DbTemp folder. No change.

  • SubscribeNet vs. SAP Support Portal

    Okay, I purchased a new license from TechXtend. They were good about calling me until they got my credit card. Now they are radio silent. Where would I see that new license? I logged into the SAP support portal but I can't figure out where to go or w

  • ITunes app opens but won't load content (except Genius)

    I can open iTunes but nothing will load. I can scroll through all the tabs (Music, Movies, TV Shows, Search etc.) but Genius is the only tab that will load anything. I've tried searching for things with no luck. The App Store works just fine though.