[GRASSLIST:3805] v.to.rast

hello, i need a picture of my digital elevation model with a few
meteorological stations for a power point presentation. i thought i convert my
vector data to raster and merge the two rasters together.

but when i use v.to.rast i get only one station out of 30!?

the table of the vector looks like this:
cat | x | y | z | name
-----+---------------+----------------+------+---------------------
   1 | 194197.23537 | 5191251.584895 | 1906 | Vent
   2 | 226928.392144 | 5236860.658687 | 579 | Innsbruck-Flughafen
   3 | 202576.650269 | 5192186.387956 | 1938 | Obergurgl
   4 | 265000.467163 | 5225174.19567 | 643 | Mayrhofen
  ...

GRASS 5.7.0:~/diss/grassdata > v.to.rast in=meteostation out=meteostation
use=...

no matter which use option i take,i get only one point, which appears always
at the same coordinates also independent of the cat i choose.

using use=attr i get an error message:
GRASS 5.7.0:~/diss/grassdata > v.to.rast in=meteostation out=meteostation
use=attr col=name
Loading vector information ...ERROR: Column type not supported by
db_select_to_array()

using 'z' instead of 'name' works, but i get also just one point.

by the way, my point is very small, is there a possibility to make it larger?

does anyone have an idea how to get my items to the power point presentation?

thank you, sabine

Since I changed to Suse 9.0 , nviz (GRASS 5.0.3 from precompiled binaries) stops during the startup process with the following message:

Adding panels from /usr/local/grass5/etc/nviz2.2/scripts
Nv_(panels)
toplevel made

child killed: segmentation violation
    while executing
"exec /usr/local/grass5/etc/nviz2.2/NVWISH2.2 -f /usr/local/grass5/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdout"
    ("eval" body line 1)
    invoked from within
"eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f $env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdout"
    invoked from within
"if {$argv == ""} {
#no arguments
eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f $env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdo..."
    (file "/usr/local/grass5/bin/nviz" line 16)

How can I solve the problem?

Best regards, Helmer

--- Sabine Grabner <csab7771@uibk.ac.at> wrote: >

hello, i need a picture of my digital elevation
model with a few
meteorological stations for a power point
presentation. i thought i convert my
vector data to raster and merge the two rasters
together.

but when i use v.to.rast i get only one station out
of 30!?

the table of the vector looks like this:
cat | x | y | z |
name

-----+---------------+----------------+------+---------------------

   1 | 194197.23537 | 5191251.584895 | 1906 | Vent
   2 | 226928.392144 | 5236860.658687 | 579 |
Innsbruck-Flughafen
   3 | 202576.650269 | 5192186.387956 | 1938 |
Obergurgl
   4 | 265000.467163 | 5225174.19567 | 643 |
Mayrhofen
  ...

GRASS 5.7.0:~/diss/grassdata > v.to.rast
in=meteostation out=meteostation
use=...

no matter which use option i take,i get only one
point, which appears always
at the same coordinates also independent of the cat
i choose.

using use=attr i get an error message:
GRASS 5.7.0:~/diss/grassdata > v.to.rast
in=meteostation out=meteostation
use=attr col=name
Loading vector information ...ERROR: Column type not
supported by
db_select_to_array()

using 'z' instead of 'name' works, but i get also
just one point.

by the way, my point is very small, is there a
possibility to make it larger?

does anyone have an idea how to get my items to the
power point presentation?

thank you, sabine

Why don't you try to print all with the PNG driver (if
you would like a raster) or even better with ps.map?
In ps.map you have several options for controling the
graphical attributes of your points.

Miha Staut

___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com

> hello, i need a picture of my digital elevation
> model with a few
> meteorological stations for a power point
> presentation.

For a DEM, be sure to try NVIZ.

> i thought i convert my
> vector data to raster and merge the two rasters
> together.

I don't think that's needed.

> but when i use v.to.rast i get only one station out
> of 30!?

v.to.rast only works on features with cats/attributes.
Perhaps the labeling isn't right. Maybe 'v.category option=add'?
See the "notes" section of the help page:

http://grass.ibiblio.org/grass57/manuals/html57_user/v.to.rast.html

> by the way, my point is very small, is there a
> possibility to make it larger?

why not just to d.vect. The version in 5.7 lets you set icon= type,
size/color, and border color and is very nice.

> does anyone have an idea how to get my items to the
> power point presentation?

Why don't you try to print all with the PNG driver (if
you would like a raster)

Try d.out.png.

or even better with ps.map?
In ps.map you have several options for controling the
graphical attributes of your points.

ps.map makes excellent output for a printed hardcopy, but for a
presentation I think using a sscreenshot of a display monitor works best
(or PNG driver). Try to get the monitor the size of the final image so
it doesn't get streched & uglified.

If you must use a PostScript plot in a presentation, the best conversion
I've found is to load it in the GIMP at ~ 144 dpi with strong anti-
aliasing on both the graphics and the text. Otherwise it comes out
grainy.

Hamish

Hamish wrote:

If you must use a PostScript plot in a presentation, the best conversion
I've found is to load it in the GIMP at ~ 144 dpi with strong anti-
aliasing on both the graphics and the text. Otherwise it comes out
grainy.

Actually, it's better to use oversampling, i.e. rasterise the
PostScript at 300dpi or higher, then scale down to the desired size
using a program which provides an anti-aliased rescaling function.
E.g.:

gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=ppmraw -r300 -sOutputFile=- map.ps \
  | pnmscale 0.25 > map.ppm

Ghostscript's anti-aliasing options (-sDEVICE=x11alpha or
-dGraphicsAlphaBits= and -dTextAlphaBits=) are a fudge, and can result
in artifacts.

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