[GRASS-user] how to control label size (v.lable)?

Hello everyone,

I am using a v.label command (+ d.labels command) to present county
names in the states' maps. I have tried two slightly different
commands.

1)v.label map=XXX type=centroid column=YYY labels=ZZZ fontsize=5 color=red
2)v.label map=XXX type=centroid column=YYY labels=ZZZ size=5 color=red

Both commands resulted in presenting same label size. Also, I run
this commands for Alabama, Louisiana, Mississippi, New Mexico, Arizona
and Oregon. Somehow, the label size in Alabama and Louisiana are
same, but bigger than the labels in the rest of states. Also, I
tested different fontsize and size (i.e. 20), but the result stayed
same way that the label size is bigger in Alabama and Louisiana than
other rest of the states.

Does anyone know how to control the label size? I downloaded all
shapefiles from the U.S. Census Bureau site
(http://www.census.gov/geo/www/cob/bdy_files.html or
http://www.census.gov/geo/www/cob/co2000.html).

Thank you,

Rei Hayashi
rei.grass@gmail.com

On 03/07/08 20:33, Rei Hayashi wrote:

Hello everyone,

I am using a v.label command (+ d.labels command) to present county
names in the states' maps. I have tried two slightly different
commands.

1)v.label map=XXX type=centroid column=YYY labels=ZZZ fontsize=5 color=red
2)v.label map=XXX type=centroid column=YYY labels=ZZZ size=5 color=red

Both commands resulted in presenting same label size. Also, I run
this commands for Alabama, Louisiana, Mississippi, New Mexico, Arizona
and Oregon. Somehow, the label size in Alabama and Louisiana are
same, but bigger than the labels in the rest of states. Also, I
tested different fontsize and size (i.e. 20), but the result stayed
same way that the label size is bigger in Alabama and Louisiana than
other rest of the states.

size is in map units, so the actual display size will depend on scale (i.e. level of zoom), so displaying smaller states (with zoom to selected map) should give you bigger labels.

fontsize is in points and thus should not change with zoom level.

Moritz

Rei Hayashi:

I am using a v.label command (+ d.labels command) to
present county names in the states' maps. I have tried
two slightly different commands.

1)v.label map=XXX type=centroid column=YYY labels=ZZZ fontsize=5 color=red
2)v.label map=XXX type=centroid column=YYY labels=ZZZ size=5 color=red

Both commands resulted in presenting same label size.

-what version of GRASS?
-displayed with d.labels, gis.m GUI, or ps.map?
-does the $MAPSET/paint/labels/$NAME text file look ok?
-spearfish or NC dataset example?
-"works for me"

Also, I run this commands for Alabama, Louisiana, Mississippi, New
Mexico, Arizona and Oregon. Somehow, the label size in Alabama and
Louisiana are same, but bigger than the labels in the rest of states.
Also, I tested different fontsize and size (i.e. 20), but the
result stayed same way that the label size is bigger in Alabama and
Louisiana than other rest of the states.

size= option is scale dependent, change the zoom, the text size changes.
fontsize= is fixed.

Hamish

Hi Moritz and Hamish,

Thank you for your quick response. Now, I think I got an idea of
v.label and d.labels in the GRASS. Now, I am struggling to export the
map with appropriate size of labels in TIFF or PNG format.

Rei Hayashi

On Fri, Jul 4, 2008 at 8:32 AM, Hamish <hamish_b@yahoo.com> wrote:

Rei Hayashi:

I am using a v.label command (+ d.labels command) to
present county names in the states' maps. I have tried
two slightly different commands.

1)v.label map=XXX type=centroid column=YYY labels=ZZZ fontsize=5 color=red
2)v.label map=XXX type=centroid column=YYY labels=ZZZ size=5 color=red

Both commands resulted in presenting same label size.

-what version of GRASS?
-displayed with d.labels, gis.m GUI, or ps.map?
-does the $MAPSET/paint/labels/$NAME text file look ok?
-spearfish or NC dataset example?
-"works for me"

Also, I run this commands for Alabama, Louisiana, Mississippi, New
Mexico, Arizona and Oregon. Somehow, the label size in Alabama and
Louisiana are same, but bigger than the labels in the rest of states.
Also, I tested different fontsize and size (i.e. 20), but the
result stayed same way that the label size is bigger in Alabama and
Louisiana than other rest of the states.

size= option is scale dependent, change the zoom, the text size changes.
fontsize= is fixed.

Hamish