Dear all
I am quite new to GRASS, only use it few times.
I need to label my points, so i tried to use v.label
i have this file which i imported with :
v.in.ascii --o in=/stations_LU_AB out=stations_LU_ab
Could you give me some lights in what I am doing wrong?
I think I know the reason-
the quick answer is try to use the v.label fontsize= option.
set it to 10 or 12 or so.
the long answer is that v.label has both size= and fontsize=
options. The fontsize= works as you might expect, but the size=
option (the default) is measured in map units. So in your case
it would make the labels sized as 100 meters on the map. If you
zoom way out that becomes very tiny and the label disappears.
(see also the d.labels min and max options)
This exists so you can have things like town names sized to the
population, so when you zoom in you see the small towns but when
you zoom out to the country scale you only see the big cities,
and labels do not overlap when you change the zoom.
Also it is for precision when designing cartography with ps.map.
But if you set fontsize=10 or so, the labels will be the same
size regardless of the map scale.
(I had this same problem last week)
Hamish
ps- see also 'd.vect disp=attr attrcol=column_name'
I see my raster map.. when i display it first...
if not.. i see nothing..
Raster?
Please try this first
First: v.info -c
What's the name of the column that contains the labels?
If there are no column names, then rerun the ascii import as follows:
v.in.ascii --o in=/stations_LU_AB out=stations_LU_ab columns="x double precision, y double precision, label varchar(8)"
(I'm assuming the columns are X first then Y)
Recheck v.info -c to be sure you've got the label column.
Now do:
d.erase
g.region -p vect=stations_LU_ab
d.vect stations_LU_ab disp=shape,attr attrcol=label
What do you get? If this works, then redo the v.label command and retry the d.vect and d.labels command as before.