GeoJSONPolygon class

The geometry type Polygon

Implemented types

Constructors

GeoJSONPolygon(List<List<List<double>>> coordinates)
The constructor for the coordinates member
GeoJSONPolygon.fromJSON(String source)
The constructor from JSON string
factory
GeoJSONPolygon.fromMap(Map<String, dynamic> map)
The constructor from map
factory

Properties

area double
Gets the area of the geometry.
no setteroverride
bbox List<double>
An optional bounding box bbox of the GeoJSON object.
no setteroverride
centroid List<double>
Returns the geographic center (centroid) of a polygon, including any holes.
no setter
coordinates List<List<List<double>>>
The coordinates member is a array of linear ring coordinate arrays.
getter/setter pair
distance double
Gets the distance of the geometry.
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
perimeter double
Returns the total length (perimeter) of the outer boundary of the polygon.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type GeoJSONType
Specifies the type of GeoJSON Geometry.
getter/setter pairoverride

Methods

isPointInside(List<double> point) bool
Determines if a point is inside
isPointInsideComplex(List<double> point) bool
Checks if a point is within a complex polygon, considering the outer boundary and any inner holes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optimalPointInside({double resolution = 2.0}) List<double>
Calculates the optimal point within a complex polygon using a custom grid-based search algorithm.
toJSON({int indent = 0}) String
Converts the object to a JSON string representation.
override
toMap() Map<String, dynamic>
Converts GeoJSON object to a Map.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override