Quantcast
Channel: SQL Server Spatial forum
Viewing all articles
Browse latest Browse all 364

List of points in a polgygon

$
0
0

Hi

We have a requirement to work out all the properties that live within a polygon.

The data is held as follows:

a) A list of (100,000+) properties in a table with the following attributes - Property_ID, Address, XREF, YREF

where the XREF and YREF are in the eastings, northings coordinates system (and also thus represent a point)

B) A set of polygon records in a table with the following attributes - Unique ID, THING_ID, Geometry

i.e. one THINGID can have several polygons (in Geometry format).

We need to be able to run a spatial query that will give us a dataset with two columns - THING_ID and Property_id

where each record in this data set represents a property that lives within one or more of the polygons for the thing identified by THING_ID.

The sourcer database is SQL200 8R2, but we have SQL2012 available - to can make a copy if the SQL2012 has the spatial query features we need.

Any help much appreciated.

G


Viewing all articles
Browse latest Browse all 364

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>