
Polygon overlay with Shapely - Geographic Information Systems …
I'm trying to capture all the non-overlapping polygons indicated below using Shapely (given polygons A,B & C). Moreover, I'm hoping to do so without iteration, testing for intersect …
python - How to measure distance using shapely - Geographic …
Mar 24, 2015 · Basically you want to use distance between two shapely geometries. And no, since there's only a single point in your MultiPoint geometry it should work fine for distance …
Is there a way to slice a polygon using shapely?
Jan 9, 2024 · I added some clarifications in the question. Hopefully that clarifies the question. The shape of the sub-polygon does not matter at the moment but it could at some point. I would …
python - Shapely import and to_geojson () - Geographic …
Mar 6, 2023 · I am attempting to convert a shapely LineString to GeoJSON. According to the Shapely documentation, there is a method called shapely.to_geojson() which should be able …
Efficiently check if polygon contains any point from a list
Aug 12, 2024 · I have a large, static list of Shapely Point s that I want to check against a large list of Shapely Polygon s, filtering out any polygons that contain one or more of the points.
python - Writing Shapely geometries to shapefiles - Geographic ...
Oct 27, 2019 · Can someone demonstrate a simple way to write geometry data-structures from shapely into shapefiles? I am particularly interested in polygons with holes and linestrings. It …
python - Setting CRS of point using shapely - Geographic …
Feb 9, 2021 · Shapely geometries are unaware of their CRS. Using pyproj to transform them only changes the values of the coordinates without leaving any trace of the final CRS in the …
python - Shapely not installing correctly - Geographic Information ...
I am trying to run Shapely on a new machine, and tried both installing it from source, using the installer on its webpage, and using pip install shapely. Every reference I try to make from the …
shapely - How to access members of GeometryCollection - Python ...
Mar 2, 2016 · I am using 'intersection' function from Shapely to find junctions of a road network. As i found, intersection returns GeometryCollection. In my case it could be Point, LineString or …
shapely - Divide a polygon into multiple small polygons using a ...
May 20, 2020 · I'm trying to divide a polygon grid into multiple smaller polygons basis their intersection with a MultiLineString using Shapely. Following code works good for LineString …