[gdal-dev] ogr2ogr openstreetmap

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Wed Sep 4 11:52:54 PDT 2019


Hi,

I did not use osmconf.ini in any particular way. As you can read from the driver documentation https://gdal.org/drivers/vector/osm.html OSM driver reads the configuration from the osmconf.ini file. Because I did not edit my osmconf.ini and obviously you did not edit yours then we have been using the same default configuration. Your failure is caused by some other reason. Adding --debug on into your ogr2ogr command may print some useful information.

-Jukka-

-----Alkuperäinen viesti-----
Lähettäjä: paul.malm at lfv.se <paul.malm at lfv.se> 
Lähetetty: keskiviikko 4. syyskuuta 2019 18.52
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>
Kopio: gdal-dev at lists.osgeo.org
Aihe: Re: [gdal-dev] ogr2ogr openstreetmap

Sorry for asking, but how did you use the inifile?
Kind regards,
Paul

> 4 sep. 2019 kl. 16:22 skrev jratike80 <jukka.rahkonen at maanmittauslaitos.fi>:
> 
> I can't tell what goes wrong but your command works for me and new 
> tables have this much features:
> 
> points "809161"
> lines "1517114"
> multilinestrings "9812"
> multipolygons "3317706"
> other_relations "12587"
> 
> I used the default osmconf.ini file and Swedish data from last night.
> 
> -Jukka Rahkonen-
> 
> 
> 
> paul.malm wrote
>> Hi,
>> When I try to convert an open street map directory to a postgis data 
>> base I only get one layer(other_relations) with some lines and some 
>> points, far from everything.  There are no error meassages.
>> ogr2ogr-f "PostgreSQL" PG:"host= 127.0.0.1 user=postgres dbname=test 
>> password=postgres" c:\temp\sweden-latest.osm.pbf
>> 
>> Kind regards,
>> Paul
> 
> 
> 
> 
> 
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list