Point in polygon: Difference between revisions
Jump to navigation
Jump to search
(new) |
mNo edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
'''''Q:''' Is there a way to query if a given point is inside | '''''Q:''' Is there a way to query if a given point is inside a polygon (closed area) which may have/not have a hole?'' | ||
'''''A:''' Yes, with v.select. It allows you to select points which overlap areas or vice versa: | '''''A:''' Yes, with {{cmd|v.select}}. It allows you to select points which overlap areas or vice versa: | ||
v.select ainput=points binput=areas output=points_in_areas | {{cmd|v.select}} ainput=points binput=areas output=points_in_areas | ||
The resulting map 'points_in_areas' will contain points which are inside the area(s). | The resulting map 'points_in_areas' will contain points which are inside the area(s). | ||
== See also == | |||
* [[Count points in polygon]] | |||
[[Category: FAQ]] | [[Category: FAQ]] | ||
[[Category:Vector]] |
Latest revision as of 19:38, 29 September 2014
Q: Is there a way to query if a given point is inside a polygon (closed area) which may have/not have a hole?
A: Yes, with v.select. It allows you to select points which overlap areas or vice versa:
v.select ainput=points binput=areas output=points_in_areas
The resulting map 'points_in_areas' will contain points which are inside the area(s).