Skip to content

Instantly share code, notes, and snippets.

@cspanring
Created February 14, 2011 00:22
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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