Free Webinar - Situational Analysis at OnStar with Oracle Spatial Feb. 22

Join us for the next Directions webinar: Situational Analysis at OnStar with Oracle Spatial
When:  Wednesday, February 22nd, 2:00 PM - 3:00 PM EST
Register now:  https://www2.gotomeeting.com/register/237138906
OnStar is the largest telematics solution provider on the globe, with 6 million subscribers in North America and abroad. OnStar uses situational awareness and real-time analysis to deliver fast, accurate emergency services to its customers. At the core of this solution is an Oracle Spatial-based analytical server that supports Google Earth visualization and NAVTEQ data. With this system, OnStar gains better understanding of customer use and behavior and better insight during emergency situations. In hurricanes, wildfires and other disasters, OnStar has developed early warning capabilities for use in near real-time. It can then manage call center resources based on anticipated call volumes and ultimately develop more effective new processes and services.
Learn from OnStar how the company uses Oracle Spatial to deliver insight, performance and scalability.
Key learning points include:
* How OnStar’s Oracle Spatial analytical server supports its real-time call center Advisor application in an environment using Google Earth visualization and NAVTEQ data
* How spatial analysis allows OnStar to obtain better insight into disaster situations, develop early warning capabilities, and improve call center coverage
* How Oracle Database 11g (with Oracle Spatial, Real Application Clusters, Partitioning) provides scalability and performance required to process and query OnStar’s large amounts of transactional data
Speakers include:
* Jeff Joyner, Emergency Strategy and Outreach, GM OnStar and Injury Research Fellow, University of Michigan Program for Injury Research and Education
* James Steiner, Vice President, Product Management, Oracle Server Technologies
Who should attend:
This webinar is appropriate for CIOs, business and technical managers and analysts involved in the design and management of enterprise systems where spatial analysis can add insight and value to business processes.
Register now: https://www2.gotomeeting.com/register/237138906

Markus,
Sorry for my late reply it had been awhile since I was here at SDN
I did it manually in the 'old' way and at that time it did work.
Kulvir,
I did get it from SAPnet but when I downloaded it it contained the proper file.But I did had the same with an add-on for the business connector which only contained an empty file.
Thanks for your answers and again sorry for my late reply back to you all

Similar Messages

  • Webinar Replay URL: Situational Analysis at OnStar with Oracle Spatial

    A free replay is now available for the Directions webinar Situational Analysis at OnStar with Oracle Spatial, which was held on Feb. 22.
    To view the replay, visit https://www2.gotomeeting.com/register/237138906
    OnStar is the largest telematics solution provider on the globe, with 6 million subscribers in North America and abroad. OnStar uses situational awareness and real-time analysis to deliver fast, accurate emergency services to its customers. At the core of this solution is an Oracle Spatial-based analytical server that supports Google Earth visualization and NAVTEQ data. With this system, OnStar gains better understanding of customer use and behavior and better insight during emergency situations. In hurricanes, wildfires and other disasters, OnStar has developed early warning capabilities for use in near real-time. It can then manage call center resources based on anticipated call volumes and ultimately develop more effective new processes and services.
    Learn from OnStar how the company uses Oracle Spatial to deliver insight, performance and scalability.
    Key learning points include:
    * How OnStar’s Oracle Spatial analytical server supports its real-time call center Advisor application in an environment using Google Earth visualization and NAVTEQ data
    * How spatial analysis allows OnStar to obtain better insight into disaster situations, develop early warning capabilities, and improve call center coverage
    * How Oracle Database 11g (with Oracle Spatial, Real Application Clusters, Partitioning) provides scalability and performance required to process and query OnStar’s large amounts of transactional data
    Speakers include:
    * Jeff Joyner, Emergency Strategy and Outreach, GM OnStar and Injury Research Fellow, University of Michigan Program for Injury Research and Education
    * James Steiner, Vice President, Product Management, Oracle Server Technologies
    Who should attend:
    This webinar is appropriate for CIOs, business and technical managers and analysts involved in the design and management of enterprise systems where spatial analysis can add insight and value to business processes.

    Nice to have a EXPERT in this FORUM...!!
    Hi Dan, if you look at my reply I mentioned that I had loaded loc_updates.sql
    From my previous reply:
    execute loc_updates.sql which doenot update any of the rows since if you look at the syntax in loc_updates.sql file it shows update the table customers whose customer_id=344.
    Where is this customer_id=344 coming from?
    Also the datatype is a number.
    Dan, were you able to get the results as desired?
    or may be I am missing something...
    Thanks and Regards,
    Nandakishore.

  • Server Hardware for Oracle Database 11g Release 2 with Oracle Spatial

    Hi ,
    We're to set up an Oracle Database 11g Release 2 Enterprise with Oracle Spatial.
    Can you provide me the possible Server Hardware CPU / Memory specs , number of CPUs,type of OS and teh Model, for Spatial which a million users hits the database via a webservice?
    The vendor suggested us SDD instead of HDD, any performance hike on this?
    Budget seems to okay but I think Exadata will be too dear.
    Your insights is much appreciated.Anything relating to setting up a server with spatial is greatly appreciated.
    P/S: Been a programmer and don't knwo much about server hardware specs.

    It depends.
    Seriously - before anyone can offer anything but generalities here you need to really define exactly what you expect the database to deliver.
    In general however, I will throw out these questions and ideas...
    For instance - you say a million users "hit" the database (via a web service). Is that WFS, WMS, KML or ???
    Over - how long? A year? A month? A minute? A million hits over a year spread out evenly is only about 2 per minute.
    And what is a hit? A single random record? Or about 10,000 records in the same spatial area... or? And for each record - are you returning simple point data - or hugely complex polygons with thousands of vertexes each?
    How does this software work? Is it custom - or is it well known? Does it really query the database for every map (I assume it is a map service) feature - or does it read an area once and cache it in the middle tier? Or does it do something really smart and use cached tiles for static data - overlayed with vectors for dynamic data?
    And although you say Oracle Spatial - are you really using Spatial - or just Locator functions (less processing in general)? And if spatial - are you doing raster in the db - or 3D analysis - or other special functionality?
    SSD vs. HDD. - If you can buy a server with more RAM than the data set size (pretty easy these days) - and you do mostly reads (almost always the case for a map app) - buy a small cheap array of RAID'd HDD's - internal to the server is fine. Once the data is read into RAM - the HDD's do basically nothing.
    Server CPU and memory. Amount - see above. CPU Speed (use performance benchmarks - not GHz numbers) AND memory speed (often overlooked) - buy as fast as possible. Why? You pay for licenses by the core (2 cores per license for x64). And HW is MUCH MUCH MUCH cheaper than Oracle licenses. Plan to upgrade HW every year if necessary to avoid buying more licenses (sounds crazy - but it is much cheaper).
    This may seem like a lot - but these questions are just the tip of the iceberg. I have been in charge of spec'ing, building, and programming spatial systems now for about 20 years, so I have a pretty good idea of how to do enterprise scale computing on a Ramon-noodle budget.
    Smart clean software is your friend - don't ask the HW to do anything unless absolutely necessary (cache results and reuse as much as possible), and you can get crazy performance from minimal hardware.
    Bryan

  • Poor performance with Oracle Spatial when spatial query invoked remotely

    Is anyone aware of any problems with Oracle Spatial (10.2.0.4 with patches 6989483 and 7003151 on Red Hat Linux 4) which might explain why a spatial query (SDO_WITHIN_DISTANCE) would perform 20 times worse when it was invoked remotely from another computer (using SQLplus) vs. invoking the very same query from the database server itself (also using SQLplus)?
    Does Oracle Spatial have any known problems with servers which use SAN disk storage? That is the primary difference between a server in which I see this poor performance and another server where the performance is fine.
    Thank you in advance for any thoughts you might share.

    OK, that's clearer.
    Are you sure it is the SQL inside the procedure that is causing the problem? To check, try extracting the SQL from inside the procedure and run it in SQLPLUS with
    set autotrace on
    set timing on
    SELECT ....If the plans and performance are the same then it may be something inside the procedure itself.
    Have you profiled the procedure? Here is an example of how to do it:
    Prompt Firstly, create PL/SQL profiler table
    @$ORACLE_HOME/rdbms/admin/proftab.sql
    Prompt Secondly, use the profiler to gather stats on execution characteristics
    DECLARE
      l_run_num PLS_INTEGER := 1;
      l_max_num PLS_INTEGER := 1;
      v_geom    mdsys.sdo_geometry := mdsys.sdo_geometry(2002,null,null,sdo_elem_info_array(1,2,1),sdo_ordinate_array(0,0,45,45,90,0,135,45,180,0,180,-45,45,-45,0,0));
    BEGIN
      dbms_output.put_line('Start Profiler Result = ' || DBMS_PROFILER.START_PROFILER(run_comment => 'PARALLEL PROFILE'));  -- The comment name can be anything: here it is related to the Parallel procedure I am testing.
      v_geom := Parallel(v_geom,10,0.05,1);  -- Put your procedure call here
      dbms_output.put_line('Stop Profiler Result = ' || DBMS_PROFILER.STOP_PROFILER );
    END;
    SHOW ERRORS
    Prompt Finally, report activity
    COLUMN runid FORMAT 99999
    COLUMN run_comment FORMAT A40
    SELECT runid || ',' || run_date || ',' || run_comment || ',' || run_total_time
      FROM plsql_profiler_runs
      ORDER BY runid;
    COLUMN runid       FORMAT 99999
    COLUMN unit_number FORMAT 99999
    COLUMN unit_type   FORMAT A20
    COLUMN unit_owner  FORMAT A20
    COLUMN text        FORMAT A100
    compute sum label 'Total_Time' of total_time on runid
    break on runid skip 1
    set linesize 200
    SELECT u.runid || ',' ||
           u.unit_name,
           d.line#,
           d.total_occur,
           d.total_time,
           text
    FROM   plsql_profiler_units u
           JOIN plsql_profiler_data d ON u.runid = d.runid
                                         AND
                                         u.unit_number = d.unit_number
           JOIN all_source als ON ( als.owner = 'CODESYS'
                                   AND als.type = u.unit_type
                                   AND als.name = u.unit_name
                                AND als.line = d.line# )
    WHERE  u.runid = (SELECT max(runid) FROM plsql_profiler_runs)
    ORDER BY d.total_time desc;Run the profiler in both environments and see if you can see where the slowdown exists.
    regards
    Simon

  • Using Java with Oracle Spatial

    I am using the JDBC (Java classes dowloaded from
    technet.oracle.com - (sdoapi.zip)) together with Oracle Spatial
    8.1.6. I am writing a collection of Linestrings into Oracle
    Spatial using the supplied java classes(sdoapi.zip). I use the
    function createGeometryCollection(myCollection)to write the
    Linestring collection to Oracle Spatial and they are written to
    the database without error. However, when I try to read the
    object back I get the following error:
    Exception in thread "main"
    oracle.sdoapi.geom.InvalidGeometryException
    at oracle.sdoapi.adapter.AdapterSDO.importGeometry
    (AdapterSDO.java:101)
    at
    MapInfoToOracleSpatial.MapInfoToOracleSpatial.main
    (MapInfoToOracleSpatial.java:211)
    I do not have a listing of this code so can you please tell me
    what the error is (line of code) at line 211. Also, when I use
    the Oracle Spatial Index Advisor to view the spatial data, it
    only displays a quarter of the data. When I use MapInfo to view
    it's equivalent TAB (Table) file it views correctly all the
    data.
    I can't understand why this is happening because the writing to
    oracle and creation of each individual linestring does not
    throw an error. It is only when I try to read back larger
    objects from the database (2500 points) that it gives an error.
    Is there a limitation on the size one can create linestrings?
    Thanks
    Regards
    Stephen Syrett
    Mobile Telecommunications Network
    (MTN) South Africa

    Latest Oracle Openworld Spatial/MapViewer activities list:
    http://www.oracle.com/us/products/database/options/spatial/ssLINK/oow10-focuson-spatial-169204.pdf
    thanks
    LJ

  • Regarding  working with oracle spatial database connections

    sir/madem,
    i am an engg student, my final year project on inserting data into oracle spatial database through java /jsp , i am working with oracle spatial database 10g/11g,
    i want know how to insert/retrive/ manuplute the spatial data into oracle spatial databse for 10g/11g, through java programing,
    the syntax for connection of oracle spatial database 10g/11g, needed,
    i have less time to finish my project
    i hope u  help me
    thank u
    kasim
    ([[email protected]|mailto:[email protected]])

    For database access from Java, you will use JDBC.
    For the specifics of the oracle spatial database, you'll have to check the documentation/forum of Oracle.
    * [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html]
    * [JDBC Tutorial|http://java.sun.com/docs/books/tutorial/jdbc/index.html]

  • Starting with Oracle Spatial

    Hi, in few weeks I will have to start a new project in wich I will work with Oracle Spatial. I will like to know a good book, or any online resource to learn about this new world for me...
    Thanks a lot for your help...!!!

    Decide what version of Oracle you'll be using, then start here for documentation:
    http://www.oracle.com/technology/documentation/spatial.html
    Also Pro Oracle Spatial is essential reading:
    http://www.amazon.com/Pro-Oracle-Spatial-Euro-Beinat/dp/1590593839

  • SDO_NN with Oracle Spatial

    Hello,
    although the description of my problem is a bit long, I hope you could help me.
    I would like to compute the nearest neighbor of a point being located on the surface of the unit sphere.
    For that query, I would like to take advantage of the features provided by Oracle Spatial (10g).
    Table spatial_test contains the columns point_name, x, y, z, ra, dec where:
    point_name is the primary key
    x, y, z are the coordinates of the points on the unit sphere (so x^2+y^2+z^2=1)
    ra, dec are the the concerning spherical coordinates where the following conditions hold: x=cos(dec)*cos(ra) , y=cos(dec)*sin(ra), z=sin(dec).
    For computing the nearest neighbor of a point with point_name='point1' the query without using Oracle Spatial is:
    select * from(
    select
    acos(t1.x*t2.x+t1.y*t2.y+t1.z*t2.z) as distance, t1.*
    from spatial_test t1,
    spatial_test t2
    where t2.point_name='point1'
    and t1.name != t2.name
    order by dist
    where rownum<2;
    For taking advantage of Oracle Spatial, I have to prepare my data doing the following five steps:
    1. add a column to of type SDO_GEOMETRY to table spatial_test
    2. insert values to that table
    3. update table user_sdo_geom_metadata
    4. create the spatial index
    5. execute the following query on the amended table spatial_test:
    SELECT t1.point_name name1, t2.point_name name2 FROM spatial_test t1, spatial_test t2
    WHERE SDO_NN(t2.geom, t1.geom, 'sdo_num_res=2') = 'TRUE'
    and t1.point_name = 'point1'
    and t1.point_NAME != t2.point_name
    As mentioned in the User Guide for Oracle Spatial, only two dimensional objects are supported.
    So, if I insert tuples in the following form to my table:
    insert into spatial_test (point_name, x, y, z, geom) values (..., ..., ..., ...,
    SDO_GEOMETRY(3001,
    NULL, --SDO_SRID is null, so no coordinate system is associated with the geometry
    SDO_POINT_TYPE(x_value, y_value, z_value),
    NULL,
    NULL));
    I won't get the correct results. I assume that the z_value is just ignored. Am I right with that assumption?
    For using Oracle Spatial, I have to use the equivalent just using two dimensions. Since ra, dec is another representation for x, y, z, I tried to do the same, just using ra and dec. But here, my results also differ from the ones computed with my own computation of the nearest neighbor.
    Here an minimal example which shows my problem:
    CREATE TABLE spatial_test(
    point_name varchar(20) PRIMARY KEY,
    x float,
    y float,
    z float,
    ra float,
    dec float,
    geom SDO_GEOMETRY);
    -- INSERT POINTS --
    insert into spatial_test(point_name, x, y, z, ra, dec, geom) values ('point1', -0.00472924, 0.110927216, 0.99381728, 92.44125, 83.62542,
    SDO_GEOMETRY(2001, -- 2 dimensions, last dimension is the measure, geometry type 01 = point
    NULL, --SDO_SRID is null, so no coordinate system is associated with the geometry
    SDO_POINT_TYPE(92.44125, 83.62542, null),
    NULL,
    NULL));
    insert into spatial_test(point_name, x, y, z, ra, dec, geom) values ('point2', -0.00239923, 0.112814014, 0.993613226, 91.21833, 83.52097,
    SDO_GEOMETRY(2001, -- 2 dimensions, last dimension is the measure, geometry type 01 = point
    NULL, --SDO_SRID is null, so no coordinate system is associated with the geometry
    SDO_POINT_TYPE(91.21833, 83.52097, null),
    NULL,
    NULL));
    insert into spatial_test(point_name, x, y, z, ra, dec, geom) values ('point3', -0.00701052, 0.122780703, 0.992409065, 93.26792, 82.93584,
    SDO_GEOMETRY(2001, -- 2 dimensions, last dimension is the measure, geometry type 01 = point
    NULL, --SDO_SRID is null, so no coordinate system is associated with the geometry
    SDO_POINT_TYPE(93.26792, 82.93584, null),
    NULL,
    NULL));
    -- UPDATA user_sdo_geom_metadata --
    INSERT INTO user_sdo_geom_metadata
    (TABLE_NAME,
    COLUMN_NAME,
    DIMINFO,
    SRID)
    VALUES (
    'spatial_test',
    'geom',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('ra', 0.0, 360.0, 0.0000000000001),
    MDSYS.SDO_DIM_ELEMENT('dec', -90.0, 90.0, 0.0000000000001)
    NULL -- no specific coordinate system should be associated with the geometries.
    -- CREATE THE SPATIAL INDEX --
    CREATE INDEX spatial_test_idx
    ON spatial_test(geom)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    Now I could execute the following queries which should both compute the nearest neighbor of 'point1'.
    This is the statement computing the nearest neighbor without Oracle Spatial:
    select * from(
    select
    acos(t1.x*t2.x+t1.y*t2.y+t1.z*t2.z) as distance, t2.point_name p1, t1.point_name p2
    from spatial_test t1,
    spatial_test t2
    where t2.point_name='point1'
    and t1.point_name != t2.point_name
    order by distance
    where rownum<2;
    RESULT:
    DISTANCE P1 P2
    ,003005107 point1 point2
    With the following statement, I compute the nearest neighbor of 'point1' using Oracle Spatial:
    SELECT t1.point_name name1, t2.point_name name2 FROM spatial_test t1, spatial_test t2
    WHERE SDO_NN(t2.geom, t1.geom, 'sdo_num_res=2') = 'TRUE'
    and t1.point_name = 'point1'
    and t1.point_NAME != t2.point_name;
    RESULT:
    NAME1 NAME2
    point1 point3
    As you see, unfortunately, the two results differ.
    Could you please tell me, what I understood wrong in using Oracle Spatial?
    In addition, what kind of coordinate system is assumed if it isn't specified in my SDO_GEOMETRY? Which kind of distance is computed using sdo_nn (euclidean distance, ...)?
    Would be glad, if you could tell how to reach the same results for my nearest neighbors using Oracle Spatial.
    Regards,
    Ina

    I would like to compute the nearest neighbor of a
    point being located on the surface of the unit
    sphere.That would be a spherical 3D computation. Currently, OS does not work well with 3D such as spheres, sorry. I know R2 was supposed to improve on this for cubes and pyramids, but to be honest; I haven’t had time to go back and test the simple cube operations. With 10gR1, for most of the operators and functions 2,2,3 and 2,2,5 are same point. I know this is something that is being worked on, possibly Dan can comment further.
    See for more info:
    Re: 3D Polygon
    For now, if you have your own routines, I’d use them as a package instead. If you need help there, let us know and we’ll try to point you in the right direction or help you to translate the code to PL/SQL.
    Bryan

  • Join Feith in DC FREE April 27th: Workflow Seminar & Workshop (with Oracle)

    Register free here: [http://www.feith.com/index.php?option=com_content&view=article&id=14o]
    Hey, fellow Oracle Workflow Professionals! Feith Systems wants to invite those in the DC area to a FREE seminar and workshop (and free breakfast!) on April 27th at the Hyatt Regency Capitol Hill, *"Achieve Your Workflow and BPM Goals: Doing More With Less"*.
    In an environment where we're all trying to achieve more with less - less time,+ less+ budget, less personnel - Feith wants to teach you how to achieve your workflow goals through streamlining and automation with better-sized, better-value solutions, including seamless integration with your existing legacy Oracle system. Discuss your workflow challenges, connect with industry colleagues, leaders, and experts, and learn how you can maximize your business processes, streamline your workflow, and create lasting efficiency in operational control in a tough new budget environment.
    Resister through the link above, or email me at [email protected]
    Activities include:
    • Presentation and demonstration: "Achieve Your Workflow and BPM Goals"
    • Special guest speaker Eric Kamenitzer, Operations Director, Chugach for NASA Services
    • BridgeLogiQ Express clinic and tutorial
    • One-on-one breakout sessions with the Oracle and Workflow Expert Teams +(bring your questions!)+
    • Plus full complimentary breakfast and complimentary afternoon break service
    "If you've ever thought 'There's got to be a better way,' there is, and it's easier and more cost-effective than you think."
    The Details:
    • Date: April 27, 2011
    • Time: 8:30am - Sign-in and complimentary breakfast. 9:00am - Seminar begins.
    • Location: Hyatt Regency on Capitol Hill, 400 New Jersey Ave NW
    • Cost: FREE
    • Registration: [Feith.com Registration Powered by Feith Forms iQ|http://www.feith.com/index.php?option=com_content&view=article&id=140]

    You can still register.

  • Free Webinar: Integrate your ABAP Documents with SAP Mobile Documents

    Learn how to integrate documents stored in your ABAP-based application into SAP Mobile Documents. In this webinar, you will also learn how to share documents out of your ABAP application with SAP Mobile Documents.
    For further details check out http://scn.sap.com/docs/DOC-60383.

    The recording of the session is now available at http://scn.sap.com/docs/DOC-60383. There is also a new blog on what you have to do to share your documents from your ABAP system How to share your documents from ABAP with SAP Mobile Documents.

  • Free Webinar: Integrate your SCM Documents with SAP Mobile Documents

    Learn how to integrate documents stored in SCM into SAP Mobile Documents. In this webinar, you will also learn how to share documents out of your SCM system with SAP Mobile Documents.
    For further details check out http://scn.sap.com/docs/DOC-60383.

    The recording of the session is now available at http://scn.sap.com/docs/DOC-60383. There is also a new blog on what you have to do to share your documents from your ABAP system How to share your documents from ABAP with SAP Mobile Documents.

  • Free Webinar: Integrate your PLM Documents with SAP Mobile Documents

    Learn how to integrate documents stored in PLM into SAP Mobile Documents. In this webinar, you will also learn how to share documents out of PLM with SAP Mobile Documents.
    For further details check out http://scn.sap.com/docs/DOC-60383.

    The recording of the session is now available at http://scn.sap.com/docs/DOC-60383. More detailed documentation about how to do the coding is available at How to share your documents from ABAP with SAP Mobile Documents.

  • Free webinar: Creative Cloud for Photography with Ps CC and Lr5

    Creative Cloud for Photography with Photoshop CC and Lightroom 5
    Friday, June 21, 2013 | 12:00 PM PT
    Presented by: Julieanne Kost
    http://www.adobe.com/cfusion/event/index.cfm?event=detail&id=2008488&loc=en_us
    Join Julieanne Kost, Principal Digital Imaging Evangelist, as she demonstrates new features in Photoshop CC and Lightroom 5, as well as sharing and collaboration features of Adobe Creative Cloud. In this Ask A Pro session, you will:
    Learn how Creative Cloud brings additional capabilities to your workflow with Sync Settings, Sync Fonts, and sharing with Creative Cloud
    See new features in Photoshop CC to enable more advanced sharpening than ever before with all-new Smart Sharpen, intelligent upsampling, and Camera Shake Reduction.
    Learn how to perfect your images using the new Upright and Advanced Healing Brush in Adobe Camera Raw 8 and Lightroom 5
    See how to customize your photo books in the updated Book module in Lightroom 5
    Share your images with the leading online platform to showcase and discover creative work using Share to Behance from within Photoshop CC

    http://blogs.adobe.com/jkost/2013/06/creative-cloud-for-photographers-with-photoshop-cc-an d-lightroom-5.html

  • Using Toplink with Oracle Spatial (missing right parenthesis error)

    Hi,
    I always get the following error when I try to create spatial query with toplink.
    Internal Exception: java.sql.SQLException: ORA-00907: missing right parenthesis
    Any idea ? Also, there is no trace of my point in the generated sql....
    Here is the generated query:
    SELECT ID, [...]
    FROM QUEBEC_CITY
    WHERE (MDSYS.SDO_NN(GEOMETRY, JGeometry (gtype=1, dim=2, rid=8307, NULL) = 'TRUE')
    ORDER BY ID ASC
    Here is my code... :
    double[] coord = new double[]{-71.25163d, 46.8527d};
    JGeometry point = JGeometry.createPoint(coord, 2, 8307);
    SpatialOperator nearestNeighbor = SpatialOperator.nearestNeighbor(session);
    ReadAllQuery query = new ReadAllQuery(UrbanEdgeDescriptor.class);
    ExpressionBuilder eb = query.getExpressionBuilder();
    Expression geom = eb.get("geometry");
    query.setSelectionCriteria(nearestNeighbor.buildExpression(geom, point));
    query.addAscendingOrdering("id");
    List<UrbanEdgeDescriptor> results = (List)db.getSession().executeQuery(query);
    System.out.println(results!=null);

    The problem is the toString() on JGeometry. It does not print out a complete description the database can use inline. It produces:
    JGeometry (gtype=1, dim=2, rid=8307
    To get JGeometry types to work in your queries the easiest solution is to use parameter binding so the literal representation is not used.
    Doug

  • Getting Started with Oracle Spatial

    I am not sure if this is the appropriate forum for this question but here goes:
    I have just started using Spatial, and am
    trying to setup a simple within-distance query, following closely the html documentation.
    I create a parks table:
    CREATE TABLE parks (GID VARCHAR2(32), shape MDSYS.SDO_GEOMETRY);
    and then the geometry metadata table:
    INSERT INTO sdo_geom_METADATA VALUES ('parks', 'shape', MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X', 0, 100, 0.005), MDSYS.SDO_DIM_ELEMENT('Y', 0, 100, 0.005)));
    I insert some entries into my PARKS table:
    INSERT INTO parks VALUES ('park1', MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,1,NULL),NULL, NULL));
    INSERT INTO parks VALUES ('park2', MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,3,NULL),NULL, NULL))
    and create a spatial index:
    create index parks_fixed on parks(shape) indextype is mdsys.spatial_index parameters('SDO_LEVEL=8');
    Finally, I do my within-distance query:
    select parks.GID from TARGET parks where mdsys.sdo_within_distance(parks.shape,
    MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,1,NULL),NULL, NULL),
    'distance=2')='true';
    to find points within 2 units of (1,1).
    Unfortunately, I get the error:
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13207: incorrect use of the [SDO_WITHIN_DISTANCE] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 73
    ORA-06512: at line 1
    So a few questions:
    1: What am I doing wrong?
    2: In 4.2.3 of the Oracle HTML documentation,
    the example query has SELECT A.Feature_ID
    FROM TARGET A . . . . . .
    What is TARGET?
    3: The documentation has many errors. Where can I find better documentation?
    Any help on any of these matters would be greatly appreciated!
    Sincerely Yours,
    Hirohisa

    I am not sure if this is the appropriate forum for this question but here goes:
    I have just started using Spatial, and am
    trying to setup a simple within-distance query, following closely the html documentation.
    I create a parks table:
    CREATE TABLE parks (GID VARCHAR2(32), shape MDSYS.SDO_GEOMETRY);
    and then the geometry metadata table:
    INSERT INTO sdo_geom_METADATA VALUES ('parks', 'shape', MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X', 0, 100, 0.005), MDSYS.SDO_DIM_ELEMENT('Y', 0, 100, 0.005)));
    I insert some entries into my PARKS table:
    INSERT INTO parks VALUES ('park1', MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,1,NULL),NULL, NULL));
    INSERT INTO parks VALUES ('park2', MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,3,NULL),NULL, NULL))
    and create a spatial index:
    create index parks_fixed on parks(shape) indextype is mdsys.spatial_index parameters('SDO_LEVEL=8');
    Finally, I do my within-distance query:
    select parks.GID from TARGET parks where mdsys.sdo_within_distance(parks.shape,
    MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,1,NULL),NULL, NULL),
    'distance=2')='true';
    to find points within 2 units of (1,1).
    Unfortunately, I get the error:
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13207: incorrect use of the [SDO_WITHIN_DISTANCE] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 73
    ORA-06512: at line 1
    So a few questions:
    1: What am I doing wrong?
    2: In 4.2.3 of the Oracle HTML documentation,
    the example query has SELECT A.Feature_ID
    FROM TARGET A . . . . . .
    What is TARGET?
    3: The documentation has many errors. Where can I find better documentation?
    Any help on any of these matters would be greatly appreciated!
    Sincerely Yours,
    Hirohisa

Maybe you are looking for

  • Indesign cs6, export interactive pdf

    When i export my interactive document to pdf, the result is not working well. All the roll over buttons are blinking when the mouse cursor point on it. also i have problem with layers. the appearance of layers is not as same as file, so some images g

  • Three-Way Pegging

    Please explain me what is Three-Way Pegging ?

  • Discoverer 3.1 not connecting with user edition

    Hi all Since yesterday we were unable to connect to a database using discoverer 3.1 as user When i use admin edition i can connect to this database I have checked for duplicate entries in the tnsnames.ora The error i receive is : ORA-12154 If there w

  • Photoshop Edit function will not open. Windows 8

    After loading and using Adobe Photoshop Elements 11. I initially used the Edit on one occasion. I then went to use it again and it gives me the Photoshop graphic, but would not launch / open the Edit option. I checked the "Properties" tab on the Prog

  • Exporting Slideshow from iPhoto 11 issues

    I created a slide show of mixed photos and video clips.. it plays beautifully in iphoto no issues, i export it and it takes over an hour to export, and appears to be exporting properly - i export to high definition 1080...ive tried the two other choi