A common GIS operation. Used to determine whether a point lies within a polygon's bounds.
13
votes
2answers
3k views
Looking for fastest solution for Point in Polygon analysis of 200 million points
Apologies for asking a question that has been asked before -- I've read through answers, and I'm left wondering how to implement the recommendations. I've never used SQL, Python, C, and have only ...
6
votes
4answers
987 views
Point in polygon algorithm for multiple polygons
I've a Google map with bunch of polygons on it.
Here is a problem I'm interested in: Given a lat,lng point, what's the best way to determine all the polygons that this point lies in?
The obvious way ...
3
votes
3answers
567 views
In ArcGIS how can I append the number of points that are located inside each individual block groups of the entire US?
I am using ArcGIS 10 and I have 2 shapefiles; (a) a polygon shapefile of block groups of the entire US, (b) a point shape file of customer locations throughout the US. What I want to know if how many ...
2
votes
2answers
532 views
Is it possible to extract Coordinates of Polygon Centroid in QGIS?
I have created polygon centroids using one of the "Geometry Tools" but I would like to extract the actual coordinates into Excel for further work. Is this possible?
14
votes
2answers
2k views
How can I find a point inside a polygon in PostGIS?
How can I find a point that is guaranteed to be within a given polygon in PostGIS?
I am aware of the ST_Centroid function. However, the centroid is not always within a polygon, see below:
...
5
votes
2answers
1k views
Creating evenly distributed points within an irregular boundary
I need to create an evenly distributed series of points within a series of oddly shapped polygons (formerly squares, but now squares with donut holes).
The way I have solved this problem so far is to ...
6
votes
1answer
733 views
Performance Gain Through GIST Index for Point in Polygon Query
I have two tables: locations(id,region_id,the_geom) and regions(id,the_geom). For each location point I want to determine the region it is located in:
UPDATE locations SET region_id =
(SELECT id ...
6
votes
2answers
1k views
Create a polygon layer from point data
I'm currently using QGIS 1.8.0
I would like to create a polygon layer from a point dataset, where the size of the polygons relates to the resolution of the grid reference.
The ultimate aim would be ...
5
votes
2answers
1k views
Point-in-polygon using Python and OGR
I want to use OGR in Python to write a simple point-in-polygon test:
def point_in_polygon(point, polygon):
"""
point : [longitude, latitude]
polygon : [(lon1, lat1), (lon2, lat2), ..., ...
4
votes
2answers
391 views
Does anyone know a function to determine if a Point lies on a polyline?
ArcEngine 10 .Net 4 c#
Hi I'm currently allowing user to select a point on a polyline and creating a point on the line. I am using snapping tool.
I just want to make sure that when the user clicks ...
3
votes
2answers
93 views
Total of attribute field of point layer per polygon layer
I have a polygon shapefile of many lakes, I also have a point shapefile of locations on those lakes where fish were caught.
The point shapefile contains the attributes:
Fisherman_iD, Fish_Caught, ...
