Hi, Thank you. The SLD definitions in the standard are given in a literal form:
“The WellKnownName element gives the well-known name of the shape of the mark. Allowed values include at least “square”, “circle”, “triangle”, “star”, “cross”, and “x”, though map servers may draw a different symbol instead if they don't have a shape for all of these. The default WellKnownName is “square”.” Arrow is not on the list, I think that I copied it from the Geoserver docs. If arrow was on the list and if your symbol looks like an arrow then it would match the SLD definition for sure. -Jukka Rahkonen- Lähettäjä: TC Haddad <[email protected]> Lähetetty: keskiviikko 15. marraskuuta 2023 13.40 Vastaanottaja: Rahkonen Jukka <[email protected]> Kopio: Mapserver-Users ([email protected]) <[email protected]> Aihe: Re: [MapServer-users] Well-know SLD symbols Hi Jukka, Here are some that I have, hopefully they work for what you are looking for, I never compared to the SLD so I don't know if they match SLD definitions. The arrow for example may not. Tanya ---------------------fwd---------------------------- >> Symbol Name 'square' Type VECTOR FILLED TRUE Points 0 1 0 0 1 0 1 1 0 1 END END Symbol Name 'x' Type VECTOR Points 0 0 1 1 -99 -99 0 1 1 0 END END SYMBOL NAME "arrow" 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 # SYMBOL On Wed, Nov 15, 2023 at 2:33 AM Rahkonen Jukka via MapServer-users <[email protected]<mailto:[email protected]>> wrote: Hi, The SDL standard defines some well-known symbols: circle, square, triangle, arrow, cross, star, and x. Can I find somewhere the mapfile versions of these symbols? I found circle and star from GitHub https://github.com/MapServer/MapServer/blob/2b263e96d1b44fb74caf20581256c71419da802c/msautotest/sld/data/symbols.map.include#L11 and I also found code that probably generates the well-know symbols https://github.com/MapServer/MapServer/blob/2b263e96d1b44fb74caf20581256c71419da802c/src/mapogcsld.cpp#L48 but that code is rather useless for me. Triangle and cross can be found here https://mapserver.org/mapfile/symbology/examples.html If somebody has ready-made square, arrow, and x and is willing to share them I would be grateful. -Jukka Rahkonen- _______________________________________________ MapServer-users mailing list [email protected]<mailto:[email protected]> https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ MapServer-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
