Sdo_intersection area and error message

Hi
I wonder if anybody can offer any help/advice
I have been running a routine which loops through a spatial Layer A and for each polyon in the loop I pick up those polygons from a more detailed Layer B (over 5 million records) that interact then create a non spatial table output showing the area of intersection between the 2 layers.
This is used in the query to return the area of intersection:
ROUND(mdsys.sdo_geom.sdo_area(                              mdsys.sdo_geom.sdo_intersection(a.geom, b.'||l_spCol||', 0.0005),1,''unit=HECTARE'' ), 3)
The SDO_DIMINFO for both layers (UK, national grid) is:
((X, 0, 700000, 5E-10), (Y, 0, 1300000, 5E-10), , )
I have been running this successfully for a while now. However the 3rd party that supply layer B have done some major updates and I now have some errors when running the routine i.e. some of the polygons now cause errors.
The error I get is:
ORA-13347: the coordinates defining an arc are not distinct
It is a bit of a needle in a hay stack trying to find the ‘error’ polys and have found 3 so far. The way I have found the Layer B errors is by changing the tolerance in the above area calculation to 0.1 (in the polgon where Layer A fails), the query will run with the lower tolerance and a NULL record is returned for the error polys. I have taken these out of Spatial and loaded into ESRI, after geometry checks ESRI describes the error as “self intersections”. Once cleaned and reloaded the routine works ok. I did find some examples of these self intersections that are not causing a problem.
One thing that confused me was I got no error reported using this:
SELECT c.LAYERA_ID, SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(c.geom, 0.005)
FROM LAYER B c
I noticed the MDSYS.SDO_ELEM_INFO_ARRAY(1,1005…, was 1005 for the error polys rather than 1003, not sure about the significance of this!
I wondered whether there was a ‘better’ way of identifying the polygons upsetting the area calculation (and why VALIDATE_GEOMETRY_WITH_CONTEXT wasn’t picking these up).
And
How much accuracy would I lose in downgrading the tolerance of the area calculation to 0.1. Comparing results for 0.1 and 0.0005 they seem to be only different at 3 decimal places.
Thanks for any help/comments (I am fairly inexperienced on Oracle Spatial)….

Thanks again for the posts.
I have run my 5+million polygons through the has_arc procedure (thanks for that!) and this returned x4 polygons (3 of which I had identified as breaking my procedure). The additional one didn’t seem to be causing any problems – and ESRI didn’t find any geometry errors.
So I am inclined to think this issue has come about by the (recent) addition of these polygons with the ‘Circular Arcs’ to layer b (by a third party).
Moving forward when ever I get a cut of the latest version of the data (Layer b). I will run the has_arc function to see if any new polygons have gone into the layer – as it is likely these could be a problem. I have managed to now run the procedure with the addition of the x3 cleaned polygons. So hopefully when I start to re run the procedure on different Layer A's I will be ok i.e. Layer B wont break it (fingers crossed).
In summary to the problem I encountered:
I get Layer B from a third party (imported from their database), all in UK nat grid (metres) (81989). The SDO_DIMINFO setting coming from the source. It is based on detailed large scale mapping.
The procedure breaks on the x3 polygons when returning the area (SQL in original post) of intersection using 0.0005, I can by-pass the error using 0.1 and get a null intersection area returned.
I can get a spatial layer intersection output using the problem data.
I am still a bit confused as to what a circular arc actual means in terms of geometry (I haven’t done any digitising type work for a bout 15 years and my old topology type knowledge seems to have left me…) Once I understand it – I would like to raise it with the 3rd to ascertain why they are there. The polygons ‘look’ very simple!
And does anybody have any recommended reading re tolerances. The only GIS I have used in the last few years has been desktop GIS – where I haven’t really had to worry about setting appropriate tolerances. The stuff I have read on Oracle’s site has left me a bit puzzled.
Cheers

Similar Messages

  • Itunes wont open. Ive tried uninstalling, cleaned up my PC and then re installed again but still wont open! There are no error messages. It just wont open

    Itunes wont open. Ive tried uninstalling, cleaned up my PC and then re installed again but still wont open! There are no error messages. It just wont open! Im very frustrated and anything would help! I have Windows 7 or Vista. Idk which

    Hello Dr.Help,
    Thank you for providing so much information about the issue you are experiencing with iTunes.  It sounds like you have tried reinstalling it, but nothing happens when you launch it.  I recommend following the steps in this article to resolve launch issues with iTunes:
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1717
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Trying to sync an old iPhone to iTunes and error message in iTunes appears: "We are sorry, we are unable to continue with your activation at this time" so unable to sync.

    Trying to sync an old iPhone to iTunes and error message in iTunes appears: "We are sorry, we are unable to continue with your activation at this time" so unable to sync.

    How long has this been going on?
    If more than 48 hours, then try a different computer.

  • I upgraded to Lion yesterday. Now I keep getting and error message: there was a problem connecting to the server. URLs with type "file:" are not supported. What server?

    I upgraded to Lion yesterday. Now I keep getting and error message: there was a problem connecting to the server. URLs with type "file:" are not supported. What server? How do I get rid of this.

    Take a look at this link, https://discussions.apple.com/message/16156214#16156214

  • I use Safari on a Windows XP os.  Suddenly I cannot access my email and there are no error messages to indicate why.  How do I troubleshoot this?

    I have been using safari on a pretty old Dell with Windows XP.  I use it mainly to access email on google.  Suddenly I cannot get into my emails and there
    are no error messages.  How should I troubleshoot this problem?  Also, safari is an older version - should I upgrade it?

    Safari for Windows was discontinued a long time ago. It has bugs that will never be fixed, and it should no longer be used.

  • I updated to iTunes 12 and didn't like it. Followed advice to revert to 11.1. Now my iphone won't sync and error message says I need iTunes 11.2 or higher. Apple Download choices didn't have anything between 11.1.5 and 12. What can I do?

    I updated to iTunes 12 and didn't like it. Followed advice to revert to 11.1. Now my iPhone 5 won't sync and error message says I need iTunes 11.2 or higher. Apple Download choices didn't have anything between 11.1.5 and 12. What can I do? Using iTunes 12 is not an option. Many features I used for audiobooks have disappeared.

    The version immediately prior to 12 was 11.4.0.18. Here are direct download links from Apple's servers:
    iTunes 11.4.0.18 for Windows (32-bit) - iTunesSetup.exe (2014-09-09)
    iTunes 11.4.0.18 for Windows (64-bit) - iTunes64Setup.exe (2014-09-09)
    tt2

  • I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a n

    I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a newer version? they are the same versions and both are up to date, I was asked this morning to put in my adobe id email and password to connect to CC which I have never been asked to do before, can anyone help?

    what's your home version (click help>about) and was that just a warning so you were able to open the file?

  • Trying to send e-mail and error message " a copy has been placed in your outbox. the sender address was rejected by the server"

    trying to send e-mail and error message " a copy has been placed in your outbox. the sender address was rejected by the server"

    i have the same problem with my 3gs and tried to add my email acc+pass in the outgoing server but it got rejected.
    just bin on the phone(45min) with my carrier support about this issue they are pretty much scratching there head, the settings i should use gets verified with no problems when i add the outgoung server, but still cant send mails.

  • When target DB is down in which table is the data from source is stored, also where are the error messages stored in ODI

    When target DB is down in which table is the data from source is stored, also where are the error messages stored in ODI( I am not getting any error message in E$_TARGET_ANI_TEST).
    When i am running the interface i am getting the below error against the errored step
    "ORA-01045: user ABC lacks CREATE SESSION privilege; logon denied."
    Only E$_TARGET_ANI_TEST  is created with no data. No such tables like C$_0TARGET_ANI_TEST, I$_TARGET_ANI_TEST are created and also data is not inserted in the target table TARGET_ANI_TEST.

    Hi,
    I have checked that only E$ table is created. C$ and I$ table are not created ( I have selected my target schema as the part for the staging table).
    All the parameters for dropping the tables are selected as "<default>:false".
    I am importing the following KMs with the following parameters:
    1) CKM Oracle
    DROP_ERROR_TABLE
    :false
    DROP_CHECK_TABLE
    :false
    CREATE_ERROR_INDEX
    :true
    COMPATIBLE
    :9
    VALIDATE
    :false
    ENABLE_EDITION_SUPPORT
    :false
    UPGRADE_ERROR_TABLE
    :false
    2) LKM SQL to SQL
    DELETE_TEMPORARY_OBJECTS
    :true
    3) IKM SQL Incremental Update
    INSERT
    :true
    UPDATE
    :true
    COMMIT
    :true
    SYNC_JRN_DELETE
    :true
    FLOW_CONTROL
    :true
    RECYCLE_ERRORS
    :false
    STATIC_CONTROL
    :false
    TRUNCATE
    :false
    DELETE_ALL
    :false
    CREATE_TARG_TABLE
    :false
    DELETE_TEMPORARY_OBJECTS
    :true 

  • Images with success and error messages

    Hi,
    I am using theme 20. I want to add a success image on all success messages and an error image on all validation failure messages. I can do this by putting img tag in messages individually. Is there an easy way by which I can make sure that all success and error messages are always displayed with a corresponding image without including img tag in every message?
    Thanks,
    Bhavesh

    Hi Bhavesh,
    in page template there is Subtemplate region related to success, error and notification messages. You can put there your HTML tags and add some css class or image for every page using this template.
    Regards,
    Przemek

  • Since upgrading to Lion, my time machine backups are failing - error message: The backup disk image "/Volumes/Jackie Scanlon's Time Caps/Jacqueline Drabczynska's MacBook.sparsebundle" could not be accessed (error -1). Any ideas?

    Since upgrading my Macbook to Lion, the time machine backups are failing - error message: "The backup disk image “/Volumes/Jackie Scanlon's Time Caps/Jacqueline Drabczynska’s MacBook.sparsebundle” could not be accessed (error -1)."  I have rebooted the TIme Capsule and it worked OK, but don't want to do that every time.  Any suggestions?  Thanks

    Any new info on this? 
    I had the exact same problem and went crazy and spent a hecka lot of time trying to deal with my brand new 2TB Time Capsule and almost brand new MacBook Pro.  Then I thought I fixed it...and I tried SO MANY things, I don't really know what did it...except taking out any apostrophe's in names of stuff that Apple puts in there...BUT...now it's back.
    Grrr...

  • HT4972 I'm getting and error message while trying to update to ios6, what should I do?

    I'm getting and error message when I'm trying to update to ios6? What can I do?

    How are you trying to update?  You can't do it with wifi.  The easiest and safest way, is to open iTunes and don't connect the phone.  Download the update and connect when it is complete.

  • Are javac error messages documented with comprehensive explanations

    Hi all:
    Are the error messages which javac produces documented?
    Can anyone recommend a source which explains exactly what the message is trying to tell the beginner?
    Often the meaning of the message is clear. But frequently one looks at the message and wonders exactly what the compiler is trying to tell you and how to go about fixing it.
    By the way, I am using JDK 1.3.1. I did try searching the forum because I am sure this question has been asked but I couldn't phrase the query so that it gave a reasonable number of items to look at.
    Thanks all
    Bill

    One good tutorial on the meaning of the the various common javac error messages can be found here: http://mindprod.com/errormessages.html
    Roedy's stuff is usually quite accurate and reasonably up to date. You might also want to peek around the rest of his Java Glossary - it's got a lot of great info.
    Chuck

  • Alert is triggered daily even if there are no error messages

    Hi,
    I have done Alert Configuration for a service with the help of a document from SCN. It is successful when an error occurs.
    But I get an alert email Daily(even when there are no errors) and the message and service details mentioned in the mail will be blank.
    eg: Below are the error message details
           MessageID:
           Service:
    I want the mail to be triggered only when there is an error message.
    So could someone please help with the solution or guide me with the links of documents or threads that can provide the solution.
    Thanks In Advance

    hi
    plz refer the following  link
    http://forums.sdn.sap.com/thread.jspa?threadID=2147596&tstart=60

  • Have down loaded latest I tune software and error message cant find I tunes library appears?

    latest I tune software loaded and error message can't find I tunes library appears?

    Hey andcar1,
    Welcome to the Apple Support Communities. If iTunes cannot find the library, you can look on your computer to find it. The following article will assist with finding those files.
    No content shows up in iTunes after updating
    http://support.apple.com/kb/TS1967
    This article is informative and will let you know where files are typically located on your computer.
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    Regards,
    -Norm G.

Maybe you are looking for

  • Acrobat 8 in Windows 7

    I recently upgraded from Windows Vista to 7 and Acrobat 8 functionality is almost entirely broken. I am running Acrobat Standard 8.2.3.   I've twice attempted program removal, fresh reinstall, and install of all available updates. Encountered problem

  • 9 Picture Template in LR 5.7 Books

    Hi, I'm making a travel book (Standard Landscape) in LR 5.7 (Mac OS 10.10.1) for Blurb and I'd like a page layout with 9 pictures but in Add Page/Multiple Photos there are only templates for 6, 12, 16, 30 and more pictures.  Is it possible to have a

  • Google tool bar keeps disappearing

    The google toolbar keeps disappearing. It isn't in the list of toolbars and it will not appear if I download it again. The only way to get it back is to uninstall firefox and download it again. The google toolbar then reappears as if nothing was ever

  • JMS Java client - JMSExcepiton initializeConnection

    Hello, I'm working on a JMS java client to connect to an OC4J instance that's residing in a Oracle Application Server. I have the client jars in the Java client classpath and in fact the JNDI lookup for the connection factory and topic succeeded but

  • Spanish dictionary

    how do i change the dictionary language to spanish? i have an essay to write in spanish and it would be useful to check my spelling etc.