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

  2. Difference between Crosses & Intersects - Shapely (Python)

    Feb 28, 2016 · From Shapely's doc: intersects() is equivalent to the OR-ing of contains(), crosses(), equals(), touches(), and within(). So there might be some cases where two lines intersect eachother …

  3. Algorithm for point to polygon distance calculations in shapely

    May 7, 2024 · True, but the distance calcs of shapely are calling a compiled instance of GEOS, where the process is a lot trickier to get in to - I figured there would be documentation about these operations?

  4. 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 …

  5. 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 calculations.

  6. python - Plotting Shapely Multipolygon using Matplotlib - Geographic ...

    Mar 5, 2020 · I have few polygons or boxes. Ones intersect each other but some are isolated. For example I have free figures: import shapely.geometry as sg import shapely.ops as so import …

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

  9. How to return WKT of entire polygon with shapely?

    Jul 24, 2017 · basins_wkt = shapely.wkt.loads(basins_geometry.ExportToWkt()) How do I loop through the whole shapefile and build the outer polygon as wkt or is there another function to get the outer …

  10. 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 perhaps