New answers tagged geopandas
0
votes
Getting polygon areas using GeoPandas
Do NOT use EPSG:3395 or EPSG:3857 for area calculation. These are world mercator projections that do not preserve area. (The correct answer here is the one by @Fabio (https://gis.stackexchange.com/a/...
4
votes
Accepted
Reduce memory-footprint of point-in-polygon lookups in GeoPandas
Apparently your data is already in a geopackage file, so you already have your spatial index on disk...
Normally the code sample below should be reasonably fast as it will use the spatial index in the ...
2
votes
Reading CSV with WKT column straight into a GeoPandas GeoDataFrame with geometries
This way its possible as a one-liner, if anyone is still interested.
gpd = gpd.GeoDataFrame(
pd.read_csv(
csv_filename,
converters={"geometry": wkt....
0
votes
GEOSException: bad allocation when using pygeos geopandas buffer
The shapely.errors.GEOSException: bad allocation error indicates that the underlying GEOS library, which Shapely uses for geometric operations, has encountered a memory allocation failure. This ...
Top 50 recent answers are included
Related Tags
geopandas × 1658python × 1207
shapely × 289
shapefile × 149
coordinate-system × 139
pandas × 120
geodataframe × 119
polygon × 116
fiona × 86
spatial-join × 77
rasterio × 71
qgis × 65
geojson × 61
geometry × 60
postgis × 57
matplotlib × 55
intersection × 48
buffer × 43
linestring × 40
gdal × 39
python-3 × 34
raster × 33
dissolve × 32
pyproj × 28
point × 27