Hello Michael and others, IMHO -z is the right way to go. It would be nice to open ticket for such change and list affected modules to remember this idea. My proposal: add -z == layer=0 to 6.x and replace layer=0 with -z in 7.x
Maris. 2009/3/8, Michael Barton <michael.bar...@asu.edu>: > > > One issue that has already come up in another module (v.surf.bspline) > is using layer=0 to select the z values for interpolation. This is a > shortcut that is not really correct. Vector layers must be in the > range of 1-n. There is no layer 0. This is a problem for the > autogenerated GUI dialogs. All layer arguments must be treated the > same way. In most cases, layer=0 is meaningless and generates an > error. However, in a few modules, layer=0 is a shortcut for using the > z value for interpolation. We cannot have it both ways in an > autogenerated GUI. > > My suggestion is to add a -z flag to indicate that the z-coordinates > will be used. This would override any other data used for z- > coordinate. Then layer arguments could remain at 1-n for all modules. > > Michael > _______________________________________________ > grass-dev mailing list > grass-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev