[gdal-dev] Does ogrtindex start counting layers from zero?
even.rouault at mines-paris.org
Fri Jan 31 10:34:31 PST 2014
Le vendredi 31 janvier 2014 14:04:58, Jukka Rahkonen a écrit :
> Ogrtindex has an option -lnum x http://www.gdal.org/ogrtindex.html
> I fear that layer numbers are count in a computer geeky way by starting
> from zero and for creating a tileindex for point layer I should give the
> parameter as -lnum 0 and not -lnum 1 as it is listed by ogrinfo.
Yes I confirm the numbering starts at 0. Would be nice to be explicitely
> C:\data>ogrinfo berlin.sqlite
> INFO: Open of `berlin.sqlite'
> using driver `SQLite' successful.
> 1: points (Point)
> 2: lines (Line String)
> 3: polygons (Polygon)
> 4: multilinestrings (Multi Line String)
> 5: multipolygons (Multi Polygon)
> 6: other_relations (Geometry Collection)
> By the way, I can see that this gets written for Mapserver into the
> tileindex file:
> LOCATION (String) = C:\data\berlin.sqlite,4
> I would enjoy if I could save some key clicks and typos and do also with
> GDAL "ogrinfo berlin.sqlite,4"
Well, the connexion name is a black box for OGR utilities, and some of them
already take spaces in the ir connection string.
> -Jukka Rahkonen-
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
Geospatial professional services
More information about the gdal-dev