crossing polygon and point as parameters
Hi allI'm new on this excuse, so please, if this is a stupid question - but I need to write a function in Oracle, mySQL and SQLserver called via java to determine whether a given point is inside the specified polygon.
The call will be as follows in all databases:
SELECT point_in_polygon ('(6|2) ','(5|1) |(8| 1) |) (8: 6). (5: 7). (5|1)') = 1;
I have remove polygon and point settings above in my service and had hoped to make the select statement in Oracle to determine whether the point is inside the polygon:
Select 1 of the DOUBLE
where
SDO_RELATE (SDO_GEOMETRY ('POINT (6-2)'),
SDO_GEOMETRY (' POLYGON ((5.0 1.0, 8.0 1.0, 8,0 6,0, 5,0 7,0, 5,0 1.0)) ").
+ "(masque = anyinteract querytype = fenêtre ') = 'TRUE';" +
or something similar - but I get the error there is no spatial index:
ERROR on line 1:
ORA-13226: interface not supported without a spatial index
ORA-06512: at the 'MDSYS. MD", line 1723
ORA-06512: at the 'MDSYS. MDERR", line 8
ORA-06512: at the 'MDSYS. SDO_3GL', line 62
As I wanted to avoid the insertion of data in a table - I had hoped to make the comparison between the point and the polygon settings.
Someone can let me know if this is possible, or do I read my settings, insert into a column of type geometry in a table, create the spatial index, and then make the comparison?
Thanks in advance for your expertise.
Hello
You must use the function space sdo_geom.relate rather than the operator space sdo_relate, which requires the spatial index.
In your WKT constructor you must also pass a SRID (NULL values are used in the following example)
select 1 from dual where sdo_geom.RELATE(SDO_GEOMETRY('POLYGON ((5.0 1.0, 8.0 1.0, 8.0 6.0, 5.0 7.0, 5.0 1.0))',null),'anyinteract',SDO_GEOMETRY('POINT(6 2)',null),0.001) = 'TRUE';
Jack
Tags: Database
Similar Questions
-
Line with the polygon intersection points
I have a (multi point) line that crosses a polygon and I can find the points of intersection
See this site for example: find the Points of Intersection between the line and & amp; #160; Polygon
However, I would get the multi point original line WITH the points of intersection...
How could do?
Essentially for a line that crosses a polygon, I have returned...
a new line which consists of points of origin AND the intersection of points
Thanks in advance
Where did you get the geometry intersecting from?
Table of Ansdo_elem_info does not match your definition of 2005 multipoint, I think.
This should be SDO_ELEM_INFO_ARRAY (3,1,1, 1,1,1, 7,1,1, 5,1,1) instead of (1,2,1).
Then the union result geom is a line of 2002 has opposed to your example that returns a collection of 2006.
And you will see that these points are where you expect them to be. (11R2 test)
Luke
-
How many layers and points can be included on any map data in map Point 2013?
How many layers and points can be included on any map data in map Point 2013?
Hello
Check with the help of MapPoint and in the MapPoint Forums.
Highway, Streets & Trips, MapPoint - Forum
http://social.Microsoft.com/forums/is/streetsandtrips/threadsMapPoint - Support
http://www.Microsoft.com/MapPoint/en-us/support.aspxSupport for MapPoint, streets & trips and Highway
http://support.Microsoft.com/ph/851I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
I was working on a microsoft word doc and all of a sudden all paragraph marks and points between each word that presented themselves. How can I get rid of these?
You click the Show/Hide in the Standard toolbar. The location of this button may vary depending on the version of Word that you have (that you did not state). Click the button again to make the marks disappear.
-
Photos attached to email has lines and points when open.
ATTACH PHOTO TO EMAIL,
WHEN I ATTACH A PICTURE TO AN EMAIL I CLICK OPEN THE ATTACHMENT TO CHECK THAT I HAVE THE RIGHT PICTURE, WHEN I SEE LINES AND POINTS IS NO OPEN PHOTO
I HAVE NOW SOLVED THE PROBLEM, I CHANGED THE PHOTO TO OPEN WITH WINDOWS PICTURE AND FAX VIEWER.
-
How can I change text size and point via the command prompt?
I want to create a script that will allow me to easily change to or from my TV to my monitor. I know how to change the display, but I don't know how I can change the size of text and point via the command prompt (that is, from 100% to 150%). Does anyone know how?
Unfortunately, you can not. In addition, change the DPI requires reboot (or logout and back). But you can apply a different theme, that you can call from the command just by opening the .themepack file. Since themes can control the size of some elements of the police who might do the trick you are looking for.
-
It seems that I still have a problem after another, recently I noticed the lines and points on my screen, I noticed this problem more on gradients.Here is a picture of example of what I'm talking about:The image is the background in my Steam client (it is not only case to steam), notice the points a little above the middle of the image and the horizontal lines.My monitor is a BenQ E2420HD connected by HDMI, I use a Nvidia GTX 580 with the latest drivers installed, I tried to reinstall my graphics drivers, but it made no difference.Thank you
Hi Daniel,.
Method 1:
I suggest you to check if the problem occurs on an external monitor. If the problem occurs, the external monitor, it could be a problem with the monitor.Method 2:
If the problem does not occur on an external monitor, I suggest you try the procedure described in the article and see if it helps.Note: Applies to Windows 7.
Troubleshoot monitor and video card
http://Windows.Microsoft.com/en-in/Windows-Vista/troubleshoot-monitor-and-video-card-problems
Check out the link for more information.
Get the best display on your monitor
http://Windows.Microsoft.com/en-in/Windows/getting-best-display-monitor#getting-best-display-monitor=Windows-7Hope this information helps. If you need more assistance or information on this question, reply to this post. I'll be happy to help you.
-
How devil my touchpad - done before, but if the work done on the laptop that allowed him. When I go to devices and mouse and pointer Manager
Hello AndreauLuty,
It will be different depending on the manufacturer of the computer that you have. Go to the control panel and go to the mouse option. On some computers, there is a tab for the Touchpad and you can turn it off from there.
See the thread below the TechNet that describes how to disable the touchpad.
http://social.technet.Microsoft.com/forums/en/w7itprogeneral/thread/a2c8b891-09a0-4F0A-9419-c21190fff642I hope this helps.
Marilyn
-
My PDF now appear like MS Edge. I tried to reinstall AR A-Reader and pointing to my PDF. Dialog says that he cannot do
How can I get held hostage on this and go back to Adobe Reader? This happened only recently, I put in 10 MS several months ago.
Hi John,.
Please try this fix: Reader/Acrobat is not the default PDF owner | Windows 10 threshold 2
Thank you
Abhishek
-
Adobe has worked on ambient light and changed the parameters of the product and I can't contact them to restore the product. How to get assistance to respond to me?
Hi Basilbro,
Sorry for the trouble you had with Lightroom.
Please visit this link to install the previous version - revert to a prior update version
Concerning
Rohit
-
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
-
Tools polygon and polyline grey
Why polygon and polyline tools are grey and not usable, so that I can mark the document with other tools? (plug-in acrobat pro XI)
Hi www.mathunion.org,
Please see this thread: I'm not able to select the cloud, polygons and drawing markup tools lines connected to this end.
Unless your device is compatible touchscreen, you'll want to option Mode Touch forever in the General preferences.
Best,
Sara -
All my tools in PS 6 have a "Cross" icon and I can't use them, such that the tool clone. I reset all the tools without result. The bracket keys do not change size. Any help?
You have your Caps Lock?
-
Can someone please take a look at and point out the flaws in the chosen components.
I'll buy components for the creation of 2 new machines to vsphere installation 5. The configurations of these are the following:Computer1:Core i5 2500ASUS P8H67-M PRO H67G.Skill Ripjaws - memory - 8 GB: 2 x 4 GB DIMM 240-pin - DDR3 - 1333 MHz2 TB WD SATA western digital Caviar GreenCooler Master Elite 370Corsair CMPSU - 600GS Gaming Series power supply SMPS 600WSamsung 22 X DVDRW desktop DVD writer internalComputer2:Core i7 2600ASUS Z68 P8Z68-V PROG.Skill Ripjaws - memory - 8 GB: 2 x 4 GB DIMM 240-pin - DDR3 - 1333 MHzSeagate 1 TB Barracuda 7200.12 SATA 3 Gb/sCooler Master Elite 430Corsair CMPSU - 600GS Gaming Series power supply SMPS 600WBoth machines will be used for my study of vmware whitebox.Can someone please take a look at and point out the flaws in the chosen components.Please go through the link below
http://www.VMware.com/resources/compatibility/search.php
Yours,
-
I have PS CC. If I download PS CS3, to be able to use an older filter, it will mess up my CC and the performance parameters?
Hi Digitalartist,
This will not affect performance, but it can change the default value of Photoshop CS3.
In bridge for file associations, you can check if the extensions such as JPEG, PSD etc files have Photoshop selected CC.
Also check the program by default for images if you directly open images with Photoshop.
Thank you
Maybe you are looking for
-
Download file is frequently forgotten
I started with 10 Firefox today after update my Kubuntu10.04 packages. Before I used 3.6. ?Since this change firefox often forget my last used download folder. It is one that I've used a few downlaodactions before, but had changed in the meantime, or
-
Do TTrying to connect my AirPort Extreme for a new modem, I have to reset the airport, doesn't seem to work with the old modem. Help?
-
Satellite U400-138 - how to activate special keys?
Hello the problem for the subject [Satellite U400 - 138 Volume - software problem wheel | http://forums.computers.toshiba-europe.com/forums/thread.jspa?messageID=148001] I found a stupid bug in the software Toshiba Satellite U400-138 special keys. Th
-
HP Compaq 8200 Elite - XL510AV: need help to find the form factor small PCI Ethernet card
Hi guys, I hope one of you can help me with this. I need a card PCI Ethernet single port for a HP Compaq 8200 Elite Small Form Factor computer. From what I see, the motherboard has a PCIe and two PCI card slots. Computer model is XL510AV Any help is
-
What is upper & lowercase for the password
What is upper & lowercase for a password I'm having a problem trying to create pasword