Skip to content

Instantly share code, notes, and snippets.

@cspanring
Created February 14, 2011 00:22
Show Gist options
  • Save cspanring/825336 to your computer and use it in GitHub Desktop.
Save cspanring/825336 to your computer and use it in GitHub Desktop.
GeoJSON FeatureCollection example, geometry and properties.
Display the source blob
Display the rendered blob
Raw
{
"type" : "FeatureCollection",
"features" : [{
"type" : "Feature",
"properties" : {
"capacity" : "10",
"type" : "U-Rack",
"mount" : "Surface"
},
"geometry" : {
"type" : "Point",
"coordinates" : [ -71.073283, 42.417500 ]
}
}]
}
@zhouwy-a
Copy link

zhouwy-a commented Jan 9, 2018

{
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
47.13026404380798,
9.53280758153806
],
[
47.13080048561096,
9.528776318322342
]
]
}
}
]
}
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
47.13148713111877,
9.53216215939578
],
[
47.13148713111877,
9.53216215939578
],
[
47.13148713111877,
9.53216215939578
],
[
47.13148713111877,
9.53216215939578
]
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
47.128000259399414,
9.52858586376412
],
[
47.132699489593506,
9.52858586376412
],
[
47.132699489593506,
9.532394934735397
],
[
47.128000259399414,
9.532394934735397
],
[
47.128000259399414,
9.52858586376412
]
]
]
}
}
]
}
}

@zhouwy-a
Copy link

zhouwy-a commented Jan 9, 2018

{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
47.13026404380798,
9.53280758153806
],
[
47.13080048561096,
9.528776318322342
]
]
}
}
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment