Internet Engineering Task Force (IETF) S. Gillies
Request for Comments: 8142 Mapbox
Category: Standards Track April 2017
ISSN: 2070-1721
GeoJSON Text Sequences
Gillies Standards Track [Page 1]
RFC 8142 GeoJSON Text Sequences April 2017
Table of Contents
1. Introduction
Arbitrarily large sequences of values pose a problem for JavaScript Object Notation (JSON) [RFC7159] that is well explained in the motivation for JSON text sequences [RFC7464]. The GeoJSON format [RFC7946] faces the same kind of problem. Geographic datasets often run to the tens of thousands or millions of features. The problem is often amplified by the presence of large arrays of coordinates for each of the features.
1.1. Requirements Language
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].
2. GeoJSON Text Sequence Format
Defined in prose similar to the description of the JSON text sequence in [RFC7464], a GeoJSON text sequence is any number of GeoJSON [RFC7946] texts, each encoded in UTF-8 [RFC3629], preceded by one ASCII [RFC20] record separator (RS) character, and followed by a line feed (LF).
Gillies Standards Track [Page 2]
RFC 8142 GeoJSON Text Sequences April 2017 3. Security ConsiderationsGeoJSON text sequences have no security considerations beyond those of JSON text sequences [RFC7464] and the GeoJSON format [RFC7946].
4. Interoperability Considerations
The advantage of using ASCII character RS "0x1e" to denote a text is that sequence producers and parsers need not enforce a canonical form of GeoJSON. Any valid GeoJSON, pretty-printed or compact, can be used in a GeoJSON text sequence.
5. IANA Considerations
The MIME media type for GeoJSON text sequences is "application/ geo+json-seq" (which uses the suffix established in [RFC8091]). IANA has registered it in the "Media Types" registry <https://www.iana.org/assignments/media-types/>.
Gillies Standards Track [Page 3]
RFC 8142 GeoJSON Text Sequences April 2017
Published specification: RFC 81426. References 6.1. Normative References[RFC20] Cerf, V., "ASCII format for network interchange", STD 80,
Gillies Standards Track [Page 4]
RFC 8142 GeoJSON Text Sequences April 2017
[RFC7464] Williams, N., "JavaScript Object Notation (JSON) Text
6.2. Informative References
[RFC8091] Wilde, E., "A Media Type Structured Syntax Suffix for JSON