<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Jukka,</p>
<p>I believe this is a OSGeo4W specific build issue that doesn't
activate functionalities of GEOS >= 3.10. I've proposed a
potential fix in <a class="moz-txt-link-freetext" href="https://github.com/jef-n/OSGeo4W/pull/17">https://github.com/jef-n/OSGeo4W/pull/17</a></p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 08/08/2023 à 00:55, Rahkonen Jukka a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:AM0PR09MB3219BBE07BBE9E4A42F2BAC2FD0CA@AM0PR09MB3219.eurprd09.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}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]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">The new Spatialite
version has a bunch of new GEOS based functions<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> *
GEOSMinimumRotatedRectangle aka ST_OrientedEnvelope<br>
* GEOSMaximumInscribedCircle<br>
* GEOSMinimumBoundingCircle<br>
* GEOSMinimumBoundingRadius<br>
* GEOSMinimumBoundingCenter<br>
* GEOSLargestEmptyCircle<br>
* GEOSMinimumWidth<br>
* GEOSMinimumClearance<br>
* GEOSMinimumClearanceLine<br>
* GeosDensify<br>
* GeosMakeValid<br>
* ReducePrecision<br>
* HilbertCode<br>
* GeosConcaveHull<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I installed gdal-dev
version with OSGeo4W and I can see that it is having
Spatialite 5.1.0 and GEOS 3.12.0-CAPI-1.18.0. I suppose that
the new functions should now work with commands like this,
but I get an error instead:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ogrinfo polygon.gpkg
-sql "select GEOSMaximumInscribedCircle(geom,1000) from
polygon" -dialect SQLite<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">INFO: Open of
`polygon.gpkg'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> using driver
`GPKG' successful.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ERROR 1: In
ExecuteSQL(): sqlite3_prepare_v2(select
GEOSMaximumInscribedCircle(geom,1000) from polygon):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> no such function:
GEOSMaximumInscribedCircle<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I confirmed with the
spatialite 5.1.0 Windows binary that this query works:<br>
<br>
SELECT
ST_AsText(GEOSMaximumInscribedCircle(ST_GeomFromText('POLYGON
((40 180, 110 160, 180 180, 180 120, 140 90, 160 40, 80 10,
70 40, 20 50, 40 180),(60 140, 50 90, 90 140, 60
140))'),10000));<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">LINESTRING(100 95,
71.95122 117.439024)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">However, some functions
like GEOSMinimumClearance seem to work.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>