Timeline for How to map a point to a polygon label from a shapefile
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 25, 2017 at 12:47 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Jun 23, 2017 at 14:27 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Apr 13, 2017 at 12:34 | history | edited | CommunityBot | replaced http://gis.stackexchange.com/ with https://gis.stackexchange.com/ | |
| Sep 28, 2015 at 23:44 | answer | added | Luke | timeline score: 2 | |
| Sep 28, 2015 at 23:29 | comment | added | Michael Stimson | I've not had any experience with either of those but OGR certainly does, gdal.org/…. The most basic way is first create your point as an OGRgeometry then iterate each polygon in your shapefile (OGRlayer) until within is true; beware spatial references - make sure your coordinates for your point match your polygons. OGR is part of GDAL, open source, available in Windows, Linux and Mac for languages python, C, C++, C#, VB, ruby and many more. Is this server/web or to be run locally? | |
| Sep 28, 2015 at 22:38 | history | edited | Luke | CC BY-SA 3.0 | added 278 characters in body |
| Sep 28, 2015 at 22:30 | comment | added | Luke | I need to do this in python with an open source solution. Trying to see right now if I can do it using shapely and fiona. | |
| Sep 28, 2015 at 22:29 | comment | added | Michael Stimson | What software or API are you using? Most GIS libraries have an intersect select by location or within function which can be used to decide what polygon the point is within. As Paul said this is really simple to lookup. | |
| Sep 28, 2015 at 22:28 | comment | added | Paul | This is a simple problem (ArcGIS solution), but we need to know some more information (e.g., what software you are using). Welcome to GIS.SE! | |
| Sep 28, 2015 at 22:20 | review | First posts | |||
| Sep 28, 2015 at 22:28 | |||||
| Sep 28, 2015 at 22:15 | history | asked | Luke | CC BY-SA 3.0 |