OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Straighten a Polygon into a line with Geopandas/Shapely

  • Thread starter Thread starter Paulo Henrique PH
  • Start date Start date
P

Paulo Henrique PH

Guest
I'm using Python. geopandas and shapelly to process the geometries of a road intersection.

The geojson has a list of Polygons that I want to straighten into Lines, something like this:

enter image description here

Does anyone know how to achieve that?
<p>I'm using Python. geopandas and shapelly to process the geometries of a road intersection.</p>
<p>The geojson has a list of Polygons that I want to straighten into Lines, something like this:</p>
<p><a href="https://i.sstatic.net/e83OFzZv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/e83OFzZv.png" alt="enter image description here" /></a></p>
<p>Does anyone know how to achieve that?</p>
 

Latest posts

A
Replies
0
Views
1
AgencyAnalytics
A
S
Replies
0
Views
1
Stacker Media
S
C
Replies
0
Views
1
CC.Talent
C
Top