DefaultFormat class
The "default" text format for coordinate and geometry objects.
Rules applied by the format are aligned with GeoJSON.
Examples:
- point (x, y):
10.1,20.2
- point (x, y, z):
10.1,20.2,30.3
- point (x, y, m) with z formatted as 0:
10.1,20.2,0,40.4
- point (x, y, z, m):
10.1,20.2,30.3,40.4
- box (min-x, min-y, max-x, max-y):
10.1,10.1,20.2,20.2
- box (min-x, min-y, min-z, max-x, max-y, maz-z):
10.1,10.1,10.1,20.2,20.2,20.2
- line string, multi point (with 2D points):
[10.1,10.1],[20.2,20.2],[30.3,30.3]
- polygon, multi line string (with 2D points):
[[35,10],[45,45],[15,40],[10,20],[35,10]]
- multi polygon (with 2D points):
[[[35,10],[45,45],[15,40],[10,20],[35,10]]]
- coordinates for other geometries with similar principles
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
coordinate
→ const TextWriterFormat<
CoordinateContent> - The (default) text writer format for coordinate objects.
-
geometry
→ const TextWriterFormat<
GeometryContent> - The (default) text writer format for geometry objects.