[gdal-dev] Fw: GDAL for windows

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Sun Sep 1 23:37:31 PDT 2013


 <nicholas.g.lawrence <at> tmr.qld.gov.au> writes:

> 
> 
> Hello all,I would like to translate an OSM .pbf file to MapInfo .tab, I am
running Windows XPI downloaded release-1310-gdal-1-10-mapserver-6-2.zip from
http://www.gisinternals.com/sdk/ and unzipped the files to "C:\Program
Files\GDAL"I then ran SDKShell.bat to get a command line; and thenran the
command "ogr2ogr -f "MapInfo File" "C:\DATA\2013\08\osm2\australia.tab"
"C:\DATA\2013\08\osm2\australia-latest.osm.pbf""An empty mapinfo table
australia.tab was created, and the error message was;"Layer lines not found,
and CreateLayer not supported by driver."Kind regards,
> Nick Lawrence

Hi,

GDAL finds up to five layers from OSM files as you can read from
http://www.gdal.org/ogr/drv_osm.html.
The error message suggests that GDAL MapInfo driver cannot create several
layers into tab file but by reading http://www.gdal.org/ogr/drv_mitab.html I
am not sure if it is so. However, my guess is that GDAL converts first OSM
points layer into tab format but quits because it cannot continue with the
lines layer. The solution is to make conversion layer by layer like
"ogr2ogr -f "MapInfo File" "C:\DATA\2013\08\osm2\australia_lines.tab"
"C:\DATA\2013\08\osm2\australia-latest.osm.pbf lines"

-Jukka Rahkonen-



More information about the gdal-dev mailing list