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):
- a newline (LF) character, see Newline Delimited JSON
- a record-separator (RS) character, see RFC 8142 standard: GeoJSON Text Sequences
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:
- NDJSON - Newline delimited JSON
- GDAL: GeoJSONSeq: sequence of GeoJSON features
- Interline: Even more geospatial tools supporting the "GeoJSONL" format
- Steve Bennet: Newline-delimited GeoJSON
- JSON Lines
- JSON Lines format: Why jsonl is what you need for data streams?
- JavaScript Object Notation (JSON) Text Sequences
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.