Skip to main content

New answers tagged

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/...
molsonite's user avatar
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 ...
Pieter's user avatar
  • 4,627
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....
andre_f's user avatar
  • 21
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 ...
SaFaL's user avatar
  • 49

Top 50 recent answers are included