[GRASS-user] problem in v.drape command
Dylan Beaudette
dylan.beaudette at gmail.com
Mon Jul 9 16:24:41 EDT 2007
Jerry and others,
The v.drape module was created by suggestion of Radim, and implemented by an
amateur (me). This bug is one of the last remaining issues in the code.
Although it is mentioned in the manual page, it would be good to do a simple
test of
if vector %in% current region or vector %in% raster bbox
then run
else error and exit
I am not sure how to implement this check, but if I get some feedback I will
submit a patch!
cheers,
dylan
On Monday 09 July 2007 07:18, Jerry Nelson wrote:
> Is this a place where the error message could be made clearer? For example,
> could it add possible sources of the problem such as the one Markus
> indicated, or are there too many possibilities for ways to do it wrong?
>
> Jerry
>
> -----Original Message-----
> From: grassuser-bounces at grass.itc.it
> [mailto:grassuser-bounces at grass.itc.it] On Behalf Of Markus Neteler
> Sent: Monday, July 09, 2007 8:43 AM
> To: grassuser at grass.itc.it
> Subject: Re: [GRASS-user] problem in v.drape command
>
> temiz wrote on 07/09/2007 07:26 PM:
> > hello
> >
> > when I entered this command, I received following error message:
> >
> > ~~~~~~~~~~~~
> > GRASS 6.3.cvs (bartin):~ > v.drape in=jeo3 out=jeo3d2 rast=eldene
> > type=face --overwrite
> > defaulting to nearest neighbor sampling
> > WARNING: The vector 'jeo3d2' already exists and will be overwritten.
> > WARNING: [eldene in orkun] - read request for row -1 is outside region
> > ERROR: problem reading raster cell file
> > [Raster MASK present]
> > ~~~~~~~~~~~~~
> >
> > can you tell me what the problem may be ?
>
> The problem is that the vector map is bigger than the raster map.
> You need to use
>
> g.region rast=dem
> v.in.region box
> v.overlay ... with box and your vector map to restrict the vector map to
> the DEM size
> v.drape ... with the reduced vector map.
>
> Markus
>
> ------------------
> ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
> ITC -> since 1 March 2007 Fondazione Bruno Kessler
> ------------------
>
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser
>
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser
More information about the grass-user
mailing list