Opened 14 years ago

Closed 14 years ago

#1133 closed enhancement (fixed)

ps.map doesn’t accept more than 10 ‘labels’ instructions

Reported by: clerici Owned by: hamish
Priority: minor Milestone: 6.4.2
Component: Ps.map Version: svn-develbranch6
Keywords: labels Cc: grass-dev@…
CPU: All Platform: Linux

Description

To check with Spearfish data:

v.label labels=archlab map=archsites column=str1

ps.map in=label.txt out=archlab.ps

label.txt (with 11 labels instructions):

labels archlab
end
labels archlab
end
labels archlab
end
labels archlab
end
labels archlab
end
labels archlab
end
labels archlab
end
labels archlab
end
labels archlab
end
labels archlab
end
labels archlab
end

The error message is:

ERROR: archlab in esercizi : no more label files allowed

With less than 11 labels instructions the ps map is successfully created.

Greetings

  1. Clerici

Change History (4)

comment:1 by hamish, 14 years ago

Cc: grass-dev@… added
Component: defaultps.map
CPU: UnspecifiedAll
Keywords: labels added
Milestone: 6.4.06.4.1
Owner: changed from grass-dev@… to hamish
Priority: normalminor
Type: defectenhancement
Version: 6.4.0 RCssvn-develbranch6

see

source:grass/trunk/ps/ps.map/r_labels.c

and MAXLABELS in

source:grass/trunk/ps/ps.map/labels.h

just edit labels.h to however big you want it, and recompile. (how many do you want?)

since the "labels" files are just text, to work around it you can just go into $MAPSET/paint/labels/ and do

cat * > all_labels

to combine them all into a single labels file. (they will remember thier own font sizes, colors, etc)

comment:2 by hamish, 14 years ago

max number of label instructions bumped to 50 in devbr6 and trunk. (r43608,9)

comment:3 by hamish, 14 years ago

Milestone: 6.4.16.4.2

now backported to 6.4svn as well. closing bug.

Hamish

comment:4 by hamish, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.