Making Maps from OpenStreetMap Data: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
K
Zeile 1: Zeile 1:
See also [[OSM]].
+
See also [[OSM]], [[OSM-Daten zu Karten aufbereiten]](german)
  
tbd.  
+
  >> Work in progress... (by Hao) <<
== title ==
+
 
 +
== Overview ==
 +
 
 +
== Workflows (experimental) ==
 +
 
 +
This is work in progress. The plan is to put everything in a single batch file.
 +
 
 +
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
 +
 
 +
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
 +
 
 +
2a. Enhance SQLite dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)
 +
* Eventually convert multilinestring to linestring if TileMill/Mapnik can't handle multipolygons.
 +
* Convert Polygons to Points and add them to points as POIs.
 +
 
 +
2b. Do some other preprocessing like line smoothing of streets using preprocessing tools (Python, SQLite file in/out)
 +
* tbd.
 +
 
 +
3. Style data using TileMill
 +
 
 +
4. Publish map
 +
 
 +
 
 +
== Notes ==
  
 
# Test
 
# Test
Zeile 14: Zeile 46:
 
fff <code>code</code>.
 
fff <code>code</code>.
  
 +
 +
== Team/Contact ==
 +
 +
* Prof. S. Keller
 +
* Hao Feng Tan
  
 
[[Kategorie:HowTo]]
 
[[Kategorie:HowTo]]

Version vom 19. März 2014, 13:49 Uhr

See also OSM, OSM-Daten zu Karten aufbereiten(german)

 >> Work in progress... (by Hao) <<

Overview

Workflows (experimental)

This is work in progress. The plan is to put everything in a single batch file.

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

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

2a. Enhance SQLite dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)

  • Eventually convert multilinestring to linestring if TileMill/Mapnik can't handle multipolygons.
  • Convert Polygons to Points and add them to points as POIs.

2b. Do some other preprocessing like line smoothing of streets using preprocessing tools (Python, SQLite file in/out)

  • tbd.

3. Style data using TileMill

4. Publish map


Notes

  1. Test
code
fgdfg
dfgdg

fff code.


Team/Contact

  • Prof. S. Keller
  • Hao Feng Tan