Ok, I tested the ogrinfo example given by Even with my created excerpt, and there seems to be no object with the ID 2827792. Now I wanted to try the europe extract, which is the source of my own extracts, but ogrinfo gives me lots of results where the -where clause does not fit. Any ideas? Here's my command:
ogrinfo europe-2016-02-12T20-14-02Z.osm.pbf -where "osm_id = '2827792'" -geom=no -al -q --config OSM_USE_CUSTOM_INDEXING NO --config OGR_INTERLEAVED_READING YES Some output snips: [...] tunnel (String) = (null) maxspeed (String) = (null) ref (String) = (null) railway (String) = (null) width (String) = (null) other_tags (String) = (null) OGRFeature(lines):4000402 osm_id (String) = 4000402 name (String) = (null) highway (String) = unclassified waterway (String) = (null) aerialway (String) = (null) barrier (String) = (null) man_made (String) = (null) oneway (String) = (null) bridge (String) = (null) tunnel (String) = (null) maxspeed (String) = (null) ref (String) = (null) railway (String) = (null) width (String) = (null) other_tags (String) = (null) OGRFeature(lines):4000405 osm_id (String) = 4000405 name (String) = Post Mill Close highway (String) = residential waterway (String) = (null) aerialway (String) = (null) barrier (String) = (null) man_made (String) = (null) oneway (String) = (null) bridge (String) = (null) tunnel (String) = (null) maxspeed (String) = (null) ref (String) = (null) railway (String) = (null) width (String) = (null) other_tags (String) = (null) OGRFeature(lines):4000406 osm_id (String) = 4000406 name (String) = Ashmere Grove highway (String) = residential waterway (String) = (null) aerialway (String) = (null) barrier (String) = (null) man_made (String) = (null) oneway (String) = (null) [...] I had to add the last config option because ogrinfo told me so ;) 2016-02-22 8:14 GMT+01:00 Frank Broniewski <[email protected]>: > Mh, maybe I should have a look at my data. I downloaded a europe extract > from geofabrik and used osmconvert and osmupdate to cut out a piece from > europe and to update it. I am still sick, influenza caught me, but maybe in > the afternoon I find some time to check wether there is something missing > from my selfmade extract. > > 2016-02-21 8:02 GMT+01:00 Andre Joost <[email protected]>: > >> Am 20.02.2016 um 16:18 schrieb Even Rouault: >> >>> 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 >>> >> >> >> Based on that, I get a shapefile of the route with >> >> ogr2ogr -overwrite route-export.shp map-export.osm -where "osm_id = >> '2827792'" -progress --config OSM_USE_CUSTOM_INDEXING NO -skipfailures >> >> HTH, >> André Joost >> >> >> _______________________________________________ >> gdal-dev mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/gdal-dev >> > > > > -- > Waldhölzbacher Str. 51 > 66679 Losheim am See > 06872 922 1051 > 0177 30 21 791 > > [Ich bin auch bei XING und LinkedIn zu finden] > -- Waldhölzbacher Str. 51 66679 Losheim am See 06872 922 1051 0177 30 21 791 [Ich bin auch bei XING und LinkedIn zu finden]
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
