Top "Shapely" questions

PostGIS-ish operations outside a database context for Pythoneers and Pythonistas.

Geopandas Dataframe Points to Polygons

I have a geopandas dataframe made up of an id and a geometry column which is populated by 2D points. …

python pandas shapely geopandas
Pip install of shapely giving "python setup.py egg_info" failed with error code 1 error

I am trying to install shapely 1.5.6 in Windows 10 (python 3). I am getting this strange error. python setup.py egg_info" …

python windows-10 shapely
Create new shapely polygon by subtracting the intersection with another polygon

I have two shapely MultiPolygon instances (made of lon,lat points) that intersect at various parts. I'm trying to loop …

python polygon shapely
shapely and matplotlib point-in-polygon not accurate with geolocation

I am testing the point-in-polygon function with matplotlib and shapely. Here is a map contains a Bermuda triangle polygon. Google …

python google-maps-api-3 matplotlib point-in-polygon shapely
What is the difference between Polygon.contains and Polygon.within?

The Docstring says: Polygon.contains Returns True if the geometry contains the other, else False Polygon.within Returns True if …

python polygon shapely
Convert Multipolygon to Polygon in Python

Is it possible to convert a Multipolygon into a Polygon which fills all holes or missing inner areas using Shapely? …

python polygons shapely
Using cascaded_union to combine shapes gives "ValueError: No Shapely geometry can be created from null value"

I have a cluster of seven overlapping circles and ellipses that I'm trying to combine into one shape, but when …

python shapely
Cut a polygon with two lines in Shapely

I am trying to cut a shapely.geometry.Polygon instance in two parts with two lines. For example, in the …

python shapely
How to calculate the center of gravity with shapely in python?

I discovered shapely but I did not find how to calculated the center of gravity of a polygon! Does someone …

python shapely
Issue installing shapely Python Package

I am running python 3.6 on windows and am attempting to install Shapely using pip install shapely==1.6b2 It is giving …

python-3.x shapely