You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Vector · Web & JSON

JSON-FG — OGC Features and Geometries JSON (JSON-FG)

OGC JSON encoding that extends GeoJSON with non-WGS 84 coordinate systems, time, feature types and solid geometries.

Type
Vector · Web & JSON
Extension
.jsonfg, .json
Converter
Read & write
Coordinate system
Any (EPSG, ESRI, custom)
Layers
Single

What is a JSON-FG file?

OGC Features and Geometries JSON (JSON-FG) is an encoding developed by the Open Geospatial Consortium as an extension of GeoJSON. It addresses requirements that GeoJSON deliberately left out. A JSON-FG document stays a valid GeoJSON document, so existing GeoJSON clients can still read the standard geometry member. Additional members carry the extra information: "place" holds geometries in other coordinate reference systems, "coordRefSys" declares the CRS, "time" stores instants or intervals, and "featureType" identifies the kind of feature.

The encoding supports the familiar point, line and polygon types and their multi-part variants. It also adds three-dimensional solids such as polyhedra. A "conformsTo" array declares which parts of the specification a file follows. JSON-FG is aimed at web APIs, particularly OGC API Features services, and at data exchange where projected coordinates or temporal information matter. As a text format it is verbose for large datasets, and software support is still growing.

JSON-FG files are usually exchanged between OGC API Features services and clients, or between organisations that need projected coordinates or time information that plain GeoJSON cannot hold. Files may use the .json or .jsonfg extension, so check the conformsTo array and the place and coordRefSys members to confirm the content. Remember that the standard geometry member may be a reduced version of the data.

Typical uses

  • Publish features from an OGC API Features service with a non-WGS84 CRS.
  • Exchange datasets that carry validity time instants or intervals.
  • Store 3D geometries such as polyhedral surfaces in a JSON-based format.
  • Keep GeoJSON compatibility while adding feature types and CRS information.
Files: Single JSON file (often with the .json extension), recognised as JSON-FG by its "conformsTo" declaration.

Sample JSON-FG files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

Preview of the sample data: Saint Helena places st-helena-places.jsonfg

Places (points)

58 places of Saint Helena (20 settlements, 17 peaks, 21 points of interest) with name, category, elevation from Copernicus DEM and OSM id. OGC JSON-FG.

  • places · Point · 58
  • EPSG:4326
  • 16.6 kB
Attributes (7)
idIntegernameStringcategoryStringkindStringelevationIntegersummaryStringosm_idString
10Jamestowntownsettlement36Capital and only port of Saint Helena293673697
22Diana's Peakpeakpeak809Highest point of Saint Helena4254622180
47Longwood Housemuseumpoi544Napoleon's residence in exile, 1815-182135798100
46Jacob's Ladderlandmarkpoi74Staircase of 699 steps from Jamestown up to Ladder Hill146163201
53Saint Helena Airportairportpoi326Island airport, scheduled flights since 2017166589674

© OpenStreetMap contributors, ODbL 1.0 · Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA

Preview of the sample data: Saint Helena land cover st-helena-landcover-utm.jsonfg

Land cover in UTM (polygons)

190 land-cover polygons (forest, scrub, farmland, residential, water, …) from OpenStreetMap with area in hectares. JSON-FG with the native "place" geometry in UTM zone 30S and a WGS 84 "geometry" copy.

  • landcover · Polygon · 190
  • EPSG:32730
  • 485.2 kB
Attributes (6)
idIntegerlandcoverStringosm_classStringnameStringarea_haRealosm_idString
1beachbeachNone0.6241102771696
2beachbeachSandy Bay Beach0.557550627544
3farmlandfarmlandNone4.50235798087
4farmlandfarmlandNone4.10835798079
5farmlandfarmlandNone3.73535798064

© OpenStreetMap contributors, ODbL 1.0

Frequently asked questions

GeoJSON is limited to WGS84 longitude and latitude and has no time or feature type members. JSON-FG adds place, coordRefSys, time and featureType, and supports solids such as polyhedra. A JSON-FG file remains valid GeoJSON.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.