Arrow for a line

Jørn Vegard Røsnes jorn at SPACETEC.NO
Thu Mar 23 12:46:11 PST 2006


Hi,

I have a Postgis database with some lines and the heading of them (track of 
vessels).
How can I use ANGLEITEM to visualise the heading of the boats, preferrably 
with an arrow?

Here is an example I know doesn't work, maybe close to the solution....:

SYMBOL
     NAME 'dashed1'
     TYPE VECTOR
     POINTS 
       0 0 
       0 1
       -99 -99
       0 0
       0.3 0.3
       -99 -99 
       0 0
       -0.3 0.3
     END
   FILLED false
   END

 LAYER
      NAME "ais"
      CONNECTIONTYPE POSTGIS
      CONNECTION "user=postgres dbname=havo host=localhost port=5432"
      DATA "track from my_ship_track_view"
      TYPE line
       PROJECTION
         "init=epsg:4326"
       END
      LABELITEM "name"
      CLASSITEM "name"
      CLASS
        STYLE
           ANGLEITEM 'heading'
           SYMBOL "dashed1"
           SIZE 20
           COLOR 0 255 0
        END	
      END  
      
     CLASS
        DEBUG ON
        LABEL
          COLOR 132 31 31
          SHADOWCOLOR 218 218 218
          SHADOWSIZE 2 2
          TYPE TRUETYPE
          FONT arial
          SIZE 5
          ANTIALIAS TRUE
          POSITION CL
          PARTIALS true
          MINDISTANCE 10
          BUFFER 4
        END # end of label
        COLOR 224 64 0
      END     
   END


cheers 
Jorn



More information about the MapServer-users mailing list