[gdal-dev] reading VPF format NGA DNCs
Martin Chapman
chapmanm at pixia.com
Thu Jan 14 16:44:00 EST 2010
Chris,
Here is what the ogr docs say. Look in the directory structure of the VPF
to see what layer names and family names you have:
gltp:[//<hostname>]/<driver_name>/<dataset_name>:<layer_name>:<family>
Where <layer_name> is the OGDI Layer name, and <family> is one of: "line",
"area", "point", or "text".
Usage example 'ogrinfo':
ogrinfo gltp:/vrf/usr4/mpp1/v0eur/vmaplv0/eurnasia 'watrcrsl at hydro(*)_line'
In the dataset name 'gltp:/vrf/usr4/mpp1/v0eur/vmaplv0/eurnasia' the
gltp:/vrf part is not really in the filesystem, but has to be added. The VPF
data was at /usr4/mpp1/v0eur/. The 'eurnasia' directory should be at the
same level as the dht. and lat. files. The 'hydro' reference is a
subdirectory of 'eurnasia/' where watrcrsl.* is found.
Usage examples VMAP0 to SHAPE conversion with 'ogr2ogr':
ogr2ogr watrcrsl.shp gltp:/vrf/usr4/mpp1/v0eur/vmaplv0/eurnasia
'watrcrsl at hydro(*)_line'
ogr2ogr polbnda.shp gltp:/vrf/usr4/mpp1/v0eur/vmaplv0/eurnasia
'polbnda at bnd(*)_area'
An OGR SQL query against a VMAP dataset. Again, note the careful quoting of
the layer name.
ogrinfo -ro gltp:/vrf/usr4/mpp1/v0noa/vmaplv0/noamer \
-sql 'select * from "polbndl at bnd(*)_line" where use=26'
Martin
-----Original Message-----
From: Christopher Barker [mailto:Chris.Barker at noaa.gov]
Sent: Thursday, January 14, 2010 2:22 PM
To: chapmanm at pixia.com
Cc: 'gdal-dev'
Subject: Re: [gdal-dev] reading VPF format NGA DNCs
Martin Chapman wrote:
> Do you have the OGDI driver built and configured into GDAL?
well, orginfo tells me:
FAILURE:
Unable to open datasource `gltp:/vrf/a1611110' with the following drivers.
-> ESRI Shapefile
-> MapInfo File
-> UK .NTF
-> SDTS
-> TIGER
-> S57
-> DGN
-> VRT
-> REC
-> Memory
-> BNA
-> CSV
-> GML
-> GPX
-> KML
-> GeoJSON
-> Interlis 1
-> Interlis 2
-> GMT
-> SQLite
-> DODS
-> ODBC
-> PGeo
-> OGDI
-> PostgreSQL
-> MySQL
-> XPlane
-> AVCBin
-> AVCE00
-> Geoconcept
OGDI is in there -- so I assume that it's built in -- how else can I tell?
thanks,
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the gdal-dev
mailing list