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

Glynn Clements glynn at gclements.plus.com
Mon Mar 26 15:53:15 EDT 2007


Moritz Lennert 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}

> {where=cat=1}

Note that you should be able to run such scripts using tclsh.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list