[Freegis-list] vmap0 and ogr2ogr
arthur@sirius-cybernetics.info
arthur at sirius-cybernetics.info
Wed Apr 27 13:13:49 CEST 2005
Dear Silke,
i succeeded to convert the dataset using the FWTools binaries for windows.
so i got the data now and it's not so urgent anymore (but still a
mystery).
on debian
ogrinfo gltp:/vrf/absolute/path/to/v0eur/vmaplv0/eurnasia
'polbnda at bnd(*)_area'
tells me:
ERROR 4: OGDI Driver doesn't support update.
Had to open data source read-only.
INFO: Open of `gltp:/vrf/absolute/path/to/v0eur/vmaplv0/eurnasia'
using driver `OGDI' successful.
Layer name: polbnda at bnd(*)_area
Geometry: Polygon
Feature Count: 0
Layer SRS WKT:
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.257222101,
AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AXIS["Lat",NORTH],
AXIS["Long",EAST],
AUTHORITY["EPSG","4269"]]
id: Integer (10.0)
f_code: String (5.0)
nam: String (64.0)
na2: String (2.0)
na3: String (1.0)
tile_id: Integer (5.0)
fac_id: Integer (10.0)
opening the data "read-only" is ok i guess, but "Feature Count: 0"
isn't.
on windows ogrinfo tells me "Feature Count: 5847" and starts listing
them.
the ogr version is 1.2.5 for both FWTools packages.
anyway
thanks very much for your help
arthur
On 4/27/2005, "Silke Reimer" <Silke.Reimer at intevation.de> wrote:
>Dear Arthur,
>
>On Fri, Apr 22, 2005 at 06:39:16PM -0000, arthur at sirius-cybernetics.info wrote:
>>
>> dear list
>>
>> i have problem converting the VMAP0/Eurnasia dataset into shapefiles
>> using the ogr2ogr utility program.
>>
>> i know that a problem with identical symptoms already has been solved on
>> this mailing list (see
>> http://www.intevation.de/pipermail/freegis-list/2003-June/001411.html )
>> but the "tricks" mentioned there seem not to work in my case.
>>
>> the ogr utility programs (ogrinfo / ogr2ogr) i use came with the
>> FWTools-linux-0.9.6 package and include OGDI support.
>>
>> ogr2ogr works without complaining, but the resulting shapefiles are
>> almost empty.
>>
>> ogrinfo tells me that all layers except 4 contain 0 features.
>> the 4 that contain features are:
>>
>> feature count: 1424 - libref at libref(*)_line
>> feature count: 28 - tileref at tileref(*)_area
>> feature count: 107 - libreft at libref(*)_text
>> feature count: 28 - tilereft at tileref(*)_text
>>
>> I tried with removing all trailing dots of the vpf files and i do not
>> access the dataset via nfs, but nothing worked so far.
>>
>> i use commands like this:
>>
>> ogr2ogr polbnda.shp gltp:/vrf/absolute/path/to/v0eur/vmaplv0/eurnasia \
>> 'polbnda at bnd(*)_area'
>
>I tried exactly same (only replacing /absolute/path/to/v0eur/ by /cdrom/ ;-)
>and it works great. I used an ogr2ogr version 1.2.1 compiled with
>ogdi-support.
>
>What happens if you type
>ogrinfo gltp:/vrf/absolute/path/to/v0eur/vmaplv0/eurnasia 'polbnda at bnd(*)_area'
>
>It should give some general information about the layer and
>afterwards some information about each feature.
>
>If this doesn't give a clou you should perhaps ask on gdal-dev again
>since there are normally more people who are competent with the
>usage of ogr.
>
>Many greetings,
>
> Silke
>
>--
>Intevation GmbH
>
>Georgstrasse 4 49074 Osnabrück, Germany
>http://intevation.de http://intevation.de/~silke
>FreeGIS.org http://freegis.org/
More information about the Freegis-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)