[GRASS-user] Re: test raster or vector
Luigi Ponti
lponti at infinito.it
Wed Oct 25 18:58:46 EDT 2006
Dear Mick,
Maybe you could check if your mapName is included in either
g.list type=rast
or
g.list type=vect
output list and then do stuff as a consequence.
Sorry for not putting it in shell code,
Luigi
* *
--
Message: 5
Date: Wed, 25 Oct 2006 15:32:58 +0200
From: " Micha?l Rabotin " <michaelrabotin at gmail.com>
Subject: [GRASS-user] test raster or vector
To: grassuser at grass.itc.it
Message-ID:
<5cbd12c70610250632l1567e66fue2605a9e09200f8b at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Everybody
a basic question for a shell script in GRASS 6.0.1
In a part of my script, I ask the user to give the name of a map (a vector
or a raster)
and I want to test if the user give a raster or a vector.
Do you know how I can proceed to do this test ?
Thanks a lot
Mick
More information about the grass-user
mailing list