[gdal-dev] osmconf.ini

Even Rouault even.rouault at spatialys.com
Sat Feb 20 07:18:57 PST 2016


Frank,

I clicked on the "Export" button on the view centered on 
http://www.openstreetmap.org/relation/2827792 , and ran

$ ogrinfo ~/Téléchargements/map.osm multilinestrings \
 -where "osm_id = '2827792'" -geom=no -al -q \
--config OSM_USE_CUSTOM_INDEXING NO

Layer name: multilinestrings
OGRFeature(multilinestrings):2827792
  osm_id (String) = 2827792
  name (String) = Felsenweg Losheim
  type (String) = route
  other_tags (String) = 
"distance"=>"13.4km","network"=>"lwn","operator"=>"Gemeinde 
Losheim","osmc:symbol"=>"yellow:yellow_frame:F:orange","ref"=>"F","route"=>"hiking","symbol"=>"gelbes 
F vor orangenem Felsen","website"=>"http://www.wanderbares-
saarland.de/wanderwege/felsenweg.html"

(with the default osmconf.ini)

Even

> 
> I am having some trouble understanding, when - or how - multilinestrings
> are imported into PostGIS. I am interested in hiking routes from
> OpenStreetMap and I try to figure out how I can load them correctly into
> PostGIS. The corresponding OSM Wiki page would be this:
> http://wiki.openstreetmap.org/wiki/Hiking ,especially the part called
> "Tagging walking and hiking Route Networks". There should be more hiking
> routes as relations in my test region e.g.
> http://www.openstreetmap.org/relation/2827792 is missing. It is not quite
> clear to my how ogr2ogr decides what kind of data is put into which table.
> 
> So, what do I have to do to import this relation into the multilinestrings
> table? Please find my osmconf.ini attached to this email for further
> reference.
> 
> BTW, this is with GDAL 1.11.3, released 2015/09/16, on Windows 10 provided
> by OSGeo4W.
> 
> Many thanks,
> 
> Frank

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list