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 ?
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 ?
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.
You can't distunguish between raster and vector by name, they can have
the same name. ???
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 for your responses
In the same way, is it a method to know for a vector map if it is a point, a line or a polygon vector ?
because in a script I’ve to do an overlay but this command doesn’t work for point vector (so I’ve to use v.select) but before to use one of these commands I’ve to know the type of geometry of my vector
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 for your responses
In the same way, is it a method to know for a vector map if it is a
point, a
line or a polygon vector ?
because in a script I've to do an overlay but this command doesn't work for
point vector (so I've to use v.select) but before to use one of these
commands I've to know the type of geometry of my vector
In GRASS you can have different geometries stored in one vector map.
One way to see whether there are points in your vector map is to parse
the v.info output - in GRASS 6.3 CVS Jachym has added a -t flag for a
nicely parsable, terse output.