GeoJSON / NDGeoJSON

Studio
Studio

LoaderCharacteristic
File Extension.json, .geojson, .ndjson
MIME typeapplication/geo+json
File FormatGeoJSON, NDGeoJSON

(https://geojson.org/): https://geojson.org/
(https://stevage.github.io/ndgeojson): https://stevage.github.io/ndgeojson

The Studio Platform accepts GeoJSON files that contains either

Newline-delimited GeoJSON files can also be loaded. A newline-delimited GeoJSON file contains
one GeoJSON feature per line. New-line delimited files need to be named with the .ndjson extension.
For more detail see NDJSON.

Example: GeoJSON Feature Collection.

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [102.0, 0.5]
      },
      "properties": {
        "prop0": "value0"
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "LineString",
        "coordinates": [
          [102.0, 0.0],
          [103.0, 1.0],
          [104.0, 0.0],
          [105.0, 1.0]
        ]
      },
      "properties": {
        "prop0": "value0"
      }
    }
  ]
}

Example: GeoJSON Feature Array.

[
  {
    "type": "Feature",
    "geometry": {
      "type": "Point",
      "coordinates": [102.0, 0.5]
    },
    "properties": {
      "prop0": "value0"
    }
  },
  {
    "type": "Feature",
    "geometry": {
      "type": "LineString",
      "coordinates": [
        [102.0, 0.0],
        [103.0, 1.0],
        [104.0, 0.0],
        [105.0, 1.0]
      ]
    },
    "properties": {
      "prop0": "value0"
    }
  }
]

Example: A single GeoJSON Feature:

{
  "type": "Feature",
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [-10.0, -10.0],
        [10.0, -10.0],
        [10.0, 10.0],
        [-10.0, -10.0]
      ]
    ]
  },
  "properties": {
    "name": "foo"
  }
}

Example: New-line Delimited GeoJSON

{"type": "Feature", "geometry": {"type": "Point", "coordinates": [102.0, 0.5]}, "properties": {"prop0": "value0"}}
{"type": "Feature", "geometry": {"type": "LineString", "coordinates": [[102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0]]}, "properties": {"prop0": "value0"}}