Linked Questions
14 questions linked to/from Check if a point falls within a multipolygon with Python
32
votes
4answers
21k views
More Efficient Spatial join in Python without QGIS, ArcGIS, PostGIS, etc
I'm attempting to do a spatial join much like the example here: Is there a python option to "join attributes by location"?. However, that approach seems really inefficient / slow. Even ...
10
votes
2answers
11k views
Converting huge multipolygon to polygons
I have a shapefile with some huge multipolygons, with 100.000's of parts. What would be the easiest way to split them to singlepart polygons? I'm looking for something like QGIS ”Multipart to ...
5
votes
4answers
23k views
Formula to Check Latitude & Longitude is within Area without Google Maps Api
I got this Example Map
SampleMap:
http://techinfo.co.id/test/map.php
I make Boundary Polygon shape ,
-6.875165174925262, 107.56293296813965
-6.882663904407988, 107.66730308532715
-6.980818117491586,...
1
vote
1answer
5k views
Performing Spatial Join / match Points from dataframe to polygons using Python?
I have a dataframe with coordinates and other attributes, and a shp file (the whole package with shx and dbf as well) with many polygons of neighborhoods. I need to match each point to which polygon ...
4
votes
1answer
2k views
Find csv lat and long points in a shapefile polygon with geopandas spatial index
I have a csv with two sets of latitude and longitude points, and a shapefile with espg 4326. I want to find which points are inside the shapefile. I've been following the guide here which uses a ...
1
vote
2answers
193 views
How is arcpy.Clip_analysis() so fast against non-arcpy implementations?
I'm using a version of Solution 2 of the selected answer here to build a new shapefile of all points that fall within a given polygon object (i.e. a clip).
When run against 27K points, it takes ...
1
vote
1answer
268 views
GeoPandas statistics of points within a multi polygon (grid) [duplicate]
I usually use numpy for my processing but I'm trying to make the most of the power of GeoPandas for my spatial data. I have some point data (shapefile) and a vector grid (fishnet) as a separate ...
3
votes
2answers
137 views
Point in doughnut hole incorrectly identified as within KML polygon
I have read in a KML file of CA firezones and for a certain area (around LOMPOC, CA), it seems to include anything inside a non-fire zone doughnut hole. Most of the processing is fine, just there are ...
3
votes
1answer
151 views
Generate points inside multipolygons using GeoPandas
I have a shapefile which has multipolygon geometries. I want to generate random points inside them using GeoPandas. I tried with the below code but it's not giving geodataframe of points.
df = gpd....
1
vote
1answer
84 views
Is point on land (Natural Earth shapefile)
I am attempting to use the second option in Check if a point falls within a multipolygon with Python to check if a given point is on land or water. The shape file is from Natural Earth: https://www....
0
votes
2answers
89 views
Displaying of lake names similar to Google or OSM maps
This is a lake in Netherlands.
Right side of the image : Points contains names of the lake (red label). I performed a spatial join between the point and polygon in order that the polygon get names ...
0
votes
0answers
78 views
Finding out which U.S. state a tweet was generated in
I have a database of records with latitude and longitude information (imagine this is a CSV file containing tweets and their geo-coordinates). I also have shapefiles of U.S. states. I want to add ...
0
votes
0answers
51 views
Error while performing an intersection of a point and a multipolygon
I'm willing to build a tiny service that given a point location, it searches within a multipolygon, which polygon object it is intersecting. My current development is defined as this:
from osgeo ...
0
votes
0answers
42 views
Get a column from database and populate the shapefile attributes?
I would like to know how to get copy a specific columns from the database and add that column in a shapefile attribute table?
I am open to other better ideas.