[gdal-dev] RFC 29: OGR Set Desired Fields

Martin Dobias wonder.sk at gmail.com
Wed Jul 21 05:44:22 EDT 2010


Hi Jaz

On Wed, Jul 21, 2010 at 10:43 AM, Jez Walters <Jez.Walters at ipl.com> wrote:
> Martin,
>
>
> When I convert Ordnance Survey MasterMap GML to ESRI Shapefiles using ogr2ogr, I'm getting different field numbers for the same field name in different GML chunk files.  Apologies if I have the wrong end of the stick, but wouldn't your proposed interface therefore require me to invoke ogr2ogr differently for each different GML chunk file, in order to accommodate the different field ordering?

The proposed API addition doesn't affect the behavior of existing
applications such as ogr2ogr.

> Assuming I'm right, wouldn't it be more useable for the interface to use field names rather than numbers?

IMHO for developers it's easier to work with indexes of fields rather
than with their names.

Regards
Martin


More information about the gdal-dev mailing list