Problem with SDO_relate when using polygons with holes.

I'm having a problem with sdo_relate. I'm trying to extract all elements from a point table (bdtq_batim_p) that are inside a specific polygon from another table (SDA_MUNIC_SS). The spatial index for both table have been rebuilt and the data from both table is valid.
When I do a count on the query, I know the answer should be 1422 elements (Counted in ArcGIS). However, sdo_relate gives a smaller number of elements in the result set.
The query :
SELECT count(distinct t.identifiant) FROM bdtq_batim_p t, SDA_MUNIC_SS s WHERE s.mus_co_geo = '48015' and sdo_relate( t.SHAPE,s.SHAPE,'mask=anyinteract querytype=window') = 'TRUE'
returns 282 elements. The query with mask=inside, SDO_Anyinteract() and SDO_inside() all give the same result.
I did a test with the following query and the result is 1422 (which is the good result).
SELECT count(distinct t.identifiant) FROM bdtq_batim_p t, SDA_MUNIC_SS s WHERE s.mus_co_geo = '48015' and SDO_WITHIN_DISTANCE( t.SHAPE,s.SHAPE,'distance=0') = 'TRUE';
It's important to note that the polygone (from SDA_MUNIC_SS) that is used for this query have holes in it. I have the same problem with all the polygons from the SDA_MUNIC_SS table that have holes in it. For the polygon without holes, the results are the same for the 2 queries.
My question are :
Why are the result from the two queries different? A query with a buffer of 0 should always return the same result as a query with Anyinteract.
Is there a known problem with SDO_RELATE when using a polygon with holes in it?
Do you have any idea how to solve my problem.

Since i don't have much control on the version of Oracle and Patches that we use in the system, we used a workaround that detects the polygons with holes and uses the SDO_WITHIN_DISTANCE( t.SHAPE,s.SHAPE,'distance=0') = 'TRUE' operator in those case. We saw a slight decline in performance but it now returns the right results. When the system will be patched, we'll come back to the original version and see if the problem is solved.

Similar Messages

  • When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen.  I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS.  I'm usi

    When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen.  I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS.  I'm using a Mac with Mountain Lion OS.  Any solutions?

    Adobe now hides the editor - what looks like it is not - you want the editor hidden in the support folder - see http://forums.adobe.com/message/3955558#3955558 for details
    LN

  • CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there

    CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there a way around this?  Is there a patch to correct it?

    To build CD's???
    What problem does Encore have with DL?
    If DL is not working properly for you the way around this is to export from Premiere to either mpeg2-dvd for DVD or BluRay H.264 for BD-disks and import the files in Encore.

  • Display "blank-out" when using Maya with a GF 7800?

    I have a problem where my LCD display occasionally blinks off for about 5-10 seconds when using Maya with a scene displaying about 100,000 polys. Has anyone else encountered this? This only seems to happen when I am quickly rotating the camera in a grey shaded perspective panel?
    My LCD is a Dell 20" LCD (set at 1600x1200) connected to a Geforce 7800 in a Quad G5 with 4.5GB of ram.
    I have never seen this issue before in Maya (I have been using Maya for years, on other machines), so I suspect it is hardware or driver related?

    OK, have completed several tests. I definately seems that the my Geforce 7800 has problems when running some applications. I wonder if anyone else has encountered this problem?
    The easiest way to cause the display to momentarily shut off is to use Maya in the full screen perspective camera window in shaded mode. Proceed to rapidly move a 20,000 poly model (or greater) both zooming and rotating (the polys need to fill the entire screen and shake the mouse).My display (Dell 20" 2001fp) will blink-off for a few seconds. Of course, this in not "normal" work flow, but I have this issue happening when working normally, it can sometimes take time to occur.
    I have tried the Geforce 6600 (256mb ver) and this does not occur with that video card. I have tried several mice both wired and wireless, plus changed the Energy Saver options for Processor performance (from comments I read on Macintouch.com). The problem is consistent to my Geforce 7800. This problem will also occur in Photoshop CS, by moving images and resizing, but I found it much harder to induce.

  • Performance problem in Mapping Designer using UDF with external imports

    Hello,
    we do have a big performance problem in developing (not in execution) graphical Mappings as far as we use "user defined functions" (UDF) with include-entries referencing to jar files which are imported as "imported archives".
    For example the execution of invice mapping with a little bit bigger test file in the Mapping designer:
    - after opening, not in change mod: 6 seconds
    - after switching to change mod: 37 seconds (that's clear, now everything is compiled first)
    - after adding "com.seeburger.functions.permstore.CounterFactory;" into the "import" field of one UDF, no other change: 227 seconds
    - after saving and submiting the changlist (no longer in change mode): 6 seconds
    - after switching to change mode: 227 seconds
    So execution speed of testing (and also when watching queues) only increases in changemod more then three minutes when using UDF with imports, referencing to external JAR files. It doesn't depend on Seeburger functions (we are using XI also for EDIFACT, so we also use some Seeburger functions), I can reproduce it with any other JAR file which is used from a UDF.
    Using java included functions like "java.text.NumberFormat;" in "Import" doesn't slow down the testing.
    Can anybody reproduce this? We are using XI 3.0 SP19 on a AIX machine, so we also have to use the Java version from IBM.
    cu
    Manfred

    Problem was fixed by a upgrad of the JDK.

  • When using iPhone with Ford automobiles' Sync, the connection drops each time the ignition is shut off. In order to restore, the bluetooth must be turned off on the iphone, then restarted. Any suggestions?

    When using iPhone with Ford Automobiles' SYNC, the connection drops each time the ignition is shut off. To restore, you must turn off the bluetooth on iPhone, then restart each time. Any suggestions?

    There is an update avaialbe for Ford systems to correct bluetooth problems. You need to update your system.

  • Since upgrading iMac to osx lion I have been experiencing problems in mail, it spontaneously stops receiving and tells me it can't find the pop server and also the biggest problem is that when I send with an attachment the recipient doesn't receive it.

    Since upgrading iMac to osx lion I have been experiencing problems in mail, it spontaneously stops receiving and tells me it can't find the pop server and also the biggest problem is that when I send with an attachment the recipient doesn't receive it.
    I have to restart mail most times before it starts recieving or recognizes the pop server.
    As I said a lot of recipients do not recieve my mails when there is an attachment or when I reply to their email.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How to store a layout, when using CL_SALV_TREE with a container?

    Hello,
    I'd like to use an object of type CL_SALV_TREE, that is placed on a custom container (and therefore not displayed in fullscreen).
    But how do I get the functionality to store a layout, when using CL_SALV_TREE not in fullscreen mode? If you use it in fullscreen mode, you just have to define the function code in your gui status and everything is ok.
    But since I want to place my CL_SALV_TREE on a custom container, that method does not work. If I call <my_salv_tree>->get_functions( ) it returns a table, that holds just six entries. So, the appropiate function for storing a layout does not seem to be in the default set of functions, when using CL_SALV_TREE with a custom container. But how do I activate this function?
    I already call the functions get_layout() and set_key() - so that shouldn't be the problem. Or is just not possible to use CL_SALV_TREE on a custom container and have the possibility to store layouts?
    Kind regards, Lars

    Hello,
    I'd like to use an object of type CL_SALV_TREE, that is placed on a custom container (and therefore not displayed in fullscreen).
    But how do I get the functionality to store a layout, when using CL_SALV_TREE not in fullscreen mode? If you use it in fullscreen mode, you just have to define the function code in your gui status and everything is ok.
    But since I want to place my CL_SALV_TREE on a custom container, that method does not work. If I call <my_salv_tree>->get_functions( ) it returns a table, that holds just six entries. So, the appropiate function for storing a layout does not seem to be in the default set of functions, when using CL_SALV_TREE with a custom container. But how do I activate this function?
    I already call the functions get_layout() and set_key() - so that shouldn't be the problem. Or is just not possible to use CL_SALV_TREE on a custom container and have the possibility to store layouts?
    Kind regards, Lars

  • We're sorry. It seems there is a problem. Please try using Gmail with a supported browser. If you're encountering this error while using a supported browser, we

    after the last udpate I can no longer access gmail or youtube. the error message from gmail is: We're sorry. It seems there is a problem. Please try using Gmail with a supported browser. If you're encountering this error while using a supported browser, we suggest alerting your Internet Service Provider (ISP) that a proxy is failing to accept cookies on HTTP redirects.
    youtube just lists some generic issue regarding cookies, and my cookie settings are wide open. I can open both with safari so it is a firefox issue.

    Did you install any new add-ons lately? I see listed:
    AddThis 3.5.9 ({3e0e7d2a-070f-4a47-b019-91fe5385ba79})<br />
    Advertising Cookie Opt-out 1.5 ([email protected])<br />
    Flash Video Downloader 5.3.2 ([email protected])<br />
    Garmin Communicator 4.1.0 ({195A3098-0BD5-4e90-AE22-BA1C540AFD1E})<br />
    socialvest 0.5.5 ([email protected])<br />
    Troubleshooter 1.1a ([email protected])<br />
    eMusic Community Toolbar 3.21.0.1 ({9ee802e8-c931-47ab-b570-aa8f791598ca}) (Inactive)
    Are any of these new?

  • Best practice when using Tangosol with an app server

    Hi,
    I'm wondering what is the best practice when using Tangosol with an app server (Websphere 6.1 in this case). I've been able to set it up using the resource adapter, tried using distributed transactions and it appears to work as expected - I've also been able to see cache data from another app server instance.
    However, it appears that cache data vanishes after a while. I've not yet been able to put my finger on when, but garbage collection is a possibility I've come to suspect.
    Data in the cache survives the removal of the EJB, but somewhere later down the line it appear to vanish. I'm not aware of any expiry settings for the cache that would explain this (to the best of my understanding the default is "no expiry"), so GC came to mind. Would this be the explanation?
    If that would be the explanation, what would be a better way to keep the cache from being subject to GC - to have a "startup class" in the app server that holds on to the cache object, or would there be other ways? Currently the EJB calls getCacheAdapter, so I guess Bad Things may happen when the EJB is removed...
    Best regards,
    /Per

    Hi Gene,
    I found the configuration file embedded in coherence.jar. Am I supposed to replace it and re-package coherence.jar?
    If I put it elsewhere (in the "classpath") - is there a way I can be sure that it has been found by Coherence (like a message in the standard output stream)? My experience with Websphere is that "classpath" is a rather ...vague concept, we use the J2CA adapter which most probably has a different class loader than the EAR that contains the EJB, and I would rather avoid to do a lot of trial/error corrections to a file just to find that it's not actually been used.
    Anyway, at this stage my tests are still focused on distributed transactions/2PC/commit/rollback/recovery, and we're nowhere near 10,000 objects. As a matter of fact, we haven't had more than 1024 objects in these app servers. In the typical scenario where I've seen objects "fade away", there has been only one or two objects in the test data. And they both disappear...
    Still confused,
    /Per

  • When using Numbers with iCloud, a new version of the spreadsheet is created even when no reisions have been made. Why is this, and how do I make it stop?

    When using Numbers with iCloud, a new version is created every time I make a change. I do not want all these revised documents. When I change a document, I commit to that change. How do I shut off this multiple-revision feature of Numbers being pushed to iCloud.
    Also....
    When using Numbers with iCloud, a new version of the spreadsheet is created even when no revisions have been made. Why is this, and how do I make it stop?
    My files are growing.

    Your plugins list shows outdated plugin(s) with known security and stability risks.
    # Java Plug-in 1.5.0_11 for Netscape Navigator (DLL Helper)
    # Adobe Shockwave for Director Netscape plug-in, version 11.0
    Update the [[Java]] and [[Shockwave|Shockwave for Director]] plugin to the latest version.
    See
    http://java.sun.com/javase/downloads/index.jsp#jdk (you need JRE)
    http://www.adobe.com/shockwave/welcome/

  • When using pdfFactory with Firefox, why are the colors on the pdf not correct?

    The colors are vastly different when using pdf Factory with Firefox. When using pdfFactory with IE, they are both the same.

    There doesn't seem to be a one-size-fits-all answer, because what works for one printer doesn't necessarily work for another, and I don't have your printer so I can't advise on specifics...
    However, perhaps we can discover a set of settings that will work...
    If you File - Print, choose Photoshop Manages Colors, in the Printer Profile section do you see profiles specific to your printer (e.g., with the name Kodak in them)?
    If so, choose one of them that seems appropriate given the paper you're using.
    If not, try choosing sRGB IEC61966-2.1.
    Now, before you continue, press the [Print Settings...] button.  This brings up the printer driver dialog.  You may have to go through [Advanced] buttons or whatever, but what you're looking to do here is to disable the printer driver's color management logic.  In other words, if you can find a color-management / ICC profile handling section, set it to "no color management" or equivalent.  OK back out to Photoshop's print dialog, then press [Print].
    The key here is that if Photoshop manages the color transforms, the printer driver should not be set to do so - or vice versa.
    If you're presented with the printer driver's dialog again, double check that the settings you chose above are still set, for good measure, and try a test print.
    -Noel

  • Only 274 mails are coming when using pop3 with java mail

    Only 274 mails are coming from GMAIL when using pop3 with java mail. but there are more than 3000 mails.
    I'm not getting the reason, code is given below:
    public static void main(String[] args) {
            // SUBSTITUTE YOUR ISP's POP3 SERVER HERE!!!
    //        String host = "pop.bizmail.yahoo.com";
    //        final String user = "[email protected]";
    //        final String password = "xxx";
            String host = "pop.gmail.com";
            final String user = "gauravjlj";
            final String password = "xxx";
            String subjectSubstringToSearch = "Test E-Mail through Java";
            try {
                 Properties prop = new Properties();
                prop.setProperty("mail.pop3.socketFactory.class",
                                            "javax.net.ssl.SSLSocketFactory");
                prop.setProperty("mail.pop3.socketFactory.fallback", "false");
                prop.setProperty("mail.pop3.port", "995");
                prop.setProperty("mail.pop3.socketFactory.port", "995");
                prop.put("mail.pop3.host", host);
                prop.put("mail.store.protocol", "pop3");
                Session session = Session.getDefaultInstance(prop);
                Store store = session.getStore();
                System.out.println("your ID is : "+ user);
                System.out.println("Connecting...");
                store.connect(host, user, password);
                System.out.println("Connected...");
                // Get "INBOX"
                Folder fldr = store.getFolder("INBOX");
                fldr.open(Folder.READ_ONLY);
                int count = fldr.getMessageCount();
                System.out.println(count  + " total messages");
                // Message numebers start at 1
                for(int i = 1; i <= count; i++) {
                                            // Get  a message by its sequence number
                    Message m = fldr.getMessage(i);
                    // Get some headers
                    Date date = m.getSentDate();
                    Address [] from = m.getFrom();
                    String subj = m.getSubject();
                    String mimeType = m.getContentType();
                    System.out.println(date + "\t" + from[0] + "\t" +
                                        subj + "\t" + mimeType);
                // Search for e-mails by some subject substring
                String pattern = subjectSubstringToSearch;
                SubjectTerm st = new SubjectTerm(pattern);
                // Get some message references
                Message [] found = fldr.search(st);
                System.out.println(found.length +
                                    " messages matched Subject pattern \"" +
                                    pattern + "\"");
                for (int i = 0; i < found.length; i++) {
                    Message m = found;
    // Get some headers
    Date date = m.getSentDate();
    Address [] from = m.getFrom();
    String subj = m.getSubject();
    String mimeType = m.getContentType();
    System.out.println(date + "\t" + from[0] + "\t" +
    subj + "\t" + mimeType);
    Object o = m.getContent();
    if (o instanceof String) {
    System.out.println("**This is a String Message**");
    System.out.println((String)o);
    else if (o instanceof Multipart) {
    System.out.print("**This is a Multipart Message. ");
    Multipart mp = (Multipart)o;
    int count3 = mp.getCount();
    System.out.println("It has " + count3 +
    " BodyParts in it**");
    for (int j = 0; j < count3; j++) {
    // Part are numbered starting at 0
    BodyPart b = mp.getBodyPart(j);
    String mimeType2 = b.getContentType();
    System.out.println( "BodyPart " + (j + 1) +
    " is of MimeType " + mimeType);
    Object o2 = b.getContent();
    if (o2 instanceof String) {
    System.out.println("**This is a String BodyPart**");
    System.out.println((String)o2);
    else if (o2 instanceof Multipart) {
    System.out.print(
    "**This BodyPart is a nested Multipart. ");
    Multipart mp2 = (Multipart)o2;
    int count2 = mp2.getCount();
    System.out.println("It has " + count2 +
    "further BodyParts in it**");
    else if (o2 instanceof InputStream) {
    System.out.println(
    "**This is an InputStream BodyPart**");
    } //End of for
    else if (o instanceof InputStream) {
    System.out.println("**This is an InputStream message**");
    InputStream is = (InputStream)o;
    // Assumes character content (not binary images)
    int c;
    while ((c = is.read()) != -1) {
    System.out.write(c);
    // Uncomment to set "delete" flag on the message
    //m.setFlag(Flags.Flag.DELETED,true);
    } //End of for
    // "true" actually deletes flagged messages from folder
    fldr.close(true);
    store.close();
    catch (MessagingException mex) {
    // Prints all nested (chained) exceptions as well
    mex.printStackTrace();
    catch (IOException ioex) {
    ioex.printStackTrace();
    Please tell me.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Is it possible that GMail only allows access to untagged emails via POP3? Or only to emails from the last x days?
    POP3 is the older email retrieval protocol (IMAP4 is the more current one) and only has very limited support for folders (or anything but a single inbox, really). It's quite common that POP3 only allows access to a subset of all emails stored by a provider.

  • There is no way to see who is on line when using facebook with iPad 2

    There is no way to see who is on line when using facebook with iPad 2 why is that?

    I'm guessing you mean for FB Chat? Try the app Friendly.

  • Is there a way that when using airplay with power point the ATV does not sleep/screen saver frequently

    s there a way that when using airplay with power point the ATV does not sleep/screen saver frequently???

    I have done this for several Titles, using Photoshop and a Layer Mask, that gets "erased," revealing the letters. My Titles were of "handwriting with chalk" on a blackboard, so I could keep the edge of that Layer Mask, looking more like the "chalk." Photoshop also makes it easy to output Layer Comps for each "step" in the handwriting process. IIRC, I did about 5 Frames per Layer Comp on Import, but do not recall if I used an extremely short Cross-Dissolve Transition between those - I intened to do so, but just do not remember if I liked that, or went with just the Still Images? Will try to find that animation, and maybe create a full tutorial of the process. In my case, I also added an SFX of chalk on a chalkboard.
    If you have Photoshop, it's really quite easy to pull off.
    Now, I do not know if Photoshop Elements has Layer Masks yet, which make it so very easy to accomplish. One could do it backward, where the Text Layer gets Erased, and then one would have their full Image as the last in the sequence, and then the next would have a little bit of the Text removed, then a bit more, then a bit more - going backward, until the "writing surface" is clean. One could also do this with a Transparent Background, so that one saw the Video below, and no actual "writing surface" visible.
    Good luck,
    Hunt

Maybe you are looking for

  • How to check out a certain mail was sent or not in program?

    Hi, all I'm wondering that... I have to make sure that whether a mail has been sent or not in my program. The smartforms of this mail has been binded with an activity in SPRO. What I have are: Title of the mail, sender name&address, recipient name&ad

  • How to forward my router

    I have a lacie NAS disk connected at a airport extreme. The problem is that i can't connect from a guest computer. The advise is to portforward the airport extreme. I need to forward port 80 from extern ip adress to intern ip adress. My router is the

  • Printing messages through ODI procedure using Javashell bean

    I am new to this ODI procedure using Javashell bean. As i know some basics in Java ,i am trying this following code through ODI. I wanted to print messages using the code System.out.println("Welcome"); But where we can see the output for this code in

  • Flash Animation in HTML page

    I have an HTML site (unfortunately only an intranet site so I can't share) that has swfs used in various places. The home page of the site has a movie that I would like, if possible to only play when a user enters the site. If, during a session they

  • DDIC_ ACTIVATION error  with SAPKB70006 on ECC6/NW7

    Hi BASIS GURUS, I am doing support package SAPKB70006 to SAPKB70012  in ecc 6.0 IDES system. When i check the import logs queue. It showing these below tables are not activated. Then i try to activated in se14,se11,se38. But there it showing cannot b