[GRASS-dev] [GRASS GIS] #3050: Set size in d.northarrow

GRASS GIS trac at osgeo.org
Thu Jun 2 04:04:53 PDT 2016

#3050: Set size in d.northarrow
  Reporter:  wenzeslaus  |      Owner:  grass-dev@…
      Type:              |     Status:  new
  enhancement            |
  Priority:  minor       |  Milestone:  7.3.0
 Component:  Display     |    Version:  svn-trunk
Resolution:              |   Keywords:  d.northarrow, cartography, gsoc2016
       CPU:              |   Platform:  Unspecified
  Unspecified            |

Comment (by lazaa):

 Replying to [ticket:3050 wenzeslaus]:
 > Size of the north arrow cannot be changed. All symbols are scaled to one
 common size, that's good, but this size should be further rescaled by a
 value of a `size` option.

 The size of symbol is manually tuned and for each symbol is quite
 different. I would add {{{size}}} option. If user doesn't use {{{size}}}
 manually tuned size will be used. But if user writes {{{size=25}}} for
 some symbols it will have increasing size effect and for others decreasing
 size effect. Is it OK? User would have to find right size for a symbol and
 after that if he changed mind and wanted use another symbol he would have
 to find the right size one more time.

     /* sizes manually tuned */
     switch (n_arrow_num[0]) {
     case '7':
         symbol_size = 23.;
     case '8':
     case '9':
         symbol_size = 17.;
     case 'b':
         symbol_size = 80.;
     case 'f':
         symbol_size = 100.;


Ticket URL: <https://trac.osgeo.org/grass/ticket/3050#comment:1>
GRASS GIS <https://grass.osgeo.org>

More information about the grass-dev mailing list