About 50 results
Open links in new tab
  1. 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 shape …

  2. 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 would also be …

  3. Accessing individual elements of GeometryCollection with shapely >

    Feb 3, 2023 · Accessing individual elements of GeometryCollection with shapely >= 2.0.0 Ask Question Asked 3 years, 2 months ago Modified 3 years, 2 months ago

  4. Shapely strange splits when splitting LineString and Polygon

    Feb 12, 2021 · 4 It looks like the orange linestring crosses itself, which is related to issues #600 and #1068 in the shapely github repository. The problem is that shapely's split function splits complex …

  5. Python `shapely` - split a complex line at self-intersections

    Jul 13, 2022 · Description Sum-up When splitting a complex line - let's say with a single "loop" - shapely.ops.split applied at the self-intersection point returns two lines where I …

  6. Using Shapely methods (explain_validity and make_valid) on shapefile

    May 4, 2022 · I'm trying to find and repair invalidity in my polygons. I have already found out that 10 polygons have self-intersection problems in QGIS, trying the same thing with shapely. This is my …

  7. 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 libr...

  8. 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 like to find a …

  9. Polygon overlay with Shapely - Geographic Information Systems Stack ...

    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 etc. The

  10. Splitting polygon into equal area polygons using shapely

    Jul 28, 2021 · I would like to split complex geometries into n smallest geometries of the same area in Python. While I can divide simple geometry in the following way: from shapely.geometry import …