4

I am using geometries in a JavaScript page and it is best to use JSON objects rather than GML which is XML based. I heard of GeoJSON, but is it an OGC open format?

  • It is creative commons. Why do you care? geojson.org/geojson-spec.html – jbchurchill Feb 1 '16 at 19:21
  • 6
    It is pretty much the de facto standard. If your boss prefers XML for data transfer of geometries because it is OGC, you need a new boss :-) – John Powell Feb 1 '16 at 19:37
  • 2
    GeoJSON limits you to the coordinate reference systems you can use, so check it fits your use case before using it (if you need to be standards compliant that is). – nmtoken Feb 1 '16 at 21:27
  • 2
    In a presentation (Push it through the wire) by Jachym Cepicky at FOSS4G-Europe 2015, there is a statement that GeoJSON is a more verbose method than XML for pushing out large data sets (in this case 50,000 polygon features) GeoJSON 80MB compared to XML 40MB; so again the message here is that you need to check your use case first before choosing your format. – nmtoken Feb 5 '16 at 10:51
  • 1
    @venkat530 you should read section 4 of the spec, The coordinate reference system for all GeoJSON coordinates is a geographic coordinate reference system, using the World Geodetic System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units of decimal degrees. This is equivalent to the coordinate reference system identified by... urn:ogc:def:crs:OGC::CRS84. An OPTIONAL third-position element SHALL... be the height in meters above or below the WGS 84 reference ellipsoid... ~ other coordinate systems exist... – nmtoken Jun 30 '17 at 6:40
7

No, GeoJSON is not an OGC standard:

IETF Geographic JSON Working Group

The Internet Engineering Task Force, in conjunction with the original specification authors, has formed the Geographic JSON WG to standardize the format. Work continues on GitHub at https://github.com/geojson/draft-geojson.

3

OGC Standards are listed on the OGC Standards page.

enter image description here

As you will see GeoJSON is not amongst them.

  • 2
    Is this still correct? "OGC OWS Context GeoJSON Encoding Standard" now appears under "standards" but it appears to me that this standard is only for GeoJSON in the context of OWS. Am I interpreting that correctly? The short description makes it seem this way, but the linked document (from OGC) seems less clear. – haff Jun 7 '17 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.