<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
p
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black}
span.Shkpostityyli18
{font-family:"Calibri",sans-serif;
color:#1F497D}
.MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:70.85pt 2.0cm 70.85pt 2.0cm}
-->
</style><style type="text/css" id="owaParaStyle"></style>
</head>
<body bgcolor="white" lang="FI" link="blue" vlink="purple" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>It's by no means a bad idea - I've thought that a standard set of named colors could also make sense (e.g. COLOR RED). At least for symbols they could be implemented (I think) as a constant hash where the key is the symbol name and the value is a mapfile
snippet (e.g. "SYMBOL NAME 'circle' POINTS 1 1 END FILLED TRUE END"). When a mapfile is loaded that hash could be used to load symbols or I suppose they could be only loaded if referenced.</div>
<div><br>
</div>
<div>Might warrant a little RFC.</div>
<div><br>
</div>
<div>Steve</div>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF938401" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> mapserver-dev [mapserver-dev-bounces@lists.osgeo.org] on behalf of Rahkonen Jukka (MML) [jukka.rahkonen@maanmittauslaitos.fi]<br>
<b>Sent:</b> Tuesday, October 25, 2016 5:55 AM<br>
<b>To:</b> geographika@gmail.com; mapserver-dev@lists.osgeo.org<br>
<b>Cc:</b> Mapserver-Users (mapserver-users@lists.osgeo.org)<br>
<b>Subject:</b> Re: [mapserver-dev] MapServer tutorial - symbology<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Hi,
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">I think that this kind of discussion belongs to mapserver-users (cc:ed). I hope that developers read also the users mailing list, and users may
have more to say about what they consider hard with styles. Also, Mapserver users learn from reading mails like this, and that there are mails on the list at all proves that the project is not dead. Developers can discuss on the dev list or in GitHub about
how to implement the “size by expression” with C++ and so on.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">One thing that always feels odd to me is that why we do not have any default style for points but we must especially define some symbol in the
mapfile. I have been thinking that perhaps we could have internal, hard coded symbols at least for these 6 which are defined in the SLD standard:</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">“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”. Renderings of these marks may be made solid or hollow depending on Fill and Stroke elements.
These elements are discussed in Subclauses 11.2.2 and 11.1.3, respectively.”</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">If user gives no symbol in the mapfile for points it would mean “square”. If symbol with the same name than WellKnownName is defined in mapfile
or in symbolset it would override the standard symbol. If there is a special need for non-visible points we could have one more: SYMBOL “NONE”.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">-Jukka Rahkonen-</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext">Lähettäjä:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext"> mapserver-dev [mailto:mapserver-dev-bounces@lists.osgeo.org]
<b>Puolesta </b>Seth G<br>
<b>Lähetetty:</b> 25. lokakuuta 2016 13:20<br>
<b>Vastaanottaja:</b> mapserver-dev@lists.osgeo.org<br>
<b>Aihe:</b> [mapserver-dev] MapServer tutorial - symbology</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p>Hi all,</p>
<p>I have updated the second quick start tutorial on SYMBOLS and symbolizing data. A draft page is available at:
<a href="https://geographika.github.io/tutorial/quickstart/symbolizing.html" target="_blank">
https://geographika.github.io/tutorial/quickstart/symbolizing.html</a></p>
<p>I ran through this with around 6 people, and a few questions came up. If anyone can provide details that would be very helpful. Also comments/improvements on the tutorials are very welcome.
</p>
<p>1. Are there any performance or other benefits of VECTOR symbols over IMAGE/SVG? (Although I think SVG is currently not available in ms4w -
<a href="http://www.ms4w.com/trac/ticket/3" target="_blank">http://www.ms4w.com/trac/ticket/3</a> ). The manual entering of coordinate details seems pretty difficult compared to using/making SVGs.
</p>
<p>2. At the top of the <a href="http://mapserver.org/mapfile/style.html#style" target="_blank">
http://mapserver.org/mapfile/style.html#style</a> page there is the sentence "The final intent is to have named styles (Not yet supported) that will be re-usable through the mapfile." I presume this means there was a plan to use STYLES similar to a SYMBOLSET?
Are there still any plans to do this?</p>
<p>3. I was looking to create circle symbols of different sizes based on an attribute, using one of the datasets from Natural Earth. The cities with large populations has a smaller "RANK_MAX" - so the size needs to be inverse to an attribute. There does not
appear to be any easy way to do this without modifying the data. You can set the size using an attribute e.g. "SIZE [MYHEIGHT]" but is there a good reason why a MapServer expression couldn't be used here? I can add as a feature request to GitHub if it could
be a nice addition. </p>
<p>A final question - should I post these emails to the dev or users MapServers lists?</p>
<p>Regards,</p>
<p>Seth</p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:#888888">--<br>
web:</span><a href="http://geographika.co.uk" target="_blank"><span style="color:#888888">
</span>http://geographika.co.uk</a><br>
<span style="color:#888888">twitter: @geographika</span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>