GeoJSON: Unterschied zwischen den Versionen
Aus Geoinformation HSR
Stefan (Diskussion | Beiträge) K |
Stefan (Diskussion | Beiträge) K (→Reducing unnecessary digits with regex) |
||
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | + | ||
+ | == Was ist GeoJSON? == | ||
+ | Dialekt für Geodatentypen der textuellen "JavaScript Object Notation" (JSON). | ||
Siehe auch [[Geobuf]] und [[OGR]]-Konverter. | Siehe auch [[Geobuf]] und [[OGR]]-Konverter. | ||
− | + | Notizen: | |
* Currently, GeoJSON is supported as output format of services implemented by FeatureServer, GeoServer and CartoWeb3. | * Currently, GeoJSON is supported as output format of services implemented by FeatureServer, GeoServer and CartoWeb3. | ||
* Ein einfacher GPX zu GeoJSON Konverter: [http://gpx2geojson.appspot.com/?gpxurl= gpx2GeoJSON] | * Ein einfacher GPX zu GeoJSON Konverter: [http://gpx2geojson.appspot.com/?gpxurl= gpx2GeoJSON] | ||
Zeile 9: | Zeile 11: | ||
* Bei [[QGIS]] kann mit Drag&Drop ein GeoJSON File dargestellt werden(?). | * Bei [[QGIS]] kann mit Drag&Drop ein GeoJSON File dargestellt werden(?). | ||
− | + | == Tipps und Tricks == | |
+ | |||
+ | Tools: | ||
+ | * Collection of GeoJSON tools: https://github.com/tmcw/awesome-geojson ! | ||
* http://gitspatial.com/ - Repository with display and API of geodata using GeoJSON format/files. | * http://gitspatial.com/ - Repository with display and API of geodata using GeoJSON format/files. | ||
− | |||
* http://osm.dumoulin63.net/osm2kml/ and http://aaronlidman.com/osm-and-geojson/ - GeoJSON Converter, see also [[Online Geoconverter]] | * http://osm.dumoulin63.net/osm2kml/ and http://aaronlidman.com/osm-and-geojson/ - GeoJSON Converter, see also [[Online Geoconverter]] | ||
* [[PostGIS-Terminal]] e.g. with following SQL script: <code>SELECT ST_AsGeoJSON(way) geom FROM osm_poi WHERE tags @> hstore('tourism','zoo')</code> | * [[PostGIS-Terminal]] e.g. with following SQL script: <code>SELECT ST_AsGeoJSON(way) geom FROM osm_poi WHERE tags @> hstore('tourism','zoo')</code> | ||
+ | |||
+ | === geojson.io - The GeoJSON Editor === | ||
+ | Editor based on GeoJSON (with export e.g. to Shapefile): http://geojson.io/#map=18/47.22267/8.81300 | ||
+ | |||
+ | === Convertcsv.com - Convert GeoJSON to CSV === | ||
+ | Convert GeoJSON to CSV: http://www.convertcsv.com/geojson-to-csv.htm | ||
+ | |||
+ | === geojsonlint.com - Calidate and view your GeoJSON === | ||
+ | https://geojsonlint.com | ||
+ | |||
+ | === Dropchop.io - Process GeoJSON (1) === | ||
+ | https://dropchop.io | ||
+ | |||
+ | === MapShaper.org - Process GeoJSON (2) === | ||
+ | https://mapshaper.org/ | ||
+ | |||
+ | === Reducing unnecessary digits with regex === | ||
+ | Use this regex to reduce to 5 digits in lat/lon coordinates. Replace by group "\1" e.g. in Notepad++. See https://regex101.com/r/eR4sU3/3 : | ||
+ | ([0-9]*\.[0-9][0-9][0-9][0-9][0-9])[0-9]* | ||
+ | |||
[[Kategorie:Dateiformat]] | [[Kategorie:Dateiformat]] |
Aktuelle Version vom 10. Juni 2019, 17:17 Uhr
Inhaltsverzeichnis
Was ist GeoJSON?
Dialekt für Geodatentypen der textuellen "JavaScript Object Notation" (JSON).
Siehe auch Geobuf und OGR-Konverter.
Notizen:
- Currently, GeoJSON is supported as output format of services implemented by FeatureServer, GeoServer and CartoWeb3.
- Ein einfacher GPX zu GeoJSON Konverter: gpx2GeoJSON
- Binär codiertes GeoJSON: GeoBSON (.geobson) and Arc GeoServices BSON (.arcbson) BSON-encoded GeoJSON and Arc JSON, see http://bsonspec.org/#/specification
- Bei QGIS kann mit Drag&Drop ein GeoJSON File dargestellt werden(?).
Tipps und Tricks
Tools:
- Collection of GeoJSON tools: https://github.com/tmcw/awesome-geojson !
- http://gitspatial.com/ - Repository with display and API of geodata using GeoJSON format/files.
- http://osm.dumoulin63.net/osm2kml/ and http://aaronlidman.com/osm-and-geojson/ - GeoJSON Converter, see also Online Geoconverter
- PostGIS-Terminal e.g. with following SQL script:
SELECT ST_AsGeoJSON(way) geom FROM osm_poi WHERE tags @> hstore('tourism','zoo')
geojson.io - The GeoJSON Editor
Editor based on GeoJSON (with export e.g. to Shapefile): http://geojson.io/#map=18/47.22267/8.81300
Convertcsv.com - Convert GeoJSON to CSV
Convert GeoJSON to CSV: http://www.convertcsv.com/geojson-to-csv.htm
geojsonlint.com - Calidate and view your GeoJSON
Dropchop.io - Process GeoJSON (1)
MapShaper.org - Process GeoJSON (2)
Reducing unnecessary digits with regex
Use this regex to reduce to 5 digits in lat/lon coordinates. Replace by group "\1" e.g. in Notepad++. See https://regex101.com/r/eR4sU3/3 :
([0-9]*\.[0-9][0-9][0-9][0-9][0-9])[0-9]*