<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Hi,<br>
<br>
On 01/04/15 22:52, Jukka Rahkonen wrote:<br>
<span style="white-space: pre;">> Sean Gillies <sean
<at> mapbox.com> writes:<br>
><br>
>><br>
>><br>
>> Hi all,<br>
>> I'm not entirely clear on the signatures of the new
functions. Are we<br>
> considering new functions that would be called with a single
string argument<br>
> like this?<br>
>><br>
>> ogr2ogr('-of "ESRI Shapefile" example.shp
example.json')<br>
>><br>
>> From my perspective this would be sort of a disaster.
Instead of using<br>
> features of our programming languages to handle function
arguments (good),<br>
> we'd be formatting strings (bad). It's much better to have
this:<br>
>><br>
>> ogr2ogr('example.json', 'example.shp', of='ESRI
Shapefile')<br>
><br>
><br>
> Hi,<br>
><br>
> My point of view as a relatively experienced user of GDAL
utilities is that<br>
> I hardly remember to change the order of input/output when
using ogr2ogr and<br>
> gdal_translate and I have always been wondering why they do
not use<br>
> parameters like -i and -o so that the order would not matter.</span><br>
<br>
I agree: this is a niggle that grows with time! Or at least
standardise so you<br>
have:<br>
<br>
command <options> src_datasource_name... dst_datasource_name<br>
<br>
<span style="white-space: pre;">> This thinking has a connection
with the command line section in <br>
> <a class="moz-txt-link-freetext" href="http://trac.osgeo.org/gdal/wiki/GDAL20Changes">http://trac.osgeo.org/gdal/wiki/GDAL20Changes</a></span><br>
<br>
Looking on the bright side, at least with the new proposal it will
be fairly<br>
trivial to create your own command line interface to GDAL; perhaps
not portable<br>
but satisfying! I've always favoured a git style approach along the
following<br>
lines...<br>
<br>
gdal <global-options> subcommand <options>
<args><br>
<br>
Best regards,<br>
<br>
Homme<br>
<br>
<span style="white-space: pre;">> -Jukka Rahkonen-<br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
> <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></span><br>
<br>
<br>
</body>
</html>