line_to_polygon library
Functions
-
lineStringToPolygon(
GeoJSONObject line, bool autoComplete, bool orderCoords, {Map< String, dynamic> ? properties}) → Feature<Polygon> -
Converts LineString to Polygon
Takes a optional boolean
autoComplete
that auto completes LineStrings Takes an optionalorderCoords
that sorts LineStrings to place outer ring at the first Position of the coordinates. -
lineToPolygon(
GeoJSONObject lines, {Map< String, dynamic> ? properties, bool autoComplete = true, bool orderCoords = true, bool mutate = false}) → Feature<GeometryObject> -
Converts LineStrings & MultiLineString to Polygon or MultiPolygon.
Takes an optional boolean
autoComplete
that auto completes LineStrings (matches first & last coordinates). Takes an optionalorderCoords
that sorts LineStrings to place outer ring at the first Position of the coordinates. Takes an optionalmutate
that mutates the original LineString usingautoComplete
(matches first & last coordinates. Returns Feature<Polygon> or Feature<MultiPolygon> converted to Polygons. example: