
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 - 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 …
How to measure distance using shapely - Geographic Information …
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 …
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 …
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 …
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.
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 …
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 …
Finding Nearest Line Segments to Point using shapely?
3) using shapely.affinity.rotate to create the radii (rotating the line from the point, look also the Mike Toews 's answer at Python, shapely library: is it possible to do an affine operation on …
shapely - "Multi-part geometries do not provide a coordinate …
Nov 10, 2020 · File "****lib\site-packages\shapely\geometry\base.py", line 841, in coords "Multi-part geometries do not provide a coordinate sequence") NotImplementedError: Multi-part …