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

Eric G. Miller egm2 at jps.net
Fri Feb 21 03:30:54 EST 2003


On Fri, Feb 21, 2003 at 04:39:33AM +0000, Glynn Clements wrote:
> 
> 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()).

I don't see that as such a problem.  Maybe it should just exit an do
nothing in that case.  With OP's mention of vectors, I assumed an older
version of d.vect was being used where there once were bugs regarding
setting the drawing command list so d.zoom wouldn't know about previous
d.vect commands...

-- 
echo ">gra.fcw at 2ztr< eryyvZ .T pveR" | rot13 | reverse




More information about the grass-user mailing list