rfc7946.txt 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571
  1. Internet Engineering Task Force (IETF) H. Butler
  2. Request for Comments: 7946 Hobu Inc.
  3. Category: Standards Track M. Daly
  4. ISSN: 2070-1721 Cadcorp
  5. A. Doyle
  6. S. Gillies
  7. Mapbox
  8. S. Hagen
  9. T. Schaub
  10. Planet Labs
  11. August 2016
  12. The GeoJSON Format
  13. Abstract
  14. GeoJSON is a geospatial data interchange format based on JavaScript
  15. Object Notation (JSON). It defines several types of JSON objects and
  16. the manner in which they are combined to represent data about
  17. geographic features, their properties, and their spatial extents.
  18. GeoJSON uses a geographic coordinate reference system, World Geodetic
  19. System 1984, and units of decimal degrees.
  20. Status of This Memo
  21. This is an Internet Standards Track document.
  22. This document is a product of the Internet Engineering Task Force
  23. (IETF). It represents the consensus of the IETF community. It has
  24. received public review and has been approved for publication by the
  25. Internet Engineering Steering Group (IESG). Further information on
  26. Internet Standards is available in Section 2 of RFC 7841.
  27. Information about the current status of this document, any errata,
  28. and how to provide feedback on it may be obtained at
  29. http://www.rfc-editor.org/info/rfc7946.
  30. Butler, et al. Standards Track [Page 1]
  31. RFC 7946 GeoJSON August 2016
  32. Copyright Notice
  33. Copyright (c) 2016 IETF Trust and the persons identified as the
  34. document authors. All rights reserved.
  35. This document is subject to BCP 78 and the IETF Trust's Legal
  36. Provisions Relating to IETF Documents
  37. (http://trustee.ietf.org/license-info) in effect on the date of
  38. publication of this document. Please review these documents
  39. carefully, as they describe your rights and restrictions with respect
  40. to this document. Code Components extracted from this document must
  41. include Simplified BSD License text as described in Section 4.e of
  42. the Trust Legal Provisions and are provided without warranty as
  43. described in the Simplified BSD License.
  44. Table of Contents
  45. 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
  46. 1.1. Requirements Language . . . . . . . . . . . . . . . . . . 4
  47. 1.2. Conventions Used in This Document . . . . . . . . . . . . 4
  48. 1.3. Specification of GeoJSON . . . . . . . . . . . . . . . . 4
  49. 1.4. Definitions . . . . . . . . . . . . . . . . . . . . . . . 5
  50. 1.5. Example . . . . . . . . . . . . . . . . . . . . . . . . . 5
  51. 2. GeoJSON Text . . . . . . . . . . . . . . . . . . . . . . . . 6
  52. 3. GeoJSON Object . . . . . . . . . . . . . . . . . . . . . . . 6
  53. 3.1. Geometry Object . . . . . . . . . . . . . . . . . . . . . 7
  54. 3.1.1. Position . . . . . . . . . . . . . . . . . . . . . . 7
  55. 3.1.2. Point . . . . . . . . . . . . . . . . . . . . . . . . 8
  56. 3.1.3. MultiPoint . . . . . . . . . . . . . . . . . . . . . 8
  57. 3.1.4. LineString . . . . . . . . . . . . . . . . . . . . . 8
  58. 3.1.5. MultiLineString . . . . . . . . . . . . . . . . . . . 8
  59. 3.1.6. Polygon . . . . . . . . . . . . . . . . . . . . . . . 9
  60. 3.1.7. MultiPolygon . . . . . . . . . . . . . . . . . . . . 9
  61. 3.1.8. GeometryCollection . . . . . . . . . . . . . . . . . 9
  62. 3.1.9. Antimeridian Cutting . . . . . . . . . . . . . . . . 10
  63. 3.1.10. Uncertainty and Precision . . . . . . . . . . . . . . 11
  64. 3.2. Feature Object . . . . . . . . . . . . . . . . . . . . . 11
  65. 3.3. FeatureCollection Object . . . . . . . . . . . . . . . . 12
  66. 4. Coordinate Reference System . . . . . . . . . . . . . . . . . 12
  67. 5. Bounding Box . . . . . . . . . . . . . . . . . . . . . . . . 12
  68. 5.1. The Connecting Lines . . . . . . . . . . . . . . . . . . 14
  69. 5.2. The Antimeridian . . . . . . . . . . . . . . . . . . . . 14
  70. 5.3. The Poles . . . . . . . . . . . . . . . . . . . . . . . . 14
  71. 6. Extending GeoJSON . . . . . . . . . . . . . . . . . . . . . . 15
  72. 6.1. Foreign Members . . . . . . . . . . . . . . . . . . . . . 15
  73. 7. GeoJSON Types Are Not Extensible . . . . . . . . . . . . . . 16
  74. 7.1. Semantics of GeoJSON Members and Types Are Not Changeable 16
  75. 8. Versioning . . . . . . . . . . . . . . . . . . . . . . . . . 17
  76. Butler, et al. Standards Track [Page 2]
  77. RFC 7946 GeoJSON August 2016
  78. 9. Mapping 'geo' URIs . . . . . . . . . . . . . . . . . . . . . 17
  79. 10. Security Considerations . . . . . . . . . . . . . . . . . . . 18
  80. 11. Interoperability Considerations . . . . . . . . . . . . . . . 18
  81. 11.1. I-JSON . . . . . . . . . . . . . . . . . . . . . . . . . 18
  82. 11.2. Coordinate Precision . . . . . . . . . . . . . . . . . . 18
  83. 12. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 19
  84. 13. References . . . . . . . . . . . . . . . . . . . . . . . . . 20
  85. 13.1. Normative References . . . . . . . . . . . . . . . . . . 20
  86. 13.2. Informative References . . . . . . . . . . . . . . . . . 21
  87. Appendix A. Geometry Examples . . . . . . . . . . . . . . . . . 22
  88. A.1. Points . . . . . . . . . . . . . . . . . . . . . . . . . 22
  89. A.2. LineStrings . . . . . . . . . . . . . . . . . . . . . . . 22
  90. A.3. Polygons . . . . . . . . . . . . . . . . . . . . . . . . 23
  91. A.4. MultiPoints . . . . . . . . . . . . . . . . . . . . . . . 24
  92. A.5. MultiLineStrings . . . . . . . . . . . . . . . . . . . . 24
  93. A.6. MultiPolygons . . . . . . . . . . . . . . . . . . . . . . 25
  94. A.7. GeometryCollections . . . . . . . . . . . . . . . . . . . 26
  95. Appendix B. Changes from the Pre-IETF GeoJSON Format
  96. Specification . . . . . . . . . . . . . . . . . . . 26
  97. B.1. Normative Changes . . . . . . . . . . . . . . . . . . . . 26
  98. B.2. Informative Changes . . . . . . . . . . . . . . . . . . . 27
  99. Appendix C. GeoJSON Text Sequences . . . . . . . . . . . . . . . 27
  100. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 27
  101. Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 28
  102. 1. Introduction
  103. GeoJSON is a format for encoding a variety of geographic data
  104. structures using JavaScript Object Notation (JSON) [RFC7159]. A
  105. GeoJSON object may represent a region of space (a Geometry), a
  106. spatially bounded entity (a Feature), or a list of Features (a
  107. FeatureCollection). GeoJSON supports the following geometry types:
  108. Point, LineString, Polygon, MultiPoint, MultiLineString,
  109. MultiPolygon, and GeometryCollection. Features in GeoJSON contain a
  110. Geometry object and additional properties, and a FeatureCollection
  111. contains a list of Features.
  112. The format is concerned with geographic data in the broadest sense;
  113. anything with qualities that are bounded in geographical space might
  114. be a Feature whether or not it is a physical structure. The concepts
  115. in GeoJSON are not new; they are derived from preexisting open
  116. geographic information system standards and have been streamlined to
  117. better suit web application development using JSON.
  118. GeoJSON comprises the seven concrete geometry types defined in the
  119. OpenGIS Simple Features Implementation Specification for SQL [SFSQL]:
  120. 0-dimensional Point and MultiPoint; 1-dimensional curve LineString
  121. and MultiLineString; 2-dimensional surface Polygon and MultiPolygon;
  122. Butler, et al. Standards Track [Page 3]
  123. RFC 7946 GeoJSON August 2016
  124. and the heterogeneous GeometryCollection. GeoJSON representations of
  125. instances of these geometry types are analogous to the well-known
  126. binary (WKB) and well-known text (WKT) representations described in
  127. that same specification.
  128. GeoJSON also comprises the types Feature and FeatureCollection.
  129. Feature objects in GeoJSON contain a Geometry object with one of the
  130. above geometry types and additional members. A FeatureCollection
  131. object contains an array of Feature objects. This structure is
  132. analogous to that of the Web Feature Service (WFS) response to
  133. GetFeatures requests specified in [WFSv1] or to a Keyhole Markup
  134. Language (KML) Folder of Placemarks [KMLv2.2]. Some implementations
  135. of the WFS specification also provide GeoJSON-formatted responses to
  136. GetFeature requests, but there is no particular service model or
  137. Feature type ontology implied in the GeoJSON format specification.
  138. Since its initial publication in 2008 [GJ2008], the GeoJSON format
  139. specification has steadily grown in popularity. It is widely used in
  140. JavaScript web-mapping libraries, JSON-based document databases, and
  141. web APIs.
  142. 1.1. Requirements Language
  143. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
  144. "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
  145. "OPTIONAL" in this document are to be interpreted as described in
  146. [RFC2119].
  147. 1.2. Conventions Used in This Document
  148. The ordering of the members of any JSON object defined in this
  149. document MUST be considered irrelevant, as specified by [RFC7159].
  150. Some examples use the combination of a JavaScript single-line comment
  151. (//) followed by an ellipsis (...) as placeholder notation for
  152. content deemed irrelevant by the authors. These placeholders must of
  153. course be deleted or otherwise replaced, before attempting to
  154. validate the corresponding JSON code example.
  155. Whitespace is used in the examples inside this document to help
  156. illustrate the data structures, but it is not required. Unquoted
  157. whitespace is not significant in JSON.
  158. 1.3. Specification of GeoJSON
  159. This document supersedes the original GeoJSON format specification
  160. [GJ2008].
  161. Butler, et al. Standards Track [Page 4]
  162. RFC 7946 GeoJSON August 2016
  163. 1.4. Definitions
  164. o JavaScript Object Notation (JSON), and the terms object, member,
  165. name, value, array, number, true, false, and null, are to be
  166. interpreted as defined in [RFC7159].
  167. o Inside this document, the term "geometry type" refers to seven
  168. case-sensitive strings: "Point", "MultiPoint", "LineString",
  169. "MultiLineString", "Polygon", "MultiPolygon", and
  170. "GeometryCollection".
  171. o As another shorthand notation, the term "GeoJSON types" refers to
  172. nine case-sensitive strings: "Feature", "FeatureCollection", and
  173. the geometry types listed above.
  174. o The word "Collection" in "FeatureCollection" and
  175. "GeometryCollection" does not have any significance for the
  176. semantics of array members. The "features" and "geometries"
  177. members, respectively, of these objects are standard ordered JSON
  178. arrays, not unordered sets.
  179. 1.5. Example
  180. A GeoJSON FeatureCollection:
  181. {
  182. "type": "FeatureCollection",
  183. "features": [{
  184. "type": "Feature",
  185. "geometry": {
  186. "type": "Point",
  187. "coordinates": [102.0, 0.5]
  188. },
  189. "properties": {
  190. "prop0": "value0"
  191. }
  192. }, {
  193. "type": "Feature",
  194. "geometry": {
  195. "type": "LineString",
  196. "coordinates": [
  197. [102.0, 0.0],
  198. [103.0, 1.0],
  199. [104.0, 0.0],
  200. [105.0, 1.0]
  201. ]
  202. },
  203. "properties": {
  204. Butler, et al. Standards Track [Page 5]
  205. RFC 7946 GeoJSON August 2016
  206. "prop0": "value0",
  207. "prop1": 0.0
  208. }
  209. }, {
  210. "type": "Feature",
  211. "geometry": {
  212. "type": "Polygon",
  213. "coordinates": [
  214. [
  215. [100.0, 0.0],
  216. [101.0, 0.0],
  217. [101.0, 1.0],
  218. [100.0, 1.0],
  219. [100.0, 0.0]
  220. ]
  221. ]
  222. },
  223. "properties": {
  224. "prop0": "value0",
  225. "prop1": {
  226. "this": "that"
  227. }
  228. }
  229. }]
  230. }
  231. 2. GeoJSON Text
  232. A GeoJSON text is a JSON text and consists of a single GeoJSON
  233. object.
  234. 3. GeoJSON Object
  235. A GeoJSON object represents a Geometry, Feature, or collection of
  236. Features.
  237. o A GeoJSON object is a JSON object.
  238. o A GeoJSON object has a member with the name "type". The value of
  239. the member MUST be one of the GeoJSON types.
  240. o A GeoJSON object MAY have a "bbox" member, the value of which MUST
  241. be a bounding box array (see Section 5).
  242. o A GeoJSON object MAY have other members (see Section 6).
  243. Butler, et al. Standards Track [Page 6]
  244. RFC 7946 GeoJSON August 2016
  245. 3.1. Geometry Object
  246. A Geometry object represents points, curves, and surfaces in
  247. coordinate space. Every Geometry object is a GeoJSON object no
  248. matter where it occurs in a GeoJSON text.
  249. o The value of a Geometry object's "type" member MUST be one of the
  250. seven geometry types (see Section 1.4).
  251. o A GeoJSON Geometry object of any type other than
  252. "GeometryCollection" has a member with the name "coordinates".
  253. The value of the "coordinates" member is an array. The structure
  254. of the elements in this array is determined by the type of
  255. geometry. GeoJSON processors MAY interpret Geometry objects with
  256. empty "coordinates" arrays as null objects.
  257. 3.1.1. Position
  258. A position is the fundamental geometry construct. The "coordinates"
  259. member of a Geometry object is composed of either:
  260. o one position in the case of a Point geometry,
  261. o an array of positions in the case of a LineString or MultiPoint
  262. geometry,
  263. o an array of LineString or linear ring (see Section 3.1.6)
  264. coordinates in the case of a Polygon or MultiLineString geometry,
  265. or
  266. o an array of Polygon coordinates in the case of a MultiPolygon
  267. geometry.
  268. A position is an array of numbers. There MUST be two or more
  269. elements. The first two elements are longitude and latitude, or
  270. easting and northing, precisely in that order and using decimal
  271. numbers. Altitude or elevation MAY be included as an optional third
  272. element.
  273. Implementations SHOULD NOT extend positions beyond three elements
  274. because the semantics of extra elements are unspecified and
  275. ambiguous. Historically, some implementations have used a fourth
  276. element to carry a linear referencing measure (sometimes denoted as
  277. "M") or a numerical timestamp, but in most situations a parser will
  278. not be able to properly interpret these values. The interpretation
  279. and meaning of additional elements is beyond the scope of this
  280. specification, and additional elements MAY be ignored by parsers.
  281. Butler, et al. Standards Track [Page 7]
  282. RFC 7946 GeoJSON August 2016
  283. A line between two positions is a straight Cartesian line, the
  284. shortest line between those two points in the coordinate reference
  285. system (see Section 4).
  286. In other words, every point on a line that does not cross the
  287. antimeridian between a point (lon0, lat0) and (lon1, lat1) can be
  288. calculated as
  289. F(lon, lat) = (lon0 + (lon1 - lon0) * t, lat0 + (lat1 - lat0) * t)
  290. with t being a real number greater than or equal to 0 and smaller
  291. than or equal to 1. Note that this line may markedly differ from the
  292. geodesic path along the curved surface of the reference ellipsoid.
  293. The same applies to the optional height element with the proviso that
  294. the direction of the height is as specified in the coordinate
  295. reference system.
  296. Note that, again, this does not mean that a surface with equal height
  297. follows, for example, the curvature of a body of water. Nor is a
  298. surface of equal height perpendicular to a plumb line.
  299. Examples of positions and geometries are provided in Appendix A,
  300. "Geometry Examples".
  301. 3.1.2. Point
  302. For type "Point", the "coordinates" member is a single position.
  303. 3.1.3. MultiPoint
  304. For type "MultiPoint", the "coordinates" member is an array of
  305. positions.
  306. 3.1.4. LineString
  307. For type "LineString", the "coordinates" member is an array of two or
  308. more positions.
  309. 3.1.5. MultiLineString
  310. For type "MultiLineString", the "coordinates" member is an array of
  311. LineString coordinate arrays.
  312. Butler, et al. Standards Track [Page 8]
  313. RFC 7946 GeoJSON August 2016
  314. 3.1.6. Polygon
  315. To specify a constraint specific to Polygons, it is useful to
  316. introduce the concept of a linear ring:
  317. o A linear ring is a closed LineString with four or more positions.
  318. o The first and last positions are equivalent, and they MUST contain
  319. identical values; their representation SHOULD also be identical.
  320. o A linear ring is the boundary of a surface or the boundary of a
  321. hole in a surface.
  322. o A linear ring MUST follow the right-hand rule with respect to the
  323. area it bounds, i.e., exterior rings are counterclockwise, and
  324. holes are clockwise.
  325. Note: the [GJ2008] specification did not discuss linear ring winding
  326. order. For backwards compatibility, parsers SHOULD NOT reject
  327. Polygons that do not follow the right-hand rule.
  328. Though a linear ring is not explicitly represented as a GeoJSON
  329. geometry type, it leads to a canonical formulation of the Polygon
  330. geometry type definition as follows:
  331. o For type "Polygon", the "coordinates" member MUST be an array of
  332. linear ring coordinate arrays.
  333. o For Polygons with more than one of these rings, the first MUST be
  334. the exterior ring, and any others MUST be interior rings. The
  335. exterior ring bounds the surface, and the interior rings (if
  336. present) bound holes within the surface.
  337. 3.1.7. MultiPolygon
  338. For type "MultiPolygon", the "coordinates" member is an array of
  339. Polygon coordinate arrays.
  340. 3.1.8. GeometryCollection
  341. A GeoJSON object with type "GeometryCollection" is a Geometry object.
  342. A GeometryCollection has a member with the name "geometries". The
  343. value of "geometries" is an array. Each element of this array is a
  344. GeoJSON Geometry object. It is possible for this array to be empty.
  345. Butler, et al. Standards Track [Page 9]
  346. RFC 7946 GeoJSON August 2016
  347. Unlike the other geometry types described above, a GeometryCollection
  348. can be a heterogeneous composition of smaller Geometry objects. For
  349. example, a Geometry object in the shape of a lowercase roman "i" can
  350. be composed of one point and one LineString.
  351. GeometryCollections have a different syntax from single type Geometry
  352. objects (Point, LineString, and Polygon) and homogeneously typed
  353. multipart Geometry objects (MultiPoint, MultiLineString, and
  354. MultiPolygon) but have no different semantics. Although a
  355. GeometryCollection object has no "coordinates" member, it does have
  356. coordinates: the coordinates of all its parts belong to the
  357. collection. The "geometries" member of a GeometryCollection
  358. describes the parts of this composition. Implementations SHOULD NOT
  359. apply any additional semantics to the "geometries" array.
  360. To maximize interoperability, implementations SHOULD avoid nested
  361. GeometryCollections. Furthermore, GeometryCollections composed of a
  362. single part or a number of parts of a single type SHOULD be avoided
  363. when that single part or a single object of multipart type
  364. (MultiPoint, MultiLineString, or MultiPolygon) could be used instead.
  365. 3.1.9. Antimeridian Cutting
  366. In representing Features that cross the antimeridian,
  367. interoperability is improved by modifying their geometry. Any
  368. geometry that crosses the antimeridian SHOULD be represented by
  369. cutting it in two such that neither part's representation crosses the
  370. antimeridian.
  371. For example, a line extending from 45 degrees N, 170 degrees E across
  372. the antimeridian to 45 degrees N, 170 degrees W should be cut in two
  373. and represented as a MultiLineString.
  374. {
  375. "type": "MultiLineString",
  376. "coordinates": [
  377. [
  378. [170.0, 45.0], [180.0, 45.0]
  379. ], [
  380. [-180.0, 45.0], [-170.0, 45.0]
  381. ]
  382. ]
  383. }
  384. Butler, et al. Standards Track [Page 10]
  385. RFC 7946 GeoJSON August 2016
  386. A rectangle extending from 40 degrees N, 170 degrees E across the
  387. antimeridian to 50 degrees N, 170 degrees W should be cut in two and
  388. represented as a MultiPolygon.
  389. {
  390. "type": "MultiPolygon",
  391. "coordinates": [
  392. [
  393. [
  394. [180.0, 40.0], [180.0, 50.0], [170.0, 50.0],
  395. [170.0, 40.0], [180.0, 40.0]
  396. ]
  397. ],
  398. [
  399. [
  400. [-170.0, 40.0], [-170.0, 50.0], [-180.0, 50.0],
  401. [-180.0, 40.0], [-170.0, 40.0]
  402. ]
  403. ]
  404. ]
  405. }
  406. 3.1.10. Uncertainty and Precision
  407. As in [RFC5870], the number of digits of the values in coordinate
  408. positions MUST NOT be interpreted as an indication to the level of
  409. uncertainty.
  410. 3.2. Feature Object
  411. A Feature object represents a spatially bounded thing. Every Feature
  412. object is a GeoJSON object no matter where it occurs in a GeoJSON
  413. text.
  414. o A Feature object has a "type" member with the value "Feature".
  415. o A Feature object has a member with the name "geometry". The value
  416. of the geometry member SHALL be either a Geometry object as
  417. defined above or, in the case that the Feature is unlocated, a
  418. JSON null value.
  419. o A Feature object has a member with the name "properties". The
  420. value of the properties member is an object (any JSON object or a
  421. JSON null value).
  422. Butler, et al. Standards Track [Page 11]
  423. RFC 7946 GeoJSON August 2016
  424. o If a Feature has a commonly used identifier, that identifier
  425. SHOULD be included as a member of the Feature object with the name
  426. "id", and the value of this member is either a JSON string or
  427. number.
  428. 3.3. FeatureCollection Object
  429. A GeoJSON object with the type "FeatureCollection" is a
  430. FeatureCollection object. A FeatureCollection object has a member
  431. with the name "features". The value of "features" is a JSON array.
  432. Each element of the array is a Feature object as defined above. It
  433. is possible for this array to be empty.
  434. 4. Coordinate Reference System
  435. The coordinate reference system for all GeoJSON coordinates is a
  436. geographic coordinate reference system, using the World Geodetic
  437. System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
  438. of decimal degrees. This is equivalent to the coordinate reference
  439. system identified by the Open Geospatial Consortium (OGC) URN
  440. urn:ogc:def:crs:OGC::CRS84. An OPTIONAL third-position element SHALL
  441. be the height in meters above or below the WGS 84 reference
  442. ellipsoid. In the absence of elevation values, applications
  443. sensitive to height or depth SHOULD interpret positions as being at
  444. local ground or sea level.
  445. Note: the use of alternative coordinate reference systems was
  446. specified in [GJ2008], but it has been removed from this version of
  447. the specification because the use of different coordinate reference
  448. systems -- especially in the manner specified in [GJ2008] -- has
  449. proven to have interoperability issues. In general, GeoJSON
  450. processing software is not expected to have access to coordinate
  451. reference system databases or to have network access to coordinate
  452. reference system transformation parameters. However, where all
  453. involved parties have a prior arrangement, alternative coordinate
  454. reference systems can be used without risk of data being
  455. misinterpreted.
  456. 5. Bounding Box
  457. A GeoJSON object MAY have a member named "bbox" to include
  458. information on the coordinate range for its Geometries, Features, or
  459. FeatureCollections. The value of the bbox member MUST be an array of
  460. length 2*n where n is the number of dimensions represented in the
  461. contained geometries, with all axes of the most southwesterly point
  462. followed by all axes of the more northeasterly point. The axes order
  463. of a bbox follows the axes order of geometries.
  464. Butler, et al. Standards Track [Page 12]
  465. RFC 7946 GeoJSON August 2016
  466. The "bbox" values define shapes with edges that follow lines of
  467. constant longitude, latitude, and elevation.
  468. Example of a 2D bbox member on a Feature:
  469. {
  470. "type": "Feature",
  471. "bbox": [-10.0, -10.0, 10.0, 10.0],
  472. "geometry": {
  473. "type": "Polygon",
  474. "coordinates": [
  475. [
  476. [-10.0, -10.0],
  477. [10.0, -10.0],
  478. [10.0, 10.0],
  479. [-10.0, -10.0]
  480. ]
  481. ]
  482. }
  483. //...
  484. }
  485. Example of a 2D bbox member on a FeatureCollection:
  486. {
  487. "type": "FeatureCollection",
  488. "bbox": [100.0, 0.0, 105.0, 1.0],
  489. "features": [
  490. //...
  491. ]
  492. }
  493. Example of a 3D bbox member with a depth of 100 meters:
  494. {
  495. "type": "FeatureCollection",
  496. "bbox": [100.0, 0.0, -100.0, 105.0, 1.0, 0.0],
  497. "features": [
  498. //...
  499. ]
  500. }
  501. Butler, et al. Standards Track [Page 13]
  502. RFC 7946 GeoJSON August 2016
  503. 5.1. The Connecting Lines
  504. The four lines of the bounding box are defined fully within the
  505. coordinate reference system; that is, for a box bounded by the values
  506. "west", "south", "east", and "north", every point on the northernmost
  507. line can be expressed as
  508. (lon, lat) = (west + (east - west) * t, north)
  509. with 0 <= t <= 1.
  510. 5.2. The Antimeridian
  511. Consider a set of point Features within the Fiji archipelago,
  512. straddling the antimeridian between 16 degrees S and 20 degrees S.
  513. The southwest corner of the box containing these Features is at 20
  514. degrees S and 177 degrees E, and the northwest corner is at 16
  515. degrees S and 178 degrees W. The antimeridian-spanning GeoJSON
  516. bounding box for this FeatureCollection is
  517. "bbox": [177.0, -20.0, -178.0, -16.0]
  518. and covers 5 degrees of longitude.
  519. The complementary bounding box for the same latitude band, not
  520. crossing the antimeridian, is
  521. "bbox": [-178.0, -20.0, 177.0, -16.0]
  522. and covers 355 degrees of longitude.
  523. The latitude of the northeast corner is always greater than the
  524. latitude of the southwest corner, but bounding boxes that cross the
  525. antimeridian have a northeast corner longitude that is less than the
  526. longitude of the southwest corner.
  527. 5.3. The Poles
  528. A bounding box that contains the North Pole extends from a southwest
  529. corner of "minlat" degrees N, 180 degrees W to a northeast corner of
  530. 90 degrees N, 180 degrees E. Viewed on a globe, this bounding box
  531. approximates a spherical cap bounded by the "minlat" circle of
  532. latitude.
  533. "bbox": [-180.0, minlat, 180.0, 90.0]
  534. Butler, et al. Standards Track [Page 14]
  535. RFC 7946 GeoJSON August 2016
  536. A bounding box that contains the South Pole extends from a southwest
  537. corner of 90 degrees S, 180 degrees W to a northeast corner of
  538. "maxlat" degrees S, 180 degrees E.
  539. "bbox": [-180.0, -90.0, 180.0, maxlat]
  540. A bounding box that just touches the North Pole and forms a slice of
  541. an approximate spherical cap when viewed on a globe extends from a
  542. southwest corner of "minlat" degrees N and "westlon" degrees E to a
  543. northeast corner of 90 degrees N and "eastlon" degrees E.
  544. "bbox": [westlon, minlat, eastlon, 90.0]
  545. Similarly, a bounding box that just touches the South Pole and forms
  546. a slice of an approximate spherical cap when viewed on a globe has
  547. the following representation in GeoJSON.
  548. "bbox": [westlon, -90.0, eastlon, maxlat]
  549. Implementers MUST NOT use latitude values greater than 90 or less
  550. than -90 to imply an extent that is not a spherical cap.
  551. 6. Extending GeoJSON
  552. 6.1. Foreign Members
  553. Members not described in this specification ("foreign members") MAY
  554. be used in a GeoJSON document. Note that support for foreign members
  555. can vary across implementations, and no normative processing model
  556. for foreign members is defined. Accordingly, implementations that
  557. rely too heavily on the use of foreign members might experience
  558. reduced interoperability with other implementations.
  559. For example, in the (abridged) Feature object shown below
  560. {
  561. "type": "Feature",
  562. "id": "f1",
  563. "geometry": {...},
  564. "properties": {...},
  565. "title": "Example Feature"
  566. }
  567. the name/value pair of "title": "Example Feature" is a foreign
  568. member. When the value of a foreign member is an object, all the
  569. descendant members of that object are themselves foreign members.
  570. Butler, et al. Standards Track [Page 15]
  571. RFC 7946 GeoJSON August 2016
  572. GeoJSON semantics do not apply to foreign members and their
  573. descendants, regardless of their names and values. For example, in
  574. the (abridged) Feature object below
  575. {
  576. "type": "Feature",
  577. "id": "f2",
  578. "geometry": {...},
  579. "properties": {...},
  580. "centerline": {
  581. "type": "LineString",
  582. "coordinates": [
  583. [-170, 10],
  584. [170, 11]
  585. ]
  586. }
  587. }
  588. the "centerline" member is not a GeoJSON Geometry object.
  589. 7. GeoJSON Types Are Not Extensible
  590. Implementations MUST NOT extend the fixed set of GeoJSON types:
  591. FeatureCollection, Feature, Point, LineString, MultiPoint, Polygon,
  592. MultiLineString, MultiPolygon, and GeometryCollection.
  593. 7.1. Semantics of GeoJSON Members and Types Are Not Changeable
  594. Implementations MUST NOT change the semantics of GeoJSON members and
  595. types.
  596. The GeoJSON "coordinates" and "geometries" members define Geometry
  597. objects. FeatureCollection and Feature objects, respectively, MUST
  598. NOT contain a "coordinates" or "geometries" member.
  599. The GeoJSON "geometry" and "properties" members define a Feature
  600. object. FeatureCollection and Geometry objects, respectively, MUST
  601. NOT contain a "geometry" or "properties" member.
  602. The GeoJSON "features" member defines a FeatureCollection object.
  603. Feature and Geometry objects, respectively, MUST NOT contain a
  604. "features" member.
  605. Butler, et al. Standards Track [Page 16]
  606. RFC 7946 GeoJSON August 2016
  607. 8. Versioning
  608. The GeoJSON format can be extended as defined here, but no explicit
  609. versioning scheme is defined. A specification that alters the
  610. semantics of GeoJSON members or otherwise modifies the format does
  611. not create a new version of this format; instead, it defines an
  612. entirely new format that MUST NOT be identified as GeoJSON.
  613. 9. Mapping 'geo' URIs
  614. 'geo' URIs [RFC5870] identify geographic locations and precise (not
  615. uncertain) locations can be mapped to GeoJSON Geometry objects.
  616. For this section, as in [RFC5870], "lat", "lon", "alt", and "unc" are
  617. placeholders for 'geo' URI latitude, longitude, altitude, and
  618. uncertainty values, respectively.
  619. A 'geo' URI with two coordinates and an uncertainty ('u') parameter
  620. that is absent or zero, and a GeoJSON Point geometry may be mapped to
  621. each other. A GeoJSON Point is always converted to a 'geo' URI that
  622. has no uncertainty parameter.
  623. 'geo' URI:
  624. geo:lat,lon
  625. GeoJSON:
  626. {"type": "Point", "coordinates": [lon, lat]}
  627. The mapping between 'geo' URIs and GeoJSON Points that specify
  628. elevation is shown below.
  629. 'geo' URI:
  630. geo:lat,lon,alt
  631. GeoJSON:
  632. {"type": "Point", "coordinates": [lon, lat, alt]}
  633. GeoJSON has no concept of uncertainty; imprecise or uncertain 'geo'
  634. URIs thus cannot be mapped to GeoJSON geometries.
  635. Butler, et al. Standards Track [Page 17]
  636. RFC 7946 GeoJSON August 2016
  637. 10. Security Considerations
  638. GeoJSON shares security issues common to all JSON content types. See
  639. [RFC7159], Section 12 for additional information. GeoJSON does not
  640. provide executable content.
  641. GeoJSON does not provide privacy or integrity services. If sensitive
  642. data requires privacy or integrity protection, those must be provided
  643. by the transport -- for example, Transport Layer Security (TLS) or
  644. HTTPS. There will be cases in which stored data need protection,
  645. which is out of scope for this document.
  646. As with other geographic data formats, e.g., [KMLv2.2], providing
  647. details about the locations of sensitive persons, animals, habitats,
  648. and facilities can expose them to unauthorized tracking or injury.
  649. Data providers should recognize the risk of inadvertently identifying
  650. individuals if locations in anonymized datasets are not adequately
  651. skewed or not sufficiently fuzzed [Sweeney] and recognize that the
  652. effectiveness of location obscuration is limited by a number of
  653. factors and is unlikely to be an effective defense against a
  654. determined attack [RFC6772].
  655. 11. Interoperability Considerations
  656. 11.1. I-JSON
  657. GeoJSON texts should follow the constraints of Internet JSON (I-JSON)
  658. [RFC7493] for maximum interoperability.
  659. 11.2. Coordinate Precision
  660. The size of a GeoJSON text in bytes is a major interoperability
  661. consideration, and precision of coordinate values has a large impact
  662. on the size of texts. A GeoJSON text containing many detailed
  663. Polygons can be inflated almost by a factor of two by increasing
  664. coordinate precision from 6 to 15 decimal places. For geographic
  665. coordinates with units of degrees, 6 decimal places (a default common
  666. in, e.g., sprintf) amounts to about 10 centimeters, a precision well
  667. within that of current GPS systems. Implementations should consider
  668. the cost of using a greater precision than necessary.
  669. Furthermore, the WGS 84 [WGS84] datum is a relatively coarse
  670. approximation of the geoid, with the height varying by up to 5 m (but
  671. generally between 2 and 3 meters) higher or lower relative to a
  672. surface parallel to Earth's mean sea level.
  673. Butler, et al. Standards Track [Page 18]
  674. RFC 7946 GeoJSON August 2016
  675. 12. IANA Considerations
  676. The media type for GeoJSON text is "application/geo+json" and is
  677. registered in the "Media Types" registry described in [RFC6838]. The
  678. entry for "application/vnd.geo+json" in the same registry should have
  679. its status changed to be "OBSOLETED" with a pointer to the media type
  680. "application/geo+json" and a reference added to this RFC.
  681. Type name: application
  682. Subtype name: geo+json
  683. Required parameters: n/a
  684. Optional parameters: n/a
  685. Encoding considerations: binary
  686. Security considerations: See Section 10 above
  687. Interoperability considerations: See Section 11 above
  688. Published specification: [[RFC7946]]
  689. Applications that use this media type: No known applications
  690. currently use this media type. This media type is intended for
  691. GeoJSON applications currently using the "application/
  692. vnd.geo+json" or "application/json" media types, of which there
  693. are several categories: web mapping, geospatial databases,
  694. geographic data processing APIs, data analysis and storage
  695. services, and data dissemination.
  696. Additional information:
  697. Magic number(s): n/a
  698. File extension(s): .json, .geojson
  699. Macintosh file type code: n/a
  700. Object Identifiers: n/a
  701. Windows clipboard name: GeoJSON
  702. Macintosh uniform type identifier: public.geojson conforms to
  703. public.json
  704. Butler, et al. Standards Track [Page 19]
  705. RFC 7946 GeoJSON August 2016
  706. Person to contact for further information: Sean Gillies
  707. (sean.gillies@gmail.com)
  708. Intended usage: COMMON
  709. Restrictions on usage: none
  710. Restrictions on usage: none
  711. Author: see "Authors' Addresses" section of [[RFC7946]].
  712. Change controller: Internet Engineering Task Force
  713. 13. References
  714. 13.1. Normative References
  715. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
  716. Requirement Levels", BCP 14, RFC 2119,
  717. DOI 10.17487/RFC2119, March 1997,
  718. <http://www.rfc-editor.org/info/rfc2119>.
  719. [RFC6838] Freed, N., Klensin, J., and T. Hansen, "Media Type
  720. Specifications and Registration Procedures", BCP 13,
  721. RFC 6838, DOI 10.17487/RFC6838, January 2013,
  722. <http://www.rfc-editor.org/info/rfc6838>.
  723. [RFC7159] Bray, T., Ed., "The JavaScript Object Notation (JSON) Data
  724. Interchange Format", RFC 7159, DOI 10.17487/RFC7159, March
  725. 2014, <http://www.rfc-editor.org/info/rfc7159>.
  726. [RFC7493] Bray, T., Ed., "The I-JSON Message Format", RFC 7493,
  727. DOI 10.17487/RFC7493, March 2015,
  728. <http://www.rfc-editor.org/info/rfc7493>.
  729. [WGS84] National Imagery and Mapping Agency, "Department of
  730. Defense World Geodetic System 1984: Its Definition and
  731. Relationships with Local Geodetic Systems", Third Edition,
  732. 1984.
  733. Butler, et al. Standards Track [Page 20]
  734. RFC 7946 GeoJSON August 2016
  735. 13.2. Informative References
  736. [GJ2008] Butler, H., Daly, M., Doyle, A., Gillies, S., Schaub, T.,
  737. and C. Schmidt, "The GeoJSON Format Specification", June
  738. 2008.
  739. [KMLv2.2] Wilson, T., "OGC KML", OGC 07-147r2, Version 2.2.0, April
  740. 2008.
  741. [RFC5870] Mayrhofer, A. and C. Spanring, "A Uniform Resource
  742. Identifier for Geographic Locations ('geo' URI)",
  743. RFC 5870, DOI 10.17487/RFC5870, June 2010,
  744. <http://www.rfc-editor.org/info/rfc5870>.
  745. [RFC6772] Schulzrinne, H., Ed., Tschofenig, H., Ed., Cuellar, J.,
  746. Polk, J., Morris, J., and M. Thomson, "Geolocation Policy:
  747. A Document Format for Expressing Privacy Preferences for
  748. Location Information", RFC 6772, DOI 10.17487/RFC6772,
  749. January 2013, <http://www.rfc-editor.org/info/rfc6772>.
  750. [RFC7464] Williams, N., "JavaScript Object Notation (JSON) Text
  751. Sequences", RFC 7464, DOI 10.17487/RFC7464, February 2015,
  752. <http://www.rfc-editor.org/info/rfc7464>.
  753. [SFSQL] OpenGIS Consortium, Inc., "OpenGIS Simple Features
  754. Specification For SQL Revision 1.1", OGC 99-049, May 1999.
  755. [Sweeney] Sweeney, L., "k-anonymity: a model for protecting
  756. privacy", International Journal on Uncertainty, Fuzziness
  757. and Knowledge-based Systems 10 (5), 2002; 557-570,
  758. DOI 10.1142/S0218488502001648, 2002.
  759. [WFSv1] Vretanos, P., "Web Feature Service Implementation
  760. Specification", OGC 04-094, Version 1.1.0, May 2005.
  761. Butler, et al. Standards Track [Page 21]
  762. RFC 7946 GeoJSON August 2016
  763. Appendix A. Geometry Examples
  764. Each of the examples below represents a valid and complete GeoJSON
  765. object.
  766. A.1. Points
  767. Point coordinates are in x, y order (easting, northing for projected
  768. coordinates, longitude, and latitude for geographic coordinates):
  769. {
  770. "type": "Point",
  771. "coordinates": [100.0, 0.0]
  772. }
  773. A.2. LineStrings
  774. Coordinates of LineString are an array of positions (see
  775. Section 3.1.1):
  776. {
  777. "type": "LineString",
  778. "coordinates": [
  779. [100.0, 0.0],
  780. [101.0, 1.0]
  781. ]
  782. }
  783. Butler, et al. Standards Track [Page 22]
  784. RFC 7946 GeoJSON August 2016
  785. A.3. Polygons
  786. Coordinates of a Polygon are an array of linear ring (see
  787. Section 3.1.6) coordinate arrays. The first element in the array
  788. represents the exterior ring. Any subsequent elements represent
  789. interior rings (or holes).
  790. No holes:
  791. {
  792. "type": "Polygon",
  793. "coordinates": [
  794. [
  795. [100.0, 0.0],
  796. [101.0, 0.0],
  797. [101.0, 1.0],
  798. [100.0, 1.0],
  799. [100.0, 0.0]
  800. ]
  801. ]
  802. }
  803. With holes:
  804. {
  805. "type": "Polygon",
  806. "coordinates": [
  807. [
  808. [100.0, 0.0],
  809. [101.0, 0.0],
  810. [101.0, 1.0],
  811. [100.0, 1.0],
  812. [100.0, 0.0]
  813. ],
  814. [
  815. [100.8, 0.8],
  816. [100.8, 0.2],
  817. [100.2, 0.2],
  818. [100.2, 0.8],
  819. [100.8, 0.8]
  820. ]
  821. ]
  822. }
  823. Butler, et al. Standards Track [Page 23]
  824. RFC 7946 GeoJSON August 2016
  825. A.4. MultiPoints
  826. Coordinates of a MultiPoint are an array of positions:
  827. {
  828. "type": "MultiPoint",
  829. "coordinates": [
  830. [100.0, 0.0],
  831. [101.0, 1.0]
  832. ]
  833. }
  834. A.5. MultiLineStrings
  835. Coordinates of a MultiLineString are an array of LineString
  836. coordinate arrays:
  837. {
  838. "type": "MultiLineString",
  839. "coordinates": [
  840. [
  841. [100.0, 0.0],
  842. [101.0, 1.0]
  843. ],
  844. [
  845. [102.0, 2.0],
  846. [103.0, 3.0]
  847. ]
  848. ]
  849. }
  850. Butler, et al. Standards Track [Page 24]
  851. RFC 7946 GeoJSON August 2016
  852. A.6. MultiPolygons
  853. Coordinates of a MultiPolygon are an array of Polygon coordinate
  854. arrays:
  855. {
  856. "type": "MultiPolygon",
  857. "coordinates": [
  858. [
  859. [
  860. [102.0, 2.0],
  861. [103.0, 2.0],
  862. [103.0, 3.0],
  863. [102.0, 3.0],
  864. [102.0, 2.0]
  865. ]
  866. ],
  867. [
  868. [
  869. [100.0, 0.0],
  870. [101.0, 0.0],
  871. [101.0, 1.0],
  872. [100.0, 1.0],
  873. [100.0, 0.0]
  874. ],
  875. [
  876. [100.2, 0.2],
  877. [100.2, 0.8],
  878. [100.8, 0.8],
  879. [100.8, 0.2],
  880. [100.2, 0.2]
  881. ]
  882. ]
  883. ]
  884. }
  885. Butler, et al. Standards Track [Page 25]
  886. RFC 7946 GeoJSON August 2016
  887. A.7. GeometryCollections
  888. Each element in the "geometries" array of a GeometryCollection is one
  889. of the Geometry objects described above:
  890. {
  891. "type": "GeometryCollection",
  892. "geometries": [{
  893. "type": "Point",
  894. "coordinates": [100.0, 0.0]
  895. }, {
  896. "type": "LineString",
  897. "coordinates": [
  898. [101.0, 0.0],
  899. [102.0, 1.0]
  900. ]
  901. }]
  902. }
  903. Appendix B. Changes from the Pre-IETF GeoJSON Format Specification
  904. This appendix briefly summarizes non-editorial changes from the 2008
  905. specification [GJ2008].
  906. B.1. Normative Changes
  907. o Specification of coordinate reference systems has been removed,
  908. i.e., the "crs" member of [GJ2008] is no longer used.
  909. o In the absence of elevation values, applications sensitive to
  910. height or depth SHOULD interpret positions as being at local
  911. ground or sea level (see Section 4).
  912. o Implementations SHOULD NOT extend position arrays beyond 3
  913. elements (see Section 3.1.1).
  914. o A line between two positions is a straight Cartesian line (see
  915. Section 3.1.1).
  916. o Polygon rings MUST follow the right-hand rule for orientation
  917. (counterclockwise external rings, clockwise internal rings).
  918. o The values of a "bbox" array are "[west, south, east, north]", not
  919. "[minx, miny, maxx, maxy]" (see Section 5).
  920. o A Feature object's "id" member is a string or number (see
  921. Section 3.2).
  922. Butler, et al. Standards Track [Page 26]
  923. RFC 7946 GeoJSON August 2016
  924. o Extensions MAY be used, but MUST NOT change the semantics of
  925. GeoJSON members and types (see Section 6).
  926. o GeoJSON objects MUST NOT contain the defining members of other
  927. types (see Section 7.1).
  928. o The media type for GeoJSON is "application/geo+json".
  929. B.2. Informative Changes
  930. o The definition of a GeoJSON text has been added.
  931. o Rules for mapping 'geo' URIs have been added.
  932. o A recommendation of the I-JSON [RFC7493] constraints has been
  933. added.
  934. o Implementers are cautioned about the effect of excessive
  935. coordinate precision on interoperability.
  936. o Interoperability concerns of GeometryCollections are noted. These
  937. objects should be used sparingly (see Section 3.1.8).
  938. Appendix C. GeoJSON Text Sequences
  939. All GeoJSON objects defined in this specification --
  940. FeatureCollection, Feature, and Geometry -- consist of exactly one
  941. JSON object. However, there may be circumstances in which
  942. applications need to represent sets or sequences of these objects
  943. (over and above the grouping of Feature objects in a
  944. FeatureCollection), e.g., in order to efficiently "stream" large
  945. numbers of Feature objects. The definition of such sets or sequences
  946. is outside the scope of this specification.
  947. If such a representation is needed, a new media type is required that
  948. has the ability to represent these sets or sequences. When defining
  949. such a media type, it may be useful to base it on "JavaScript Object
  950. Notation (JSON) Text Sequences" [RFC7464], leaving the foundations of
  951. how to represent multiple JSON objects to that specification, and
  952. only defining how it applies to GeoJSON objects.
  953. Acknowledgements
  954. The GeoJSON format is the product of discussion on the GeoJSON
  955. mailing list, <http://lists.geojson.org/listinfo.cgi/
  956. geojson-geojson.org>, before October 2015 and in the IETF's GeoJSON
  957. WG after October 2015.
  958. Butler, et al. Standards Track [Page 27]
  959. RFC 7946 GeoJSON August 2016
  960. Material in this document was adapted with changes from
  961. <http://geojson.org/geojson-spec.html> [GJ2008], which is licensed
  962. under <http://creativecommons.org/licenses/by/3.0/us/>.
  963. Authors' Addresses
  964. Howard Butler
  965. Hobu Inc.
  966. Email: howard@hobu.co
  967. Martin Daly
  968. Cadcorp
  969. Email: martin.daly@cadcorp.com
  970. Allan Doyle
  971. Email: adoyle@intl-interfaces.com
  972. Sean Gillies
  973. Mapbox
  974. Email: sean.gillies@gmail.com
  975. URI: http://sgillies.net
  976. Stefan Hagen
  977. Rheinaustr. 62
  978. Bonn 53225
  979. Germany
  980. Email: stefan@hagen.link
  981. URI: http://stefan-hagen.website/
  982. Tim Schaub
  983. Planet Labs
  984. Email: tim.schaub@gmail.com
  985. Butler, et al. Standards Track [Page 28]