[mapserver-users] different stroke color for lines?

lars.schylberg at blixtmail.se lars.schylberg at blixtmail.se
Tue Sep 6 01:43:40 PDT 2016


Hi,

Just add ANGLE 180 in the STYLE block and the arrows will change direction.
You could experiement with the ANCHORPOINT in the symbol also to get different look and feel for the placement of the arrows.

Have fun.

Lars S.
-------------------------------------------------
            STYLE  ## Red arrows
                COLOR 102 0 0
                SYMBOL "arrow-start"
                SIZE 10.0
                INITIALGAP 15
                GAP -50
                OFFSET -10 -99
                ANGLE 180
            END
        
            STYLE  ## Green arrows
                COLOR 0 104 0
                SYMBOL "arrow-start"
                SIZE 10.0
                INITIALGAP 15
                GAP -50
                OFFSET 10 -99
                ANGLE 180
            END # STYLE


-----Originalmeddelande-----
Från: "Ahmet Temiz" <ahmettemiz88 at gmail.com>
Till: "Lars Schylberg" <lars.schylberg at blixtmail.se>
Kopia: mapserver-users <mapserver-users at lists.osgeo.org>
Datum: 2016-09-06 09:37
Ämne: Re: [mapserver-users] different stroke color for lines?

Thank you Lars,


It was great. I tried it looks OK.
One thing more:
I need  upper (red) arrow indicating right and lower indicating left.
I changed offsets and anchors but arrow directions did not change.


How can I reverse the arrows' directions?


regards

On Mon, Sep 5, 2016 at 9:45 PM, <lars.schylberg at blixtmail.se> wrote:

Ahmet,

Here is an example: just run it with: shp2img -m arrow-on-line.map -o arrows-on-line.png
It shows both outline and what You asked for the other day with arrows.

Have fun

Lars S.

========================================
MAP # arrows-on-line.map
    IMAGETYPE png
    EXTENT 0 0 100 100
    SIZE 250 280
    IMAGECOLOR 225 225 225

    SYMBOL
        NAME "arrow-start"
        TYPE vector
        FILLED true
        POINTS
            0 0.4
            3 0.4
            3 0
            5 0.8
            3 1.6
            3 1.2
            0 1.2
            0 0.4
        END # POINTS
        ANCHORPOINT 0 0.5
    END
   
    LAYER  # Line
        STATUS DEFAULT
        TYPE LINE
        FEATURE
            POINTS
                20 80
                40 85
                60 85
                70 80
            END # Points
        END
        CLASS  ## Outline stroke
            STYLE
                COLOR 7 7 7
                WIDTH 4.0
                LINECAP ROUND
                LINEJOIN ROUND
            END
            STYLE  ## Inner stroke
                COLOR 255 255 255
                WIDTH 2.5
                LINECAP BUTT
                LINEJOIN ROUND
            END
           
            STYLE  ## Red arrows
                COLOR 102 0 0
                SYMBOL "arrow-start"
                SIZE 10.0
                INITIALGAP 15
                GAP -50
                OFFSET -10 -99
            END
       
            STYLE  ## Green arrows
                COLOR 0 104 0
                SYMBOL "arrow-start"
                SIZE 10.0
                INITIALGAP 15
                GAP -50
                OFFSET 10 -99
            END # STYLE
        END # CLASS
    END # LAYER
END # MAP



-----Originalmeddelande-----
Från: "Ahmet Temiz" <ahmettemiz88 at gmail.com>
Till: mapserver-users <mapserver-users at lists.osgeo.org>
Datum: 2016-09-05 19:50
Ämne: [mapserver-users] different stroke color for lines?


Hi,


If Outlinecolor has no effect on lines, which function can be used to Give different stroke color for lines?


Regards

--


Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem Dairesi Başkanlığı-CBS Grubu


________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency



_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


--

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--


Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu


________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency


-- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160906/43957926/attachment-0001.html>


More information about the mapserver-users mailing list