GeoJSON / 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
- a FeatureCollection object
- an array of Feature objects
- a single Feature object
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"}}
Updated 10 months ago