[GRASS-dev] Re: [GRASS-user] 'where' sql command in d.vect and others

Moritz Lennert mlennert at club.worldonline.be
Mon Mar 26 10:39:10 EDT 2007


On 26/03/07 16:12, Seb wrote:
> On Mon, 26 Mar 2007 10:55:34 +0200,
> Moritz Lennert <mlennert at club.worldonline.be> wrote:
> 
> [...]
> 
>> You can save the content of your map display by clicking on the little
>> floppy disk button (fourth from the right) and choosing the format you
>> want to save your map as. Is this what you are looking for ?
> 
> No, d.save creates a list of commands to recreate the display and I was
> wondering if the same exists in gis.m, but I guess there's not something
> like that.  Thanks.

Sorry, wasn't awake yet when answering that.

You can save all the content of the 'Output' window into a text file, 
which also includes all the display commands. You would then have to 
clean this to get rid of all the warnings and other messages, but it is 
usable, with the only problem being that the quoting in the command 
lines will be appropriate for the GUI, not for the CLI...

ex:
d.vect map=roads color=0:0:0 lcolor=0:0:0 fcolor=170:170:170 
display=shape type=point,line,boundary,area icon=basic/circle size=5 
layer=1 lsize=8 xref=left yref=center llayer=1 {where=cat=1}

Moritz
{where=cat=1}




More information about the grass-user mailing list