Questions tagged [shapely]

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

Shapely is a BSD-licensed Python package (see Shapely · PyPI) for manipulation and analysis of planar geometric objects. It is based on the widely deployed GEOS (the engine of PostGIS) and JTS (from which GEOS is ported) libraries. This C dependency is traded for the ability to execute with blazing speed. Shapely is not concerned with data formats or coordinate systems, but can be readily integrated with packages that are. For more details, see the Shapely manual.

1113 questions
-2
votes
1 answer

Get the neighbours of a point in polygon using Shapely

Say I have a polygon with points a, b, c, d sample = Polygon(((10, 10), (10, 20), (20, 10), (20, 20))) Can someone tell me how to find only its neighbours and not the point diagonally opposite. In the example say if I'm in (10,10), I need to get…
Nitish
  • 11
  • 2
-3
votes
1 answer

distance from a point to the nearest edge of a polygon

in the below code i want to calculate the distance from a point to the nearest edge of a polygon.as shown in the results section below, the coordinates are provided.the code posted below shows how i find the distance from a point to the neatrest…
Amrmsmb
  • 1
  • 27
  • 104
  • 226
-3
votes
1 answer

How to display Polygon List into one Graph with For Loops

so I'm working on a Line of Sight script where the Polygons act as buildings and return a boolean value based on whether a line intersects with a Polygon. The logic behind it works, but when I try to integrate more Polygons from a list called…
1 2 3
74
75