Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a shapefile with 250 points. Each point has a region attribute. In another shapefile I have all the possible regions with their names (it is polyline geometry).

Unfortunately the coordinates of the points are sometimes wrong.

I would like to query which points don't lie in the region specified by their region attribute.

share|improve this question
2  
Polylines don't represent regions, can you convert them to polygons? Also what GIS software are you using? –  blah238 Sep 5 '12 at 10:35
add comment

2 Answers 2

Are you working with ArcGIS? You could do a join of the 2 layers, then see which points dont have a coresponding region.

Another way would be to simply do an overlay of points over regions and again see which points are unchanged.

Oh, missed the part where you had polylines. You should convert these to polygons first!

share|improve this answer
add comment

if you have a point layer with region column and polygonal region layer, in qgis you can use Vector > Geoprocessing Tools > Union to merge point data and polygonal data then use SPIT tool to move your new merged file to postgis and you can do what you want.

enter image description here

if you want delete point which isnt in your region, you can use:

DELETE FROM point_poly_merged
       WHERE region <> pre_defined_region;

i hope it helps you....

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.