[Gdal-dev] ogrinfo / ogr2ogr and vmap under windows?

Holger Wilken wilken at ohb-system.de
Fri Aug 4 04:10:02 EDT 2006


Hi,

my problem:
I want to convert VMAP layer to shapefiles under Windows,
but neither the conversion nor layer info with ogrinfo works.

What I have tried so far:

I use FWtools 1.0.5 under Windows 2k (CommandLine)
My VMAP layers are located at D:\data\vmap0\v0eur\vmaplv0\eurnasia,
(downloaded directly from geoengine.nima.mil),
ogrinfo.exe and ogr2ogr.exe are in C:\Programme\FWtools\bin

I start ogrinfo from C:\Programme\FWtools\bin, for example:
ogrinfo.exe -ro gltp:/vrf/d:/data/vmap0/v0eur/vmaplv0/eurnasia
'oceansea at bnd(*)_area'
which returns only
INFO: Open of `gltp:/vrf/d:/data/vmap0/v0eur/vmaplv0/eurnasia'
      using driver `OGDI' successful.
but no further information is displayed. Syntax seems to be correct though.

next try - start with debug info:
ogrinfo.exe --debug on -ro gltp:/vrf/d:/data/vmap0/v0eur/vmaplv0/eurnasia
'oceansea at bnd(*)_area'
gets me a little more output:
KML: Attempt to open: gltp:/vrf/d:/data/vmap0/v0eur/vmaplv0/eurnasia
OGR: OGROpen(gltp:/vrf/d:/data/vmap0/v0eur/vmaplv0/eurnasia/00D37018)
succeeded
as OGDI.
INFO: Open of `gltp:/vrf/d:/data/vmap0/v0eur/vmaplv0/eurnasia'
      using driver `OGDI' successful.
OGR: GetLayerCount() = 59

Shouldn't there be more info?
I don't know where the 00D37018 at the end of the gltp path comes from, it's
not in the vmap directory structure.

The ogr2ogr call to create a Shapefile out of the VMAP Layer:
ogr2ogr.exe oceansea.shp gltp:/vrf/d:/data/vmap0/v0eur/vmaplv0/eurnasia
'oceansea at bnd(*)_area'
does not give any errors/warnings, but no output shapefile either.

I have Administrator rights, so the directory (C:\Programme\FWtools\bin) is
not read-only.

Here as well, add the debug option:
ogr2ogr.exe --debug on oceansea.shp
gltp:/vrf/d:/data/vmap0/v0eur/vmaplv0/eurnasia 'oceansea at bnd(*)_area'
gives me:
KML: Attempt to open: gltp:/vrf/d:/data/vmap0/v0eur/vmaplv0/eurnasia
OGR: OGROpen(gltp:/vrf/d:/data/vmap0/v0eur/vmaplv0/eurnasia/00D37028)
succeeded
as OGDI.
More output, but still no Shapefile.

According to the OGR 1.1.6 change list, the OGDI driver should work properly
with drive letters under windows. All other samples I have found were using
unix style paths.

Do other people have the same problem?
Please give me a hint what I am missing or if it's a bug.

thanks in advance

Holger





More information about the Gdal-dev mailing list