[Freegis-list] vmap0 and ogr2ogr

Markus Neteler neteler at itc.it
Wed Apr 27 15:31:59 CEST 2005


On Wed, Apr 27, 2005 at 11:40:42AM +0200, Silke Reimer wrote:
...
> I used an ogr2ogr version 1.2.1 compiled with
> ogdi-support.

[ This might be a bit old ]

arthur wrote:
> opening the data "read-only" is ok i guess, but "Feature Count: 0"
> isn't.

To solve this, add '-ro' (read only) to the parameter/flags list:

VMAP0DIR=grass0/warmerdam/v0eur/vmaplv0/eurnasia

ogrinfo -ro -summary gltp:/vrf/${VMAP0DIR} 'polbnda at bnd(*)_area'
INFO: Open of `gltp:/vrf/grass0/warmerdam/v0eur/vmaplv0/eurnasia'
using driver `OGDI' successful.

Layer name: polbnda at bnd(*)_area
Geometry: Polygon
Feature Count: 5847
Extent: (-31.265751, 30.000000) - (179.999900, 81.857361)
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)

Now feature count is 5847.

I assume that GDAL/OGR >= 1.2.5 works ok with a
recent OGDI version.

Markus




More information about the Freegis-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)