<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div>Thanks all for the replies. <br></div>
<div><br></div>
<div>From my own searches today I found the following, which may be of interest to those who stumble on this thread in the future. <br></div>
<div>CIRCULARSTRINGs are supported in MapServer for PostGIS, as described in the docs at <a href="https://mapserver.org/input/vector/postgis.html#example-1-circularstring-in-mapserver">https://mapserver.org/input/vector/postgis.html#example-1-circularstring-in-mapserver</a><br></div>
<div><br></div>
<div>Looking at the code it creates lines from the curves, similar to the OGR function Even pointed out: <a href="https://github.com/mapserver/mapserver/blob/636394c7e205ec6bdb9d8c3beb8edb45a39722c0/mappostgis.c#L547">https://github.com/mapserver/mapserver/blob/636394c7e205ec6bdb9d8c3beb8edb45a39722c0/mappostgis.c#L547</a><br></div>
<div><br></div>
<div>As GEOS is a port of the JTS, then it seems as though curves will never be supported. From <a href="http://docs.geotools.org/stable/userguide/library/jts/geometry.html">http://docs.geotools.org/stable/userguide/library/jts/geometry.html</a> - <i>The JTS Topology Suite does not have any constructs to represent a “curve” or “circle” - GeoTools added that as an extension. The mathematics used by JTS is strictly limited to geometry made up of straight (i.e. linear) lines.The GeoTools curve implementations rely on using control points to define a curve, and converting it to a straight lines at the last possible moment.<br></i></div>
<div><br></div>
<div>I can add a note on this to the docs at <a href="https://mapserver.org/mapfile/feature.html">https://mapserver.org/mapfile/feature.html</a>. For WKT it states <i>"</i><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(62, 67, 73)"><span class="font" style="font-family:Arial, sans-serif"><span class="size" style="font-size:12.8px"><i>This feature is only supported if MapServer is built with OGR or GEOS support" - </i>is there any way of forcing the use of OGR rather than GEOS for curves? Is there such as thing as an OGR WKT layer?</span></span></span></span><br></div>
<div><br></div>
<div>Related RFC and implementation details at:</div>
<div><a href="https://www.mapserver.org/fr/development/rfc/ms-rfc-2.html">https://www.mapserver.org/fr/development/rfc/ms-rfc-2.html</a><br></div>
<div><a href="https://github.com/mapserver/mapserver/issues/1466">https://github.com/mapserver/mapserver/issues/1466</a><br></div>
<div><br></div>
<div>Regards,<br></div>
<div><br></div>
<div>Seth</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 Fri, Sep 7, 2018, at 4:30 PM, Basques, Bob (CI-StPaul) wrote:<br></div>
<blockquote type="cite"><div>All, <br></div>
<div><br></div>
<div><div>We moved to storing curves in Postgres/postgis as a way of distributing to those applications/clients that can consume curves. <br></div>
<div><br></div>
<div>The Postgres loading stuff has been somewhat manually intensive in setting up, but it’s somewhat automated now.  We’re sourcing data from both AutoCAD and ESRI Features, and converting to CircularStrings in postgres.<br></div>
<div><br></div>
<div>bobb<br></div>
<div><br></div>
<div><div> <br></div>
<div> <br></div>
<div><div><br></div>
<blockquote type="cite"><div>On Sep 7, 2018, at 7:54 AM, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div>
<div><br></div>
<div><div><div>On vendredi 7 septembre 2018 12:42:08 CEST Lime, Steve D (MNIT) wrote:<br></div>
<div> <br></div>
<blockquote type="cite"><div>I'm pretty certain it's a no... I would think it should be possible to<br></div>
<div> marshall curves into MapServer shapes though. --Steve<br></div>
</blockquote><div><br></div>
<div>OGR has infrastructure to convert from curve geometries to approximated curve<br></div>
<div> geometries with<br></div>
<div> <br></div>
<div> geom = OGR_G_ForceTo(geom,<br></div>
<div>   OGR_GT_GetLinear(OGR_G_GetGeometryType(geom)), NULL)<br></div>
<div> <br></div>
<div> as used in mapogr.cpp for example<br></div>
<div> <br></div>
<div> -- <br></div>
<div> Spatialys - Geospatial professional services<br></div>
<div> <a href="http://www.spatialys.com">http://www.spatialys.com</a><br></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>
</div>
</div>
</blockquote></div>
<div><br></div>
<div><div style="color:rgb(0, 0, 0);font-family:"Comic Sans MS";font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;widows:1;"><div><br></div>
<div>"<span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(51, 51, 51)"><span class="font" style="font-family:"Helvetica Neue", Helvetica, Arial, sans-serif"><span class="size" style="font-size:14px">The difference between stupidity and genius is that genius has its limits.</span></span></span></span><span class="colour" style="color:rgb(51, 51, 51)"><span class="font" style="font-family:"Helvetica Neue", " Helvetica", " Arial", " sans-serif""><span class="size" style="font-size:14px">”</span></span></span><br></div>
</div>
<div style="color:rgb(0, 0, 0);font-family:"Comic Sans MS";font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;"><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(51, 51, 51)"><span class="font" style="font-family:"Helvetica Neue", Helvetica, Arial, sans-serif"><span class="size" style="font-size:14px"><span style="white-space:pre;"></span>-  Albert Einstein</span></span></span></span><br></div>
<div style="color:rgb(0, 0, 0);font-family:"Comic Sans MS";font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;"><br></div>
</div>
</div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>mapserver-users mailing list<br></div>
<div><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br></div>
<div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div>
</blockquote><div><br></div>
</body>
</html>