panel_segmentation.utils.convertPolygonToGeojson#
- panel_segmentation.utils.convertPolygonToGeojson(polygon_coord_list)[source]#
Take a list of lat-lon coordinates for a polygon and convert to GeoJSON format.
- Parameters:
polygon_coord_list (list) – A list of (latitude, longitude) coordinates for a polygon.
- Returns:
geojson_poly – A GeoJSON string representation of the polygon.
- Return type:
str