[GRASS-dev] [GRASS GIS] #1133: ps.map doesn’t accept more than 10 ‘labels’ instructions

#1133: ps.map doesn’t accept more than 10 ‘labels’ instructions
-------------------------+--------------------------------------------------
Reporter: clerici | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: default | Version: 6.4.0 RCs
Keywords: | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
To check with Spearfish data:[[BR]]
    v.label labels=archlab map=archsites column=str1[[BR]]

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

label.txt (with 11 labels instructions):[[BR]]

    labels archlab[[BR]]
    end[[BR]]
    labels archlab[[BR]]
    end[[BR]]
    labels archlab[[BR]]
    end[[BR]]
    labels archlab[[BR]]
    end[[BR]]
    labels archlab[[BR]]
    end[[BR]]
    labels archlab[[BR]]
    end[[BR]]
    labels archlab[[BR]]
    end[[BR]]
    labels archlab[[BR]]
    end[[BR]]
    labels archlab[[BR]]
    end[[BR]]
    labels archlab[[BR]]
    end[[BR]]
    labels archlab[[BR]]
    end[[BR]]

The error message is:[[BR]]

    ERROR: archlab in esercizi : no more label files allowed[[BR]]

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

Greetings[[BR]]

A. Clerici

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1133&gt;
GRASS GIS <http://grass.osgeo.org>

#1133: ps.map doesn’t accept more than 10 ‘labels’ instructions
-------------------------+--------------------------------------------------
Reporter: clerici | Owner: hamish
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.1
Component: ps.map | Version: svn-develbranch6
Keywords: labels | Platform: Linux
      Cpu: All |
-------------------------+--------------------------------------------------
Changes (by hamish):

* cc: grass-dev@… (added)
  * component: default => ps.map
  * priority: normal => minor
  * owner: grass-dev@… => hamish
  * version: 6.4.0 RCs => svn-develbranch6
  * milestone: 6.4.0 => 6.4.1
  * keywords: => labels
  * type: defect => enhancement
  * cpu: Unspecified => All

Comment:

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)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1133#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1133: ps.map doesn’t accept more than 10 ‘labels’ instructions
-------------------------+--------------------------------------------------
Reporter: clerici | Owner: hamish
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.1
Component: Ps.map | Version: svn-develbranch6
Keywords: labels | Platform: Linux
      Cpu: All |
-------------------------+--------------------------------------------------

Comment(by hamish):

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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1133#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1133: ps.map doesn’t accept more than 10 ‘labels’ instructions
-------------------------+--------------------------------------------------
Reporter: clerici | Owner: hamish
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.2
Component: Ps.map | Version: svn-develbranch6
Keywords: labels | Platform: Linux
      Cpu: All |
-------------------------+--------------------------------------------------
Changes (by hamish):

  * milestone: 6.4.1 => 6.4.2

Comment:

now backported to 6.4svn as well. closing bug.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1133#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1133: ps.map doesn’t accept more than 10 ‘labels’ instructions
--------------------------+-------------------------------------------------
  Reporter: clerici | Owner: hamish
      Type: enhancement | Status: closed
  Priority: minor | Milestone: 6.4.2
Component: Ps.map | Version: svn-develbranch6
Resolution: fixed | Keywords: labels
  Platform: Linux | Cpu: All
--------------------------+-------------------------------------------------
Changes (by hamish):

  * status: new => closed
  * resolution: => fixed

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1133#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>