<!DOCTYPE html><html><head><title></title><style type="text/css">#fastmail-quoted p.fastmail-quoted-MsoNormal,#fastmail-quoted  li.fastmail-quoted-MsoNormal,#fastmail-quoted  div.fastmail-quoted-MsoNormal{margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:12pt;font-family:"Times New Roman", serif;color:black;}
#fastmail-quoted a:link,#fastmail-quoted  span.fastmail-quoted-MsoHyperlink{color:rgb(5, 99, 193);text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:currentcolor;}
#fastmail-quoted a:visited,#fastmail-quoted  span.fastmail-quoted-MsoHyperlinkFollowed{color:rgb(149, 79, 114);text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:currentcolor;}
#fastmail-quoted p{margin-right:0in;margin-left:0in;font-size:12pt;font-family:"Times New Roman", serif;color:black;}
#fastmail-quoted p.fastmail-quoted-MsoListParagraph,#fastmail-quoted  li.fastmail-quoted-MsoListParagraph,#fastmail-quoted  div.fastmail-quoted-MsoListParagraph{margin-top:0in;margin-right:0in;margin-left:0.5in;margin-bottom:0.0001pt;font-size:12pt;font-family:"Times New Roman", serif;color:black;}
#fastmail-quoted span.fastmail-quoted-gt-baf-term-text{}
#fastmail-quoted span.fastmail-quoted-gt-baf-cell{}
#fastmail-quoted span.fastmail-quoted-EmailStyle20{font-family:"Calibri", sans-serif;color:rgb(31, 73, 125);}
#fastmail-quoted .fastmail-quoted-MsoChpDefault{font-size:10pt;}
#fastmail-quoted div.fastmail-quoted-WordSection1{}
#fastmail-quoted ol{margin-bottom:0in;}
#fastmail-quoted ul{margin-bottom:0in;}

p.MsoNormal,p.MsoNoSpacing{margin:0}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Marek,<br></div><div><br></div><div>I had a similar question last year - <a href="http://osgeo-org.1560.x6.nabble.com/Curves-in-MapServer-td5377180.html">http://osgeo-org.1560.x6.nabble.com/Curves-in-MapServer-td5377180.html</a><br></div><div><br></div><div>You can add/draw CIRCULARSTRING geometries to MapServer using OGR - see the sample rainbow image at <a href="https://github.com/geographika/mappyfile-colors">https://github.com/geographika/mappyfile-colors</a><br></div><div><br></div><div>The sample map file is: <a href="https://raw.githubusercontent.com/geographika/mappyfile-colors/master/example.map">https://raw.githubusercontent.com/geographika/mappyfile-colors/master/example.map</a><br></div><div>This loads the following curved arcs from <a href="https://github.com/geographika/mappyfile-colors/blob/master/curves.csv">https://github.com/geographika/mappyfile-colors/blob/master/curves.csv</a><br></div><div><br></div><div>CONNECTIONTYPE OGR has to be used rather than using inline features as this approach defaults to using GEOS which doesn't support curves, whereas as forcing OGR does. <br></div><div><br></div><div>Seth<br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:http://geographika.co.uk<br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Wed, Mar 6, 2019, at 12:31 AM, Lime, Steve D (MNIT) wrote:<br></div><blockquote id="fastmail-quoted" type="cite"><div class="fastmail-quoted-WordSection1"><p class="fastmail-quoted-MsoNormal"><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size">Not within MapServer directly, at least not at first glance. There are circle layers but there’s no way to limit drawing to just a specific arc on that circle.
 Here are some other ideas:</span></span></span><br></p><p class="fastmail-quoted-MsoNormal"><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size"> </span></span></span><br></p><p class="fastmail-quoted-MsoListParagraph" style="text-indent:-0.25in;"><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size"><span style="">1)<span style="font-family:"Times New Roman"" class="font"><span style="font-size:7pt" class="size">      </span></span></span></span></span></span><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size">Perhaps it could be done externally in OGR or PostGIS and then rendered in MapServer as a polygon or a line…</span></span></span><br></p><p class="fastmail-quoted-MsoListParagraph" style="text-indent:-0.25in;"><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size"><span style="">2)<span style="font-family:"Times New Roman"" class="font"><span style="font-size:7pt" class="size">      </span></span></span></span></span></span><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size">You could also take a look at using javascript geotransformations: <a href="https://mapserver.org/mapfile/geomtransform.html#javascript-transformation"> https://mapserver.org/mapfile/geomtransform.html#javascript-transformation</a> Support was added a while back and isn’t widely used but this is the sort of thing it was added for. In theory you should be able to compute the arc yourself and return it for rendering.
 So you pass in the 2 lines and then return the arc as a line shape or a pie slice as a polygon shape. (maybe this helps… https://stackoverflow.com/questions/45009327/draw-arc-between-two-lines-i-need-to-calculate-points)</span></span></span><br></p><p class="fastmail-quoted-MsoNormal"><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size"> </span></span></span><br></p><p class="fastmail-quoted-MsoNormal"><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size">If option 2 works this would be a great thing to archive – a library of geomtranforms. I might tinker with this tonight… ;-)</span></span></span><br></p><p class="fastmail-quoted-MsoNormal"><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size"> </span></span></span><br></p><p class="fastmail-quoted-MsoNormal"><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size">--Steve</span></span></span><br></p><p class="fastmail-quoted-MsoNormal"><span style="color:rgb(31, 73, 125)" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size"> </span></span></span><br></p><div><div style="border-right-color:currentcolor;border-right-style:none;border-right-width:medium;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-top-color:rgb(225, 225, 225);border-top-style:solid;border-top-width:1pt;padding-top:3pt;padding-right:0in;padding-bottom:0in;padding-left:0in;"><p class="fastmail-quoted-MsoNormal"><b><span style="color:windowtext" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size">From:</span></span></span></b><span style="color:windowtext" class="colour"><span style="font-family:"Calibri", sans-serif" class="font"><span style="font-size:11pt" class="size"> mapserver-users [mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Marek Bak<br> <b>Sent:</b> Tuesday, March 05, 2019 1:27 PM<br> <b>To:</b> mapserver-users@lists.osgeo.org<br> <b>Subject:</b> [mapserver-users] Arc symbol.</span></span></span></p></div></div><p class="fastmail-quoted-MsoNormal"> <br></p><p>Hello All,<br></p><p>Is it possible to create an arc symbol im mapserver? For example I have two lines constructed over some <span class="fastmail-quoted-gt-baf-cell">angle (ex. 30 degree) and I want to draw an arc between them.</span><br></p><p><span class="fastmail-quoted-gt-baf-cell">Regards,</span><br></p><p><span class="fastmail-quoted-gt-baf-cell">Marek</span><br></p><p> <br></p></div><div>_______________________________________________<br></div><div>mapserver-users mailing list<br></div><div>mapserver-users@lists.osgeo.org<br></div><div>https://lists.osgeo.org/mailman/listinfo/mapserver-users<br></div></blockquote><div><br></div></body></html>