Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 682 Bytes

feature_conversion.md

File metadata and controls

20 lines (15 loc) · 682 Bytes

Feature Conversion Examples :

  • polygon_to_line : Takes a Polygon or MultiPolygon and convert it to a line.
Argument Type Description
polygon Polygon Multipolygon
options float A dict representing additional properties
Return Type Description
object Feature FeatureCollection
from geojson import Feature, Polygon
from turfpy.feature_conversion import polygon_to_line

feature_1 = Feature(geometry=Polygon([[[0,29],[3.5,29],[2.5,32],[0,29]]]))
polygon_to_line(feature_1)