[mapserver-users] How to fill in an area to the right of a line

Matt McClelland matt at wildwalks.com
Mon Jan 2 19:25:30 PST 2012


Happy new year

I am wanting to run a wide line down the coast of a map (to cover up some
less then perfect data underneath).

Basically I want to draw a thin blue line for the coast, and a thick (say
1000px) light blue line to the right to cover the ocean.

I have tried parallel lines (using Offset) but this gave a messy result.
So I have now tried using a symbol to fill the area to the right of the
line.  This works OK but I seem to be limited to the size.

Any other better idea on how to solve this issue??


this is the relevant section of the map file for the attached image.
    CLASS
        EXPRESSION 'coastline'
        STYLE
          COLOR 181 209 240
          SYMBOL "coastline"
          SIZE 500
          WIDTH 1
      #LINEJOIN miter
      #OFFSET 14 14
        END # STYLE
        STYLE
          COLOR 100 100 255
          WIDTH 2
        END # STYLE
    END

SYMBOL
  NAME "coastline"
  TYPE vector
  FILLED true
  POINTS
    0 500
    0 1000
    500 1000
    500 500
  END # POINTS
END # SYMBOL

Matt  :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120103/1356f1c0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dodge coast line.png
Type: image/png
Size: 53999 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120103/1356f1c0/attachment.png>


More information about the MapServer-users mailing list