[gdal-dev] ogr_dispatch.py: dispatch features into layers according to the value of some fields or the geometry type

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Sun Jun 2 06:21:40 PDT 2013


Even Rouault <even.rouault <at> mines-paris.org> writes:

> 
> Hi,
> 
> http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/ogr_dispatch.py is a 
> new utility that can be used typically to dispatch features of datasource
that 
> mix in a single layer features of several geometry types into separate target 
> layers, to match a typical constraint enforced in most GIS formats (one 
> geometry type per layer). You can also use it to dispatch features according 
> to the value of a field.

...

>  -prefix_with_out_lyr_name: prefix the target layer name with the source
layer 

This parameter name feels like it contains "without" written in a wrong way.
How bout renaming it to -prexix_with_output_layer_name? It does pay 5 extra
charecters which may feel bad from the developer point of view but the name
is already rather long.

-Jukka Rahkonen-



More information about the gdal-dev mailing list