Atlist lets you import GeoJSON Polygon or MultiPolygon shapes.
Atlist supports two GeoJSON shape types:
Atlist imports raw Polygon and MultiPolygon geometry.
A simple Polygon looks like this:
{
"type":"Polygon",
"coordinates":[
[
[120, 60],
[100, 60],
[100, 40],
[120, 40],
[120, 60]
]
]
}A MultiPolygon looks like this:
{
"type":"MultiPolygon",
"coordinates":[
[
[
[120, 60],
[100, 60],
[100, 40],
[120, 40],
[120, 60]
]
],
[
[
[160, 60],
[140, 60],
[140, 40],
[160, 40],
[160, 60]
],
[
[155, 55],
[145, 55],
[145, 45],
[155, 45],
[155, 55]
]
]
]
}
Many GeoJSON files downloaded online come wrapped in a FeatureCollection, like this:
{
"type":"FeatureCollection",
"features":[
{
"type":"Feature",
"geometry":{
"type":"Point",
"coordinates":[102.0,0.5]
},
"properties":{
"prop0":"value"
},
},
{
"type":"Feature",
"geometry":{
"type":"LineString",
"coordinates":[
[102.0,0.0],
[103.0,1.0],
[104.0,0.0],
[105.0,1.0]
]
},
"properties":{
"prop0":"value",
"prop1":0.0
}
},
{
"type":"Feature",
"geometry":{
"type":"Polygon",
"coordinates":[
[
[100.0,0.0],
[101.0,0.0],
[101.0,0.0],
[101.0,0.0]
]
]
},
"properties":{
"prop0":"value",
"prop1":{
"this":"that"
}
}
}
]
}Atlist only needs the actual shape geometry inside that file.
So instead of importing the entire FeatureCollection, copy just the geometry object:
{
"type":"Polygon",
"coordinates":[
[
[100.0,0.0],
[101.0,0.0],
[101.0,0.0],
[101.0,0.0]
]
]
}
Was this helpful? Send feedback.