Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 664

A common GIS operation. Used to determine whether a point lies within a polygon's bounds.

16 votes
Accepted

Fastest way to spatially join a point CSV with a polygon Shapefile

If "fastest" includes the amount of your time that is spent, the solution will depend on what software you are comfortable with and can use expeditiously. The following remarks consequently focus on …
whuber's user avatar
  • 70.2k
12 votes

Point in polygon algorithm for multiple polygons

As with almost all such questions, the optimal approach depends on the "use cases" and how the features are represented. The use cases are typically distinguished by (a) whether there are many or few …
whuber's user avatar
  • 70.2k
3 votes

Calculation of average point distances from one another within a polygon grid

Here is an R solution, intended to function as pseudocode for implementation on any appropriate platform (C++, Python, etc) and to be a working prototype. It begins with a function to compute the mea …
whuber's user avatar
  • 70.2k
5 votes

Generating points that lie inside polygon in QGIS

I would like to offer a solution that requires very little in terms of GIS analysis. In particular, it does not require triangulating any polygons. The following algorithm, given in pseudocode, refe …
whuber's user avatar
  • 70.2k