[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] [mapserver-dev] MapServer tutorial - symbology
From:       "Rahkonen Jukka (MML)" <jukka.rahkonen () maanmittauslaitos ! fi>
Date:       2016-10-25 10:55:31
Message-ID: 1dadf1edcee24f249e45393c5b35c6b3 () C119S212VM022 ! msvyvi ! vaha ! local
[Download RAW message or body]

[Attachment #2 (text/plain)]

Hi,

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.

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:

"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."

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".

-Jukka Rahkonen-

Lähettäjä: mapserver-dev [mailto:mapserver-dev-bounces@lists.osgeo.org] Puolesta \
Seth G Lähetetty: 25. lokakuuta 2016 13:20
Vastaanottaja: mapserver-dev@lists.osgeo.org
Aihe: [mapserver-dev] MapServer tutorial - symbology


Hi all,

I have updated the second quick start tutorial on SYMBOLS and symbolizing data. A \
draft page is available at: \
https://geographika.github.io/tutorial/quickstart/symbolizing.html

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.

1. Are there any performance or other benefits of VECTOR symbols over IMAGE/SVG? \
(Although I think SVG is currently not available in ms4w - \
http://www.ms4w.com/trac/ticket/3 ). The manual entering of coordinate details seems \
pretty difficult compared to using/making SVGs.

2. At the top of the http://mapserver.org/mapfile/style.html#style 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?

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.

A final question - should I post these emails to the dev or users MapServers lists?

Regards,

Seth
--
web: http://geographika.co.uk
twitter: @geographika


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
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
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;
	color:black;}
span.Shkpostityyli18
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi,
 <o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">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&#43;&#43; and so on.<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">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:<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">"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."<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">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 \
&nbsp;we could have one more: SYMBOL "NONE".<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">-Jukka \
Rahkonen-<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></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:&quot;Calibri&quot;,sans-serif;color:windowtext">Lähettäjä:</span></b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,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<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p>Hi all,<o:p></o:p></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">https://geographika.github.io/tutorial/quickstart/symbolizing.html</a><o:p></o:p></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. <o:p></o:p></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">http://www.ms4w.com/trac/ticket/3</a> ). The \
manual entering of coordinate details seems pretty difficult compared to using/making \
SVGs. <o:p></o:p></p>
<p>2. At the top of the <a \
href="http://mapserver.org/mapfile/style.html#style">http://mapserver.org/mapfile/style.html#style</a> \
page there is the sentence &quot;The final intent is to have named styles (Not yet \
supported) that will be re-usable through the mapfile.&quot;  I presume this means \
there was a plan to use STYLES similar to a SYMBOLSET? Are there still any plans to \
do this?<o:p></o:p></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 &quot;RANK_MAX&quot; - 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.&nbsp; You can set the size using an attribute e.g. &quot;SIZE \
[MYHEIGHT]&quot; 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. \
<o:p></o:p></p> <p>A final question - should I post these emails to the dev or users \
MapServers lists?<o:p></o:p></p> <p>Regards,<o:p></o:p></p>
<p>Seth<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:#888888">--<br>
web:</span><a href="http://geographika.co.uk"><span style="color:#888888"> </span>
http://geographika.co.uk</a><br>
<span style="color:#888888">twitter: @geographika</span><o:p></o:p></p>
</div>
</div>
</body>
</html>


[Attachment #4 (unknown)]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic