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

Holger Wilken wilken at ohb-system.de
Tue Aug 8 05:23:24 EDT 2006


Re: [Gdal-dev] ogrinfo / ogr2ogr and vmap under windows?hi dan, hi
christian,

thanks for your help, both tips (script/batchfiles and double quotes) were
very useful for me.

holger
  -----Ursprungliche Nachricht-----
  Von: C.Strobl at dlr.de [mailto:C.Strobl at dlr.de]
  Gesendet: Dienstag, 8. August 2006 10:52
  An: wilken at ohb-system.de
  Cc: gdal-dev at lists.maptools.org
  Betreff: AW: [Gdal-dev] ogrinfo / ogr2ogr and vmap under windows?



  hello holger,
  i thinks its a windows matter, for windows you have to use double quotes.
here are a few examples i have noted for myself

  #OGR and vpf (datapath: D:/user/Data/NGA/v0eur/vmaplv0/eurnasia,
"gltp:/vrf/" has to be added)
  ogrinfo -ro gltp:/vrf/D:/user/Data/NGA/v0eur/vmaplv0/eurnasia
  #important:: double quotes "" at "watrcrsl at hydro(*)_line"
  ogrinfo -so -al gltp:/vrf/D:/user/Data/NGA/v0eur/vmaplv0/eurnasia
"watrcrsl at hydro(*)_line"
  ogr2ogr watrcrsl.shp gltp:/vrf/D:/user/Data/NGA/v0eur/vmaplv0/eurnasia
"watrcrsl at hydro(*)_line"

  greetings from munich
  christian


----------------------------------------------------------------------------
--
  Von: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] Im Auftrag von Putler, Dan
  Gesendet: Montag, 7. August 2006 17:07
  An: wilken at ohb-system.de
  Cc: gdal-dev at lists.maptools.org
  Betreff: Re: [Gdal-dev] ogrinfo / ogr2ogr and vmap under windows?


  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/20060808/44a54544/attachment.html


More information about the Gdal-dev mailing list