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

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

  4. Transforming Shapely Polygon and MultiPolygon objects

    Dec 22, 2014 · Is there an easy way of transforming Shapely objects (namely, Polygons and MultiPolygons) from one projection to another without having to dig around and extract coordinates …

  5. 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 polygon?):

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

  7. Making shapefile from Pandas DataFrame with Python

    Sep 11, 2025 · I´d like to construct a shapefile from a Pandas DataFrame using the lon & lat rows. I have got a CSV file and I process it with pandas to make a data frame, which is easier to handle Is it …

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

  9. How to measure distance using shapely - Geographic Information …

    Mar 24, 2015 · How to measure distance using shapely Ask Question Asked 11 years, 1 month ago Modified 11 years, 1 month ago

  10. python - Creating Shapely LineString from two Points - Geographic ...

    If have two points, from which I want to create a straight LineString object: from shapely.geometry import Point, LineString A = Point(0,0) B = Point(1,1) The Shapely manual for LineString states:...