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

Putler, Dan Dan.Putler at sauder.ubc.ca
Mon Aug 7 11:06:37 EDT 2006


Hi Holger,

The following link could be of use to you. It describes how to load  
VMAP0 layers into PostGIS, but an intermediate step in the process is  
to convert the layers into shapefiles using ogr2ogr. A Windows batch  
script is provided as an attachment that does the VMAP0 to shapefile  
transformation.

The link is:

http://docs.codehaus.org/display/GEOSDOC/Loading+VMAP0+data

Dan

On 4-Aug-06, at 1:10 AM, Holger Wilken wrote:

> 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
>
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060807/1c3e5c10/attachment.html


More information about the Gdal-dev mailing list