Hi,

On 01/04/15 22:52, Jukka Rahkonen wrote:
Sean Gillies <sean  <at> mapbox.com> writes:
>
>>
>>
>> Hi all,
>> I'm not entirely clear on the signatures of the new functions. Are we
> considering new functions that would be called with a single string argument
> like this?
>>
>>   ogr2ogr('-of "ESRI Shapefile" example.shp example.json')
>>
>> From my perspective this would be sort of a disaster. Instead of using
> features of our programming languages to handle function arguments (good),
> we'd be formatting strings (bad). It's much better to have this:
>>
>>   ogr2ogr('example.json', 'example.shp', of='ESRI Shapefile')
>
>
> Hi,
>
> My point of view as a relatively experienced user of GDAL utilities is that > I hardly remember to change the order of input/output when using ogr2ogr and
> gdal_translate and I have always been wondering why they do not use
> parameters like -i and -o so that the order would not matter.

I agree: this is a niggle that grows with time! Or at least standardise so you
have:

 command <options> src_datasource_name... dst_datasource_name

This thinking has a connection  with the command line section in
> http://trac.osgeo.org/gdal/wiki/GDAL20Changes

Looking on the bright side, at least with the new proposal it will be fairly
trivial to create your own command line interface to GDAL; perhaps not portable but satisfying! I've always favoured a git style approach along the following
lines...

  gdal <global-options> subcommand <options> <args>

Best regards,

Homme

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


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

Reply via email to