[GRASSLIST:5620] Re: d.zoom with vector map

Glynn Clements glynn.clements at virgin.net
Thu Feb 20 23:39:33 EST 2003


Eric G. Miller wrote:

> > d.zoom will not work unless a raster file name is provided. Why won't it
> > work with vector files only? This a is an inconvenience when importing
> > vector formats into a new location before converting them to raster.
> 
> Which version of GRASS?  AFAIK, there was such a problem and it was
> fixed.  The problem was actually with d.vect (or whatever).

No, it's a problem with d.zoom, still present in CVS HEAD:

    if(!rast && !vect && !site)
    {
	  rmap->required = YES;
	  just->answer = 1;
    }

The rast, vect and site variables correspond to whether any raster,
vector or site maps are currently displayed in the monitor (IOW, the
results of D_get_{cell,dig,site}_list()).

If no maps are displayed in the monitor, you have to specify the rast=
option, and -j is assumed.

IMO, most of d.zoom is bogus; it should just change the region then
re-run the command list. IOW, the interactive equivalent of
"g.region ... ; d.redraw".

Actually, it should probably just be subsumed into d.dm.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list