GeoJSON
| GeoJSON | ||||
|---|---|---|---|---|
| Bestandsextensie | .json | |||
| MIME-type | application/json | |||
| Ontwikkeld door | https://geojson.org/ | |||
| ||||
GeoJSON[1] is een formaat voor het vastleggen van geografische kenmerken samen met andere (niet ruimtelijke) data door middel van JavaScript Object Notatie. De kenmerken zijn punten (adressen en locaties), lijnen (straten, snelwegen, grenzen), veelhoeken (landen, provincies, gemeenten), en meervoudig samengestelde verzamelingen daarvan. GeoJSON-kenmerken hoeven niet per se fysiek bestaande zaken weer te geven.[2]
Voorbeeld
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [102.0, 0.6]
},
"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": {
"prop1": 0.0,
"prop0": "value0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0],
[100.0, 0.0]
]
]
},
"properties": {
"prop1": {
"this": "that"
},
"prop0": "value0"
}
}
]
}
Meetkundige elementen
| Type | Voorbeelden | |
|---|---|---|
| Punt | {
"type": "Point",
"coordinates": [30, 10]
}
| |
| Lijnstuk | {
"type": "LineString",
"coordinates": [
[30, 10], [10, 30], [40, 40]
]
}
| |
| Polygoon | {
"type": "Polygon",
"coordinates": [
[[30, 10], [40, 40], [20, 40], [10, 20], [30, 10]]
]
}
| |
{
"type": "Polygon",
"coordinates": [
[[35, 10], [45, 45], [15, 40], [10, 20], [35, 10]],
[[20, 30], [35, 35], [30, 20], [20, 30]]
]
}
| ||
| Type | Voorbeelden | |
|---|---|---|
| Puntenverzameling | {
"type": "MultiPoint",
"coordinates": [
[10, 40], [40, 30], [20, 20], [30, 10]
]
}
| |
| Meerdere lijnstukken | {
"type": "MultiLineString",
"coordinates": [
[[10, 10], [20, 20], [10, 40]],
[[40, 40], [30, 30], [40, 20], [30, 10]]
]
}
| |
| Meerdere Polygonen | {
"type": "MultiPolygon",
"coordinates": [
[
[[30, 20], [45, 40], [10, 40], [30, 20]]
],
[
[[15, 5], [40, 10], [10, 20], [5, 10], [15, 5]]
]
]
}
| |
{
"type": "MultiPolygon",
"coordinates": [
[
[[40, 40], [20, 45], [45, 30], [40, 40]]
],
[
[[20, 35], [10, 30], [10, 10], [30, 5], [45, 20], [20, 35]],
[[30, 20], [20, 15], [20, 25], [30, 20]]
]
]
}
| ||
Software
Het GeoJSON formaat wordt ondersteund door een groot aantal programma's waaronder OpenLayers,[3] Leaflet, Geoforge software,[4] GeoServer,[5] GeoDjango,[6] GDAL,[7] Safe Software FME,[8] en CartoDB,[9]
Het is ook mogelijk GeoJSON te gebruiken met PostGIS[10] en Mapnik,[11]. Beide behandelen het formaat via de GDAL OGR-conversie bibliotheek. Bing Maps, Yahoo! en Google bieden ondersteuning voor GeoJSON in hun API-diensten. GitHub biedt ook GeoJSON rendering.[12]
Historie
Het formaat is niet opgesteld door een formele organisatie, maar door een werkgroep van ontwikkelaars, de GeoJSON format working group vanaf maart 2007[13]. De specificatie was klaar in juni 2008.
Referenties
- ↑ GeoJSON formaat Specificaties. Gearchiveerd op 30 juni 2023.
- ↑ iOS Location and Maps Programming Guide
- ↑ https://web.archive.org/web/20100316141001/http://openlayers.org/dev/examples/vector-formats.html
- ↑ https://leafletjs.com/reference.html#geojson
- ↑ https://web.archive.org/web/20091213135246/http://svn.codehaus.org/geoserver/tags/2.0.0-alpha1/geoserver/release/README.txt
- ↑ https://web.archive.org/web/20100317205437/http://geodjango.org/docs/db-api.html
- ↑ https://web.archive.org/web/20090415054743/http://www.gdal.org/ogr/drv_geojson.html
- ↑ https://web.archive.org/web/20080724103529/http://www.safe.com/reader_writerPDF/geojson.pdf
- ↑ https://web.archive.org/web/20140627210054/http://developers.cartodb.com/documentation/cartodb-js.html
- ↑ https://web.archive.org/web/20100601122329/http://pugs.postgresql.org/files/Introduction_to_PostGIS_v1.0.pdf
- ↑ https://web.archive.org/web/20090502183602/http://svn.mapnik.org/tags/release-0.6.0/docs/api_docs/python/mapnik-module.html
- ↑ https://github.com/blog/1528-there-s-a-map-for-that. Gearchiveerd op 27 september 2016.
- ↑ March 2007 Archives by thread. Gearchiveerd op 8 april 2023.
Zie ook
Externe links
- https://geojson.org/
- https://geojson.org/geojson-spec.html
- https://web.archive.org/web/20090522050557/http://www.directionsmag.com/article.php?article_id=2550
- https://web.archive.org/web/20140325234900/http://blog.programmableweb.com/2008/08/27/3-top-data-formats-for-map-mashups-kml-georss-and-geojson/
- https://web.archive.org/web/20090221220320/http://www.geowebguru.com/articles/97-technical-overview-geojson
- https://googlegeodevelopers.blogspot.com/2009/05/build-on-top-of-your-public-latitude.html
- https://www.afstand-berekenen.nl/uitleg
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.