Making Maps from OpenStreetMap Data: Unterschied zwischen den Versionen
Aus Geoinformation HSR
Stefan (Diskussion | Beiträge) K |
Stefan (Diskussion | Beiträge) K |
||
Zeile 9: | Zeile 9: | ||
This is work in progress. The plan is to put everything in a single batch file. | This is work in progress. The plan is to put everything in a single batch file. | ||
− | 0. Prepare software and config data | + | Step 0. Prepare software and config data |
* Install software: [[OGR]], [[SpatiaLite]], [[TileMill]] | * Install software: [[OGR]], [[SpatiaLite]], [[TileMill]] | ||
* Get config data, e.g. modified osmconf.ini | * Get config data, e.g. modified osmconf.ini | ||
* Prepare clip boundary, e.g. liechtenstein_schloss_bbox.geojson | * Prepare clip boundary, e.g. liechtenstein_schloss_bbox.geojson | ||
− | 1. Download, convert and clip OSM data (PBF file in, SQLite/SpatiaLite file out): | + | Step 1. Download, convert and clip OSM data (PBF file in, SQLite/SpatiaLite file out): |
> ogr2ogr -f "SQLite" liechtenstein3.sqlite | > ogr2ogr -f "SQLite" liechtenstein3.sqlite | ||
/vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf | /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf | ||
Zeile 22: | Zeile 22: | ||
-nlt PROMOTE_TO_MULTI | -nlt PROMOTE_TO_MULTI | ||
− | 2a. Enhance SQLite dataset by shuffling geo objects around (using Spatialite, SQLite file in/out) | + | Step 2a. Enhance SQLite dataset by shuffling geo objects around (using Spatialite, SQLite file in/out) |
− | |||
* Convert Polygons to Points and add them to points as POIs. | * Convert Polygons to Points and add them to points as POIs. | ||
+ | * Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?). | ||
− | 2b. Do some other preprocessing | + | Step 2b. Do some other preprocessing using preprocessing tools (Python, SQLite file in/out) |
+ | * line smoothing of streets | ||
* tbd. | * tbd. | ||
− | 3. Style data using TileMill | + | Step 3. Style data using TileMill |
− | + | * See CartoCSS and [[TileMill]] | |
− | |||
+ | Step 4. Publish map on the web | ||
+ | * See e.g. [[Geovisualisierung]] | ||
== Notes == | == Notes == |
Version vom 19. März 2014, 13:53 Uhr
See also OSM, OSM-Daten zu Karten aufbereiten(german)
>> Work in progress... (by Hao) <<
Inhaltsverzeichnis
Overview
Workflows (experimental)
This is work in progress. The plan is to put everything in a single batch file.
Step 0. Prepare software and config data
- Install software: OGR, SpatiaLite, TileMill
- Get config data, e.g. modified osmconf.ini
- Prepare clip boundary, e.g. liechtenstein_schloss_bbox.geojson
Step 1. Download, convert and clip OSM data (PBF file in, SQLite/SpatiaLite file out):
> ogr2ogr -f "SQLite" liechtenstein3.sqlite /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf -dsco SPATIALITE=YES -skipfailures -progress -overwrite --config OSM_CONFIG_FILE osmconf.ini -gt 65536 -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON -nlt PROMOTE_TO_MULTI
Step 2a. Enhance SQLite dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)
- Convert Polygons to Points and add them to points as POIs.
- Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).
Step 2b. Do some other preprocessing using preprocessing tools (Python, SQLite file in/out)
- line smoothing of streets
- tbd.
Step 3. Style data using TileMill
- See CartoCSS and TileMill
Step 4. Publish map on the web
- See e.g. Geovisualisierung
Notes
- Test
code fgdfg dfgdg
fff code
.
Team/Contact
- Prof. S. Keller
- Hao Feng Tan