Top "Shapely" questions

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

Fix invalid polygon in Shapely

Shapely defines a Polygon as invalid if any of its segments intersect, including segments that are colinear. Many software packages …

python geometry shapely
Coordinates of the closest points of two geometries in Shapely

There is a polyline with a list of coordinates of the vertices = [(x1,y1), (x2,y2), (x3,y3),...] and a …

python distance geos shapely
Find coordinate of the closest point on polygon in Shapely

Say I have the following Polygon and Point: >>> poly = Polygon([(0, 0), (2, 8), (14, 10), (6, 1)]) >>> point = Point(12, 4) I can …

python shapely
How to extract Polygons from Multipolygons in Shapely?

I'm trying to extract the polygons from multipolygons in Shapely. I can transform a list of polygons into multipolygons using …

python shapely
Error importing Polygon from shapely.geometry.polygon

In my Anaconda 2.2 64bit with Python 3.4.3 the following line works well: import shapely But the following line: from shapely.geometry.…

python python-import shapely
OSError geos_c could not be found when Installing Shapely

I'm a newbie to making/plotting on maps with python, been trying to follow this blogpost to generate a world …

python matplotlib-basemap geos shapely
Calculate Distance to Nearest Feature with Geopandas

I'm looking to do the equivalent of the ArcPy Generate Near Table using Geopandas / Shapely. I'm very new to Geopandas …

python pandas shapely geopandas
Shapely: Polygon from String?

I have saved string representations of some Shapely Polygons: 'POLYGON ((51.0 3.0, 51.3 3.61, 51.3 3.0, 51.0 3.0))' Is there some fast way of directly converting it …

python shapely
Install Shapely: OSError: [WinError 126] The specified module could not be found

I have to install Shapely package (http://toblerity.org/shapely/project.html#installation). But when I am using: pip install …

python packages shapely
How to simplify boundary geometries in shapely

I'm working with shapely to do GIS, but I'm running into memory errors when loading the geometry of each zip …

python gis shapely