Reverse Geocode function accuracy...

Hello everyone
I have Oracle 10g R2 on windows.
The setup is as follows: a GPs device sends data ( longitude/latitude )to a table (LOG) and I need to reverse code the coordinates. in another table (GEOCOD4)
I have addresses associated with lat/long coordinate pairs.
There is a spatial index associated with the geocod4 table...
I am having a problem with the accuracy of this spatial query:
SELECT /*+ordered*/
address
into vaddrs
FROM geocod4 c
WHERE sdo_nn (c.location, SDO_GEOMETRY(2001, 8307,
SDO_POINT_TYPE (plat,plong,NULL), NULL, NULL), 'sdo_num_res=1')= 'TRUE';
I sometimes get addresses that do not correspond to the points actual position...
Any ideas as to why? is the query wrongly formulated?
Thanks in advance.

Bump....

Similar Messages

  • Reverse geocoder error

    We have tried to reverse geocode with SDO_GCDR.REVERSE_GEOCODE function and NAVTEQ sample data. The first step, we geocode an address to get the ordinates and then using reverse geoding function for the returned result like below:
    select SDO_GCDR.GEOCODE_AS_GEOMETRY(
    'NAVTEQ',
    SDO_KEYWORDARRAY(
    '780 COLINAS MIRA',
    'SAN DIEGO'),
    'US')
    from dual;
    and result is:
    MDSYS.SDO_GEOMETRY(2001, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1), MDSYS.SDO_ORDINATE_ARRAY(-117.10536,32.67193))
    And we try with above ordinates, we get the following error:
    SELECT SDO_GCDR.REVERSE_GEOCODE('NAVTEQ',
    SDO_GEOMETRY(2001, 8307,
    SDO_POINT_TYPE(-117.10536, 32.67193, NULL), NULL, NULL),
    'US') FROM DUAL;
    Error starting at line 1 in command:
    SELECT SDO_GCDR.REVERSE_GEOCODE('NAVTEQ',
    SDO_GEOMETRY(2001, 8307,
    SDO_POINT_TYPE(-117.10536, 32.67193, NULL), NULL, NULL),
    'US') FROM DUAL
    Error report:
    SQL Error: ORA-29532: Java call terminated by uncaught Java exception: Error:
    Message:Error in ReverseGeocoder
    Nested exception is:
    oracle.jdbc.driver.OracleSQLException: ORA-13208: internal error while evaluating [sdo_nn_distance ancillary] operator
    ORA-06512: at "MDSYS.SDO_GCDR", line 778
    ORA-06512: at "MDSYS.SDO_GCDR", line 831 29532. 00000 - "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
    resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    We don't know how to resolve that problem, have anyone can help us in this case? Thanks

    Hey Ray,
    Thanks for that link - it looks like what I'm running into. I made the suggested code changes, but when I tried to run it, I got some weird error and the app won't even go past the splash screen in the simulator. The log shows the following:
    [Session started at 2010-05-23 15:57:07 -0700.]
    GNU gdb 6.3.50-20050815 (Apple version gdb-1461.2) (Fri Mar 5 04:43:10 UTC 2010)
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
    Attaching to process 1190.
    dyld: Symbol not found: __CFStringGetUserDefaultEncoding
    Referenced from: /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    in /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    No memory available to program now: unsafe to call malloc
    Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/Applications/Xcode.app/Contents/PlugIns/GDBMIDebugging.xcplugin/Contents/Resources/PBGDBIntrospectionSupport.A.dylib")
    Cannot access memory at address 0x0
    Cannot access memory at address 0x0
    I don't think it is related to the changes I am making, but I can be wrong. I searched for the web, but have not found any useful tips. I am using SDK 3.2.2 on OS X 10.6.3.
    -Sam-

  • Reverse geocoding & file naming

    Hi,
    My images are geotagged. With Lightroom 5, I can reverse geocode the images to have Country, State and City in the IPTC fields. However, unless I go in each field, they are greyed. When I want to export the images, I want to use the naming convention Country-State-City-incremental number.jpg for each image, but unless the fields have been edited, lightroom ignore the fileds (and hence put ---1.jpg). Any idea how I can confirm the location without having to go to each image and edit the fields?
    Thanks

    I agree that reverse geocoding data need to be reviewed. In my case, 85+ of the data is correct and this would be easier to validate this info with a single key combination rather than having to click in 4 field per image. Adobe is confident enough with the data to use it in filters without it being reviewed by the user, so why not in export and/or other functions? This still puzzles me. This will give the user the option to review, or trust the data retrieved.

  • The "reverse position" function for midi in the transform window does not seem to be working.

    So I'm trying to have all of the notes of my midi region play in reverse order. I found out after some research that the way to do this is via the "reverse position" function in the transform window. I opened the parameters for this and it gave me an option to select "inside" a set of measure positions, so I set it to between measure 99 (99 1 1 1) and measure 172 (172 1 1 1) and tried to "select and operate." Nothing. Tried to select manually and then hit "operate." Nothing. I then changed the condition from "inside" to "all" and manually select, then hit "operate," and this time it showed "340 events in one midi region found" at the bottom of the window but still did nothing. I haven't manually counted the notes in the region but that seems like a fair estimate that it's the right number of notes (midi events).
    Any idea why this function seems to do absolutely nothing?

    ((/MAIN/NODE1NODE2 = 'x') EX)
    This means that the condition will eval to true or false ONLY if the node exists?
    (Note: In the actual scenario, I have an IDOC and I wish to perform a similar check on a tag that may or may not exist depending
    upon the situation).
    If your requirement is to check if a node exists or not then below is the condition which you should be using:
    Left Operand: /MAIN/NODE1/NODE2
    Middle Operand: EX
    NO right operand in this case
    Regards,
    Abhishek.

  • Reverse geocoding suggestions data invisible for filename templates and plugins

    Hi,
    Reverse geocoding are amazing, saves me a lot of work, but filename template I use seems don't work well with that feature.
    With file naming scheme like this: "Country-City-Sequence # (001)" the result is "--001.jpg" instead of "France-Paris-001.jpg" and I have to confirm address for hundreds photos manually to see country and city information in filename.
    Same situation in jf PicasaWeb plugin, when using caption scheme like this: "{Country}. {City}. {YYYY}. {Caption}." the result is ". . 2012. Example caption." instead of "France. Paris. 2012. Example caption."
    It is possible for Lightroom to use address suggestions in this situations whenever address fields are empty?
    Most important for me is to plugins see the address suggestions like normal (hard) data if address fields are empty.

    Reverse geocoding are amazing, saves me a lot of work, but filename template I use seems don't work well with that feature.
    With file naming scheme like this: "Country-City-Sequence # (001)" the result is "--001.jpg" instead of "France-Paris-001.jpg" and I have to confirm address for hundreds photos manually to see country and city information in filename.
    On the face of it, Lr4's implementation of reverse geocoding is excellent, and it is when dealing with images taken at the same location. However, its handling of mixed locations is painful. In my case I use Jeffrey Friedl's plugin. It fully integrates with the Map module and allows you to reverse geocode without the limitations your currently experiencing. Very likely not what you wnated to read, but it does provided a painless solution to the problem you've identified.
    Jeffrey's plugin can be downloaed from http://regex.info/blog/lightroom-goodies/gps

  • Reverse Geocoding Error

    Hey all,
    I'm getting the below error when trying to reverse geocode.
    My user_sdo_geom_metadata srid is 8307
    All gc_road_segment geometry srid's are 8307
    Where else could this SRID conflict be coming from?
    Thanks in advance...
    Paul
         <component_error>
    Error:
    Message:Error in ReverseGeocoder
    Nested exception is:
    java.sql.SQLException: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13208: internal error while evaluating [window SRID does not match layer SRID] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 281
    ORA-06512: at line 1
    java.sql.SQLException: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13208: internal error while evaluating [window SRID does not match layer SRID] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 281
    ORA-06512: at line 1
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112)
         at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:351)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:951)
         at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:383)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1057)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1218)
         at oracle.spatial.geocoder.server.ReverseGeocoder.findRoad(ReverseGeocoder.java:246)
         at oracle.spatial.geocoder.server.ReverseGeocoder.reverseGeocode(ReverseGeocoder.java:99)
         at oracle.spatial.geocoder.server.GeocoderImpl.reverseGeocode(GeocoderImpl.java:386)
         at oracle.spatial.geocoder.server.GeocoderImpl.geocode(GeocoderImpl.java:400)
         at oracle.spatial.geocoder.GCServer.process(GCServer.java:375)
         at oracle.spatial.geocoder.GCServer.doPost(GCServer.java:184)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    </component_error>

    I don't have a geometry but I'll include the xml I'm passing in to geocode (it is successfully geocoded) and the xml I'm passing in to reverse geocode (this is where i get the exception)
    Thanks
    Paul
    <?xml version="1.0" standalone="yes"?>
    <geocode_request vendor="elocation">
    <address_list>
    <input_location id="27010">
    <input_address match_mode="relax_street_type">
    <us_form2 street="Ouray NW" city="Albuquerque" state="NM"/>
    </input_address>
    </input_location>
    </address_list>
    </geocode_request>
    ========================================
    <?xml version="1.0" standalone="yes"?>
    <geocode_request vendor="elocation">
    <address_list>
    <input_location id="1" country="us" longitude="-106.69919185" latitude="35.11241" />
    </address_list>
    </geocode_request>

  • Need No to activate reverse battery function.*#337...

    Hi,I have read at one website that when battery power is too low then to make call we can activate reverse battery function.By that battery power increases to 50%.In next charging this reverse battery also get charged.The no is given as *#3370#. In my phone N82 its not working.
    I have checked it on many phones but it does not work.As no must be wrong.
    Can anyone plz tell me the exact no. To activate it.

    If there isn't enough power in the battery to make a call then changing the audio codec to a lower quality isn't going to make a difference.
    The whole thing was pure nonsense anyway. It didn't make any significant difference to power consumption because the main drain of power when making a call is the RF transmitter.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • How can i reverse the function of the curves in the modify curves dialog

    in much older version of PS, there was a little set of arrows to reverse the function of the curves in the modify curves dialog. i miss this greatly, since I've been using them opposite from the standard direction for over 20 years.
    Any way to switch this in CC?'

  • How to reverse geocode in LR4 if image is already tagged with latitude/longitude

    I've seen Terry White's video about geocoding by importing a .gpx file, but what if I've already got the latitude and longitude, and what I need is for Lightroom 4 to look up the city, state, country, etc.  Is this possible?

    Bump
    Nina Fox wrote:
    Uncheck the reverse geocoding checkboxes in the catalog settings.
    Restart LR.
    Enable the checkboxes.
    Now it works.
    This fixed the problem for any photo that does not have existing GPS coordinates embedded.  Two continuing problems:
    1 - Sadly all of my images that already have GPS coordinates embedded (iPhone shots and dSLR shots with a GPS unit) will not auto fill the City, State, Country fields. 
    2 - Having to click on the City, State, Country fields to commit them makes the feature of little value as it saves no time.  I can select images in grid mode and batch append the individual fields faster than clicking into the fields to commit.  I imagine this can be fixed by a preference that allows for some type of auto commit of the Google appended metadata.

  • Fall back of the reverse geocoder

    Hi All,
    Looking at the results of reverse geocoding, it seems that it’s only based on the street_segment geometries with a nearest neighbor search without considering the actual distance. Looking at the oracle spatial geocoder schema from NAVTEQ samples, it seem that only street segment are spatially indexed in the geocoder and the GC_AREA table doesn’t seem to even have the spatial boundaries (it just have the centroid information).
    I wanted to know if there was a reason for that behavior/design, or even a fix in later version of Oracle Spatial geocoder (we are using 10.2.0.5)
    Typically ReverseGeocoders on the market, when the point is too far from street segment, will fallback and use the spatial boundaries (municipality boundaries or state/province boundaries),
    to perform Point in polygon operation like sdo_contains to know if the point falls into a specific polygon.
    In the case of my customer, this is a huge issue, as he expect to reverse geocode in area where there are few or no street and he expect to have data from limited amount of country.
    Using reverse geocoding (implemented as nearest neighbor) in that case will give inconsistent result, that could be several kilometers or even hundred kilometers, from the point clicked.
    The easy work around I see would be to limit the distance accepted between the point clicked and the segment returned by the reverse geocoding,
    But that would have the side effect that if I click in a specific Municipality or province, I would not be able to get reverse geocoding result.
    The same way, since reverse geocoding take the nearest segment, it can return a segment in a municipality even if the point clicked is in another municipality,
    Thanks for the help,
    Pierre.

    Hi
    You would need to review the logs (MIVR/MCVD logs) to determine the cause of this failure:
    They are in subfolders of c:\program files\wfavvid\log
    Feel free to post them up.
    Aaron

  • Is there a way to reverse the Function (Fn) Keys on the ThinkPad T540p and Windwos 8.1?

    I recently purchased an I ThinkPad T540p, and install there Windows 8.1 Enterpirse.
    Then I download and install all drivers from lenovo site including upgrade BIOS to version 2.07
    Then I have noticed that the default for  the keys where  F1 and F2, etc. usually are, are now the mute and volume buttons.  To access the F1, F2....F12 keys, you now have to press Fn + your desired F key.  
    Is it possible to reverse the Function keys?  I would much rather press Fn + F1 to mute than have to press press Fn + F1 to access F1.   
    Thanks you in advance.
    Solved!
    Go to Solution.

    Hi,
    Welcome to Lenovo Community Forums!
    Check in BIOS -> config -> Keyboard if there is an option to switch between default and legacy mode.
    If you don’t find that option, you may try the Fn+esc combination that changes the function keys to legacy mode, but when the computer reboots, it might reset back to a default mode and you have to use Fn+esc again.
    Hope this helps!
    Best regards,
    Mithun.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Write Reverse Geocoding suggestions into xmp + make permanent easily

    So far Lightroom only exports reverse geocoding suggestions if thi option is checked in the catalog settings.
    I can see no reason why LR does not also write them out into the image file or its xmp sidecar when "Save Metadata to File" is chosen. At least it should be an option.
    It does write this data, if it was made permanent fist by clicking on the filed titles ("Sublocation", "City" etc.) and then selecting the first entry in the appearing pop-up. But this can be a tedious process if it needs to be done to multiple images with different location data (<mixed> appears in the fields).
    There should be a button "Make Reverse Geocoding suggestions permanent".
    Lastly, there is some weird behavior with the ISO Country Code field. If it was once filled out manually, then gets deleted and the image is either exported or metadata is saved to the file, the old ISO Country Code value will still be there (can be seen in Photo Mechanic).

    You might try searching for this topic here: http://feedback.photoshop.com/photoshop_family/products/photoshop_family_photoshop_lightro om , adding your voice to any existing request or creating a new feature request on this, the official request forum.

  • Unable to use reverse geocoding when renaming files

    I've asked about this on different discussion boards but no answer so far. The first versions of Lightroom that came with reverse geocoding did not have this problem. But somehow after an update in Lightroom 4 the Google reverse geocoded location fields cannot be used to rename files. This was very convenient for me to export images to people as a landscape photographer working in many places and making it easy for others to locate the place via the filename.
    Is this a bug or a Google rights thing? And is there a way to make reverse geocoded metadata permanent (not in gray and italics?) because when I overtype the place myself it does work.
    Example below: note that the fields {Country} and {City} or not added to the file name, even though they are in the metadata field.

    Don't use realtive paths, at least not without making them absolute yourself.
    Java gives you the ability to figure out the path from which the executing program was loaded. Use that, together with your relative path, to construct an absolute path.

  • LR4: Save reverse geocoded location data to DNGs

    With the introduction of the maps module I try to use it the same way I use other programs (e.g. Geosetter).
    Lightroom allows fetching reverse geocoded location information, i.e. city, state, country via Google API. This information is shown in light grey once retrieved:
    The problem is: This information is not saved with the DNG. I can activate "export reverse geocoding suggestions whenever address fields are empty" which would export these things with the JPEGs, but I want the information saved within the DNG - additional to the LR database.
    How can I achieve this or is this a feature request?

    Gotta love those hidden features :-) Thank you.
    I added a feature request for what would actually help me speed up my workflow: http://feedback.photoshop.com/photoshop_family/topics/enable_automatic_accepting_of_revers e_geocoding_suggestions

  • ADF Mobile reverse geocoding

    I'm developing my first Oracle ADF Mobile application.
    I'm using the geolocation feature to obtain the latitude and longitude of the device. I need to resolve that data to the Country the user is in.
    Given that there is a mapping component in the UI is there any API facility for reverse geocoding so that I may provide the current latitude and longitude from getDeviceManager.getCurrentPosition() and obtain the Country name or other identifier?
    Many thanks.

    Hi,
    there is no service like this in ADF Mobile. However, you can try
    http://ws.geonames.org/countryCode?lat=49.03&lng=10.2
    using a REST call where you dynamically provide "lat" and "lng" values
    http://stackoverflow.com/questions/4497728/get-country-from-latitude-longitude
    Frank

Maybe you are looking for

  • Double figure for Elimination

    Hi all, This is my detail explaination regarding this issue. When I run balance carryforward for period 1/2008, figure for posting level 20 will carryforward.(RM27,441.0). This is IU figure from period 16/2007. But after I run task IU Elimination, th

  • Since iOS 4.2.1 Update - Document viewer Apps do not work right!

    Before I updated to iOS 4.2.1 Air Sharing (Document Viewer) was working (so were all my Document Viewers), but currently, they do not work correctly. I have checked about three others...all have the following problems: Since I updated (to iOS 4.2.1),

  • Error while generating wrapper pl/sql with JDeveloper 10.1.3 (production)

    Hello, I'm generating a webservice from pl/sql package which returns a collection. JDeveloper generates wrapper pl/sql which gives errors when executed in the database because it consists of code like: PROCEDURE "NAME"$PROC_NAME_A The " creates datab

  • Finder not browsing external drive

    I'm having trouble with Finder. When I connect my external drive, the icon shows up, and DiskUtility shows it mounted normally. However, when I try to open it through the Finder window, I get the error message: "The alias "xyz" can't be opened becaus

  • Iphone 4 wont flip screen

    my iphone 4 wont flip screen, it's portrait orintation wont work, restarting didn't work aswell, im worried about reseting my datas, anyways? ios 7.1.2