GeoJSONL class

The newline-delimited GeoJSON (or "GeoJSON Text Sequences") text format for feature objects.

Supports a text file with each line containing exactly one feature. Features are delimited by line feeds, not commas. A text file represents a feature collection, but no "FeatureCollection" element is encoded.

Features in a sequence can be separated by (supported when decoding):

For encoding this implementation uses newline (LF) character as a delimiter by default. To customize encoder output you can use options named GeoJSONL.delimiterBefore and GeoJSONL.delimiterAfter taking values of String?.

Other references:

See also the GeoJSON format for traditional GeoJSON decoding / encoding.

Constructors

GeoJSONL()

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

Static Methods

featureFormat({GeoJsonConf? conf}) TextFormat<FeatureContent>
The newline-delimited GeoJSON text format (encoding and decoding) for feature objects with optional conf.

Constants

contentTypeGeoJSONSeq → const String
The content type (application/geo+json-seq) for GeoJSON Text Sequences by RFC 8142.
contentTypeJSONSeq → const String
The content type (application/json-seq) for JSON Text Sequences by RFC 7464.
contentTypeNDJSON → const String
The content type (application/x-ndjson) for "Newline delimited JSON" by the specification NDJSON - Newline delimited JSON.
feature → const TextFormat<FeatureContent>
The newline-delimited GeoJSON text format (encoding and decoding) for feature objects.