I understand v.label and v.label.sa, but I don't understand how to use the
former within a ps.map input file. I have:
labels proj_pnt.lab
font Times-Roman
end
but ps.map tells me it cannot find that file. The file proj_pnt.lab contains
the v.label command specifying map, attribute column, and x/y offsets.
What have I missed here?
Rich
Hamish
January 5, 2010, 2:20pm
2
Rich wrote:
I understand v.label and v.label.sa, but I don't understand how
to use the former within a ps.map input file. I have:
labels proj_pnt.lab
font Times-Roman
end
but ps.map tells me it cannot find that file. The file proj_pnt.lab
contains the v.label command specifying map, attribute column, and
x/y offsets.
What have I missed here?
I don't know. does your label file show up with "g.list labels" ?
this works for me:
#spearfish
v.label lab=arch.lbl map=archsites column=str1 fontsize=8 ref=lower
g.region rast=elevation.dem
ps.map out=test.ps << EOF
raster elevation.dem
vpoints archsites
end
labels rush.lbl
end
labels arch.lbl
font Times-Roman
end
end
EOF
I notice that v.label.sa has a little bug in that it does not like
PostScript font names, its parser only expects to take installed TTFs.
Hamish
Hamish
January 5, 2010, 2:23pm
3
Rich:
The file proj_pnt.lab contains the v.label command specifying map,
attribute column, and x/y offsets.
as in the shell command to make the label file? ps.map expects the processed
file, not the command to the program that creates it. (among other things
this allows you to tweak the generated label file by hand.
ie the name you passed to v.label's label= option.
Hamish