[GRASS-dev] Re: [GRASS-user] interactive multiple selection

Hamish hamish_b at yahoo.com
Sat Jan 24 20:11:15 EST 2009


Glynn wrote:
> Are you talking about making the module handle the query, or extending
> Vect_open_old() to accept a map+query so that the module doesn't need
> to do anything?

vaguely thinking about ways to avoid having to custom code into each
individual module. So: extending Vect_open_old() to accept a map+query.
But that is perhaps a bit of an ugly mixing of libraries/serious task
so could well be more trouble than it is worth.

on the other hand, hand crafting each module ensures that only the modules
where it is useful will get done. ie not complicating modules where where=
is not relevant with unneeded junk in an across the board addition.

also, you probably want to have layer= before the where= query, which
further complicates the input= usage... yuck.


Glynn:
> Also slightly related, the interface used by g.copy and
> g.rename is broken. They both use opt->gisprompt =
> "old,...", although the destination doesn't exist.
> 
> In the absence of a real type system for options, the
> interface needs to change from:
>
> 	g.copy rast=oldmap,newmap
> 
> to e.g.:
> 
> 	g.copy type=rast from=oldmap to=newmap
> 
> so that from= and to= can be typed correctly.

makes sense. (->trunk)


Hamish



      



More information about the grass-dev mailing list