SDO_GEOM. Relate ("The INTERIOR", polygon, polygon)

Hello

I need to execute a query using a geometry table WKT, but it doesn't produce any result (0 rows returned)

The query is as follows:

SELECT... Of... WHERE...

AND SDO_GEOM. RELATE (GEOGRAPHICAL_LOCATION, "ANYINTERACT", MDSYS. SDO_GEOMETRY (2003,8307, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,3), MDSYS. SDO_ORDINATE_ARRAY (33.0,36.0,37.0,41.0)), 0.05) = 'TRUE '.

AND SDO_GEOM. RELATE (GEOGRAPHICAL_LOCATION, 'INSIDE', SDO_GEOMETRY ('POLYGON ((-90,180-180-90, 180 90, 90-180-180-90))', 8307), 0.05) = "INSIDE".

AND ROWNUM < 500;

If I remove 'INSIDE' query filter, it produces the results so I think that it is not a problem with the spatial index.

So dig in I met the problem, there is an inconsistency (probably I'm wrong somewhere). The symptoms are given such as:

1. try specified polygon is inside a box (World MBR [-180, 180] X [-90, 90])

Select SDO_GEOM. RELATE)

MDSYS. SDO_GEOMETRY (2003,8307, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,1), MDSYS. SDO_ORDINATE_ARRAY (36,26,45,26,45,38.5,36,38.5,36,26))

, "INSIDE."

MDSYS. SDO_GEOMETRY (2003,8307, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,3), MDSYS. SDO_ORDINATE_ARRAY(-180,-90,180,90))

0.05) than double;

happening 'INSIDE'

2 try specified polygon is inside a polygon (World MBR [-180, 180] X [-90, 90])

Select SDO_GEOM. RELATE)

MDSYS. SDO_GEOMETRY (2003,8307, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,1), MDSYS. SDO_ORDINATE_ARRAY (36,26,45,26,45,38.5,36,38.5,36,26))

, "INSIDE."

MDSYS. SDO_GEOMETRY (2003,8307, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,1), MDSYS. SDO_ORDINATE_ARRAY(-180,-90,180,-90,180,90,-180,90,-180,-90))

0.05) than double;

which produces 'FALSE' (and 2nd points of the polygon is defined in order counterclockwise)

3. try specified polygon is inside a polygon defined by WKT (World MBR [-180, 180] X [-90, 90])

Select SDO_GEOM. RELATE)

MDSYS. SDO_GEOMETRY (2003,8307, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,1), MDSYS. SDO_ORDINATE_ARRAY (36,26,45,26,45,38.5,36,38.5,36,26))

, "INSIDE."

SDO_GEOMETRY ('POLYGON ((-90,180-180-90, 180 90, 90-180-180-90))', 8307)

0.05) than double;

which produces 'FALSE' (and 2nd points of the polygon is defined in order counterclockwise).

4. to be sure, I generated WKT using geometry in 1st round by SDO_UTIL package which is

Select SDO_GEOM. RELATE)

MDSYS. SDO_GEOMETRY (2003,8307, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,1), MDSYS. SDO_ORDINATE_ARRAY (36,26,45,26,45,38.5,36,38.5,36,26))

, "INSIDE."

SDO_GEOMETRY (SDO_UTIL.to_WKTGEOMETRY (MDSYS. SDO_GEOMETRY (2003,8307, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,3), MDSYS. SDO_ORDINATE_ARRAY(-180,-90,180,90))), 8307)

0.05) than double;

that always produces 'FALSE '.

Could someone please help find what's not here.

Thanks in advance.

By the way; the oracle DB version is:

Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

PL/SQL Release 11.2.0.2.0 - Production

"CORE 11.2.0.2.0 Production."

AMT for Linux: Version 11.2.0.2.0 - Production

NLSRTL Version 11.2.0.2.0 - Production

found the problem to: http://docs.oracle.com/cd/B28359_01/appdev.111/b28400/sdo_cs_concepts.htm#SPATL624

who says:

The following size limits apply, with geodetic data:

  • No polygon element can have a greater or equal to the half of the surface of the Earth.
  • Online, the distance between two adjacent coordinates cannot be greater or equal to half of the perimeter (a great circle) of the Earth.

Tags: Database

Similar Questions

  • I'm not able to select the cloud, polygons and drawing markup tools lines connected to this end.

    I recently installed Adobe Pro XI. I can't select the cloud, polygons and lines connected markup drawing tools. I can see them, but they are greyed out so I am not able to choose them.

    I am running Windows 7 64 bit on an Asus ZenBook laptop.

    Any help would be really appreciated.

    Kind regards

    KF Panda

    This touchscreen laptop is capable?

    If this is not the case, check if you have the Touch preference in Adobe Acrobat active XI.  If you, then turn off.

  • sdo_geom.relate returns the MASK of the UNKNOWN: 000000001

    I have everything,
    I use on a database of Oracle 11 g Release 11.1.0.6.0 - 64 bit Production With the Real Application Clusters option.

    I have to determine what relationship there is between 2 sdo_geometry.
    I run this query:

    Select sdo_geom.relate (shape_1, "determine", shape_2, 0.5) determine,
    sdo_geom.relate (shape_1, 'anyinteract', shape_2, 0.5) anyinteract
    Double;

    I get:

    DETERMINE THE ANYINTERACT
    MASK UNKNOWN: 000000001 TRUE

    That means MASK UNKNOWN: 000000001 average?
    How can I determine the relationship?

    Thanks in advance.
    Samuel

    The second and third pairs ordered at the end are the same for the two geometry.
    shape_1:-66.89470555713654,10.514948048707884
    shape_2:-66.87824215820313,10.508391980537853

    remove the redundancy pts and see if that fixes the problem.

    Jack

  • sdo_geom.relate vs sdo_relate

    Hello

    As a beginner to oracle space, I have a query which is a little confusing me.
    I understand that sdo_relate uses the spatial index and queries data slightly differently than sdo_geom.relate therefor.

    I have a database of street that is shared by postal code, for example if a street passes through 3 postal codes, I have it divided into 3 separate blocks.
    Now, I want to go back to all segments of the streets and their post_code id matching.

    -REQUEST 1
    Select street_id, post_code p.id s.id
    of AP_STREETS s, AP_POSTCODE p
    where sdo_relate (s.geoloc, p.geoloc, "MASK = INSIDE + DOMMAGESCAUSDSPAR") = "TRUE";

    -REQUEST 2
    Select street_id, post_code p.id s.id
    of AP_STREETS s, AP_POSTCODE p
    where sdo_geom.relate (s.geoloc, 'INTERIOR + DOMMAGESCAUSDSPAR', p.geoloc, 0.05) = "INTERIOR + DOMMAGESCAUSDSPAR;

    QUERY 1 returns nothing while 2 QUERY returns the values and the correct set of records.
    The only thing is the time it takes for the shuttle sdo_geom.relate is not very effective.
    I tested only with a recordset of 10 000 segments streets, but the live DB will be over 5 million.
    At 10,000, it takes the request almost 30 minutes, is not ideal to say the least.

    Any help/advice would be welcome.

    Kind regards
    David

    sdo_relate should return the same results as sdo_geom.relate returns,
    If the same tolerance is used. Which version of DB are you using? Please
    Try 11.2.0.2 if possible.

  • Spatial relationship: why it's the side of the folded polygon?

    I have a polygon and five points:
    Polygon: SDO_GEOMETRY(2003,8307,NULL,SDO_ELEM_INFO_ARRAY(1,1003,1),SDO_ORDINATE_ARRAY(-175.9356,53.3492,-156.0689,53.3492,-156.0689,66.1992,-175.9356,66.1992,-175.9356,53.3492)
    Five points:
    A: MDSYS. SDO_GEOMETRY (2001,8307, null, MDSYS. SDO_ELEM_INFO_ARRAY (1,1,1), MDSYS. SDO_ORDINATE_ARRAY(-175.8287,53.3812))
    B: MDSYS. SDO_GEOMETRY (2001,8307, null, MDSYS. SDO_ELEM_INFO_ARRAY (1,1,1), MDSYS. SDO_ORDINATE_ARRAY(-171.6161,53.3812))
    C: MDSYS. SDO_GEOMETRY (2001,8307, null, MDSYS. SDO_ELEM_INFO_ARRAY (1,1,1), MDSYS. SDO_ORDINATE_ARRAY(-166.3816,53.3812))
    D: MDSYS. SDO_GEOMETRY (2001,8307, null, MDSYS. SDO_ELEM_INFO_ARRAY (1,1,1), MDSYS. SDO_ORDINATE_ARRAY(-160.5215,53.3812))
    E: MDSYS. SDO_GEOMETRY (2001,8307, null, MDSYS. SDO_ELEM_INFO_ARRAY (1,1,1), MDSYS. SDO_ORDINATE_ARRAY(-156.2047,53.3812))
    All five points are on the same latitude: 53.3812N, which is higher than the latitude on one side of the polygon: 53.3492N. The longitude of the polygon range is - 175.9356 to-156.0689. I thought that all five points are inside the polygon, which means if I SDO_INSIDE (point, polygon) I would get REAL for all five points. But instead, I was only true for A and E. More interesting, if I use SDO_GEOM. SDO_DISTANCE to measure the distance between each point and polygon, I got the following results: r: 0, b: 27730 42364 C:, D: 28418 E: 0 since side southmost of the polygon is on 53.3492N and all points are on 53.3812N, you expect the distances between each point and polygon to be the same and they all should be zero. This makes me wonder if a side of the polygon is bending to the North. It seems that when space oracle 'creates' side of the polygon based on two corner points, she uses GEODESIC instead of loxodrome. So my question is: 1) how does work? Is this because Oracle built using the GEODESIC line of polygon? (2) how can I get SDO_INSIDE = TRUE for all five points?

    Thank you

    >
    (Select SDO_INSIDE(TEST01.geom,SDO_GEOMETRY(2003,8307,NULL,SDO_ELEM_INFO_ARRAY(1,1003,1),SDO_ORDINATE_ARRAY(-175.9356,53.3492,-156.0689,53.3492,-156.0689,66.1992,-175.9356,66.1992,-175.9356,53.3492)))
    to test01 where id = 2 >

    Documentation section 6.2.3 Oracle (10g) stipulates:

    To create a query window for certain operations on the geodetic data, use a MBR (rectangle encompassing minimum) by specifying a value SDO_ETYPE of 1003 or 2003 and a 3 SDO_INTERPRETATION

    Therefore, we modify the above query as follows:

    Select SDO_INSIDE (TEST01.geom, SDO_GEOMETRY (2003,8307, NULL, SDO_ELEM_INFO_ARRAY (1,1003, * 3 *), SDO_ORDINATE_ARRAY ()))
    -bottom left
    -175.9356,66.1992,
    -top right
    ( -156.0689,53.3492 )
    ()) to test01 where id > 1

    You get SDO_INSIDE = True for all 5 lines, as you wish.

    Kind regards
    Noel

  • Impossible to access the cloud, polygon and connect online tools

    NTSB loaded adobe pro 11 updated and the computer crashed. I downloaded it on the new computer and now my clud, polygon and render does not work. What can I do about it?

    Hi kcuhc.

    You tap Mode? If so, disable it. Please see why I can't access these three drawing annotations: cloud, polygon, draw connected lines.

    Best,

    Sara

  • All the solutions to the tool polygonal lasso that is not in line with the selection?

    In PhotoShop CS4, the polygonal lasso tool is not consistent with the selection when it is closed, but creates a curvy almost segment of circle.

    I think you may have a radius of large feathers defined in the Options bar you upstairs when the lasso tool is selected. Make sure that it is 0.

  • Restoration of the polylines/polygons

    Guys,

    I have a requirement where in the end users should be able to

    (1) draw polylines and polygons on the map and see the details of the database.
    (2) restore the polylines and polygons back on the map, persistent coordinates, when the user revisits the page.

    I am able to achieve the first condition by using the MVRedLineTool class but I'm fighting to meet the second requirement. Any help/ideas on how this can be achieved would be appreciated.

    I use Oracle cards Javascript APIs on the compilation "Ver1033p5_B081010".

    See you soon,.
    Momo

    Has just released a demo on my http://oraclemaps.blogspot.com/2009/05/storing-your-redline-geometries-in.html blog.

  • I HAVE a HP PAVILLION a6207 c HOW to CHANGE THE BATTERY C R 2032 to the INTERIOR THE COMUTER?

    I OPENED ON THE BACK OF A FEW SCREWS - BUT CAN NOT ENTER-

    THERE ARE A FEW SHELVES - ONE OR TWO HAVE A SCREWDRIVER SYMBOL ON IT

    YOU CLICK OPEN TOP?

    WHERE IS THE BATTERY LOCATED?

    ZIGGI,

    Here is the Service Manual(how to open the case and remove the side cover).

    There is only 'ONE' screws to remove and then the Panel slides (see pg 3).

    See p 28 about the battery.

    Here is anotherphoto of the Board of Directors

  • Internet Explorer 8 is not related the last when used correctly

    I have Internet Explorer 8 / 9.12 MB when I go to add/remove programs, he says I8 is used frequently, but he also says, the last time it was used was 07/01/2000. Can you explain this to me?

    I have Internet Explorer 8 / 9.12 MB when I go to add/remove programs, he says I8 is used frequently, but he also says, the last time it was used was 07/01/2000. Can you explain this to me?

    Your CMOS battery is defect and not taking the date where you have turned off?   ; )

  • Can not access the context property of the Interior of the ListView checkbox - onCheckedChange event

    I have a context property called "app" that connects to my C++ application. My listview has a box with onCheckedChange event listener. In this method, when I make a call to the C++ side. application app.runAction, the system displays not found error app.

    If I move the box outside the list view, it will correctly trigger app.runAction.

    Can you please take a look? Thank you!

    On the side of C++ on how I set the context property.

    QmlDocument * qml = QmlDocument::create("asset:///main.qml").parent(this);

    If (qml-> {hasErrors())}
    Returns false;
    }

    QML-> setContextProperty ("app", this);

    navigationPane = qml-> createRootObject();
    If (! navigationPane) {}
    Returns false;
    }

    QML side

     

    NavigationPane {}
    ID: nav

    {Page}
    ID: mainPage
    {Of container

    {To ListView

    listItemComponents:]
    {ListItemComponent}
    type: 'point '.
    {Of container

    Checkbox {}
    Determine whether the check box should be checked
    According to a value in the data model
    checked: ListItemData.checked
    onCheckedChanged: {}
    app.testAction ();
    }
    }

    This is a scope issue... I really hope the devs find a way to fix it properly apart from this ugly solution:

    You can solve this problem by setting your app variable in the global object Qt

    NavigationPane {
        id: nav
    
    onCreationCompleted: Qt.app = app
    
    Page {
            id: mainPage
            Container {
    ListView {
    listItemComponents: [
            ListItemComponent {
                            type: "item"
                            Container {
                       CheckBox {
                                    // Determine whether the CheckBox should be checked
                                    // according to a value in the data model
                                    checked: ListItemData.checked
                                    onCheckedChanged: {
                                         app.testAction();
                                         Qt.app.testAction();
                                    }
                                }
    

    all code in a ListItemComponent will suffer from this 'framing' question

  • I don't have its all online. Work all the interiors of audio playback (iTunes, computer sounds, etc...) No audio playback from the internet.

    During an explores, no site to play audio (Pandora, YouTube, etc...). Any internal programs work very well (iTunes, even tests from Realtek). When my daughter logs in as a user it also works very well. I have made sure nothing is mute and volume th is in place all the means. There is nothing I can find in all parameters with the volume to explore.

    Thanks for any help.

    Joe

    Hey Joe,

    Thanks for posting in the Microsoft Community.

    Since you are facing a problem with the audio system, it would be useful that you could answer these questions to help you further.

    1. what web browser do you use?

    2 have you ever done any recent software or changes to the hardware to the system?

    Method 1:

    If you face the issue with Internet Explorer, then try these steps and check if it helps:

    Check if the sounds in Web pages under multimedia option in Internet Explorer is turned on.

    a. open Internet Explorer. Click on Tools and click on the Advancedtab.

    b. scroll until you get the multimediaoption.

    c. under multimedia, check if the sounds in pages Web is selected.

    Method 2:

    You can also refer to the article and see if it helps:

    No sound in Windows

    If you need assistance, please answer and we will be happy to help you.

  • Cannot delete the empty space of the Interior of the line of text

    I use Indesign CS3 on PC, Windows 7. I have a manuscript with 100s of hours invested. In the middle of about 5% of the pages, I have spaces unremovable (1 or 2) the text. The location is about the location in the center of the page the extremely tiny blue square. When I move the slider tool above the paragraph text, it shows dark black with the exception of unremovable space that shows white. Desperately need help!

    I wonder if there is something that we cannot see it on the Master Page that dress him the text. As an experiment, try selecting the text frame on the Master Page (or any Page of the issue) and go to the object menu > Options of text block, in the lower left corner of the dialog box, check "Ignore the text of not dress" and press OK.

    If nothing changes, then my theory is wrong. If this solves the problem, you will need to get the rectangle at the origin of this problem of Wrap on the Master Page and delete it.

    Sorry, I have not seen above Will suggestion. I would try the above anyway, just in case there is a rectangle hidden behind the Master Page text frame.

  • Stated purpose "not defined" when I use the same line to refer to the Interior of a function

    On the painting scene, I have a hierarchy of objects of the library objectGrandFather contains objectFather, which contains objectSon that contains objectGrandson. Now, on the first frame of the timeline of the son object I have the following code that successfully refers to objectGrandson:

    this.objectGrandson.visible = false;

    But, when I try to insert that very same line of code in a function within the same framework and call this function as follows:

    refer_to_objectGrandson() {
      this.objectGrandson.visible = false;
    }
    objectGrandson(); 
    
    
    

    I get an error of undefined object. What I am doing wrong, please?

    I can barely tell what you do because the code you post is obviously not the same as the code you are testing. It works:

    this.refer_to_objectGrandson = function() {
        this.objectGrandson.visible = false;
    }
    this.refer_to_objectGrandson();
    
  • Where are compiled LessCSS files? In the Interior of BC or make compile in offline and download?

    I see some standard BC models of bootstrap-based and use fewer files for compiling style sheets. can someone tell me if BC less will compile or what I need to do so offline?

    And if a dose of BC, what is the process?

    BC is not a collection of CSS or JS, such as minification less, Sass, etc..

Maybe you are looking for

  • HP 50 g: function Division - grrr

    In College, I used the 48gx and loved.  I have two HP 50g calculators.  I use RPN mode.  If I do the following > > 5 enter 8 then enter the symbol of the division, I get two results - one is:, 625 is the other 5/8, that is, it does not work the calcu

  • Microsoft Silverlight, Flash Player etc. are installed, but do not seem to work on my laptop

    Microsoft Silverlight, Flash Player etc. are installed, but do not seem to work on my laptop Pavilion dv6. What should I do to him? Have no idea of computers! Moved from feedback Original title: System Update updates microsoft windows

  • Where are the "System Restore" files in Windows Vista Home Premium

    Where are the "System Restore" files in Windows Vista Home Premium. I would like to simplify the installation process. Is there a program in Windows Vista Home Premium which can create an image disk for future use. Is there a good disk image program/

  • Suddenly, Dell U2311H monitor two usb ports not working after 4 years

    Hello I've had this U2311H monitor for 4 years now, and it is connected to the Dell XPS 8300 desktop. The monitor has two USB ports on the left and for some strange reason, than all the two has stopped working recently. I did the following: 1. discon

  • No access to a networked computer

    Two computers, a Windows 7 Home Premium, a Windows 7 Pro laptop refurbished. Premium router of network standard, family comp is wired, pro is wireless. I can access the shared folder 'User' computer computing pro Home premium, but not the other way a