Geo Fence: how to find if a point or a shape is inside a polygon using oracle spatial

Posted by Abdul on Stack Overflow See other posts from Stack Overflow or by Abdul
Published on 2011-01-05T05:50:01Z Indexed on 2011/01/05 5:53 UTC
Read the original article Hit count: 154

Hi Folks,

How do i find if a point or a polygon is inside another polygon using oracle spatial SQL query

Here is the scenario;

I have a table (STATE_TABLE) which contains a spatial type (sdo_geometry) which is a polygon (of say a State), I have another table (UNIVERSITY_TABLE) which contains spatial data (sdo_geometry) (point/polygon) which contains Universities;

Now how do i find if a selected University('s) are in a given State using SQL select statement.

Primarily i want to locate existence of given object(s) in a geofence.

Thanks.

© Stack Overflow or respective owner

Related posts about geolocation

Related posts about geospatial