Martin,

Although I take your point about the interface not affecting ogr2ogr, surely 
the potential speed boost is worth extending to this utility too - or would 
that be a separate ticket?  I for one would welcome improving the performance 
of ogr2ogr using the approach you have suggested - when I launch the current 
trunk development version of ogr2ogr from VBScript it gets stuck in an infinite 
loop trying to process a 5x5km vector data chunk.

This issue aside, won't the fact that field names are constant but field 
numbers are not in the OS MasterMap vector data present problems for those that 
wish to programmatically parse the OS GML using your interface?


Regards,


Jez


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Martin Dobias
Sent: Wednesday 21 July 2010 10:44
To: Jez Walters
Cc: [email protected]
Subject: Re: [gdal-dev] RFC 29: OGR Set Desired Fields

Hi Jez

On Wed, Jul 21, 2010 at 10:43 AM, Jez Walters <[email protected]> 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 behaviour 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
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev


The information transmitted is intended only for the person
or entity to which it is addressed and may contain
confidential and/or privileged material. If you are not the
addressee, any disclosure, reproduction, copying,
distribution, or other dissemination or use of this
communication is strictly prohibited. If you have received
this transmission in error please notify the sender
immediately and then delete this email.

Any representations or commitments expressed in this email
are subject to contract.

This message has been scanned for viruses and dangerous
content. However, it is essential that the recipient also
checks this message using commercially available mail
scanning and anti-virus software. IPL Information Processing
Limited accepts no liability for any loss or damage resulting
from any virus or other dangerous content in this message.

IPL Information Processing Limited is registered in England
and Wales under company registration number 1418818.
Registration took place at Cardiff on 10 May 1979. IPL
Information Processing Limited's registered office and
normal place of business is Eveleigh House, Grove Street,
Bath, BA1 5LR, United Kingdom. IPL is also registered for
Value Added Tax (VAT) under registration number GB 601 2931 83.

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to