[GRASS-dev] [GRASS GIS] #1939: Add line style option to vareas ps.map

GRASS GIS trac at osgeo.org
Sun Apr 21 23:22:20 PDT 2013


#1939: Add line style option to vareas ps.map
-------------------------+--------------------------------------------------
 Reporter:  voncasec     |       Owner:  grass-dev@…              
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Ps.map       |     Version:  svn-trunk                
 Keywords:  vareas       |    Platform:  All                      
      Cpu:  All          |  
-------------------------+--------------------------------------------------
Changes (by hamish):

  * version:  svn-releasebranch64 => svn-trunk
  * milestone:  6.4.3 => 7.0.0


Comment:

 the idea of adding boundary style option to vareas sounds reasonable
 enough.

 I'm not very much in favor of overridding the vector legend's
 representation, better I think to first fix any core problems so that
 would never be thought of, instead of adding another work-around for a
 program defect.

 note that using "color none" is slightly different than "color white" in
 your example:
 {{{
 vareas lake
   color white
 }}}

 In the case of 'color none' the dashed lines appear on top instead of
 below the area fill, and you might consider 'width 0.5' with it.


 also fyi a while ago I added some named shortcuts to the vlines 'style'
 instruction as the 01 thing is a bit weird to get used to: `solid, dashed,
 dotted, dashdotted` words auto-replace into a predefined 01 pattern.


 example reformed for the NC sample dataset:
 {{{
 g.region n=248500 s=242000 w=643500 e=649500 res=10

 ps.map in=- out=test.ps << EOF
 vlines lakes
  type boundary
  color red
  #style 1111110000
  style dashed
  label Lakes
  lpos 1
  end

 vareas lakes
  color none
  width 0.5
  fcolor blue
  label Lakes
  lpos 1
  end

 vlegend
   end

 end
 EOF
 }}}


 Hamish

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



More information about the grass-dev mailing list