<div dir="ltr">I can not confirm the observed results locally or on CI. I have not updated GEOS to latest commits though.<br><br># SELECT '6', ST_AsText(ST_ClipByBox2d('POLYGON((0 0,5 4,5 6,0 10,10 10,5 6,5 4,10 0,0 0))', ST_MakeEnvelope(2,2,10,5))); <br>6        MULTIPOLYGON(((2.5 2,5 4,5 5,10 5,10 2,2.5 2))) <br># select postgis_full_version(); <br>POSTGIS="2.5.0dev r16548" [EXTENSION] PGSQL="100" GEOS="3.7.0dev-CAPI-1.11.0 0" SFCGAL="1.3.1" PROJ="Rel. 4.9.3, 15 August 2016" GDAL="GDAL 2.3.0, released 2018/05/04 GDAL_DATA not found" LIBXML="2.9.4" LIBJSON="0.12.1" LIBPROTOBUF="1.3.0" RASTER <br><div><br></div><div>Judging visually, your result is the needed one.<br><br>If that is improved in latest GEOS, we'd better get it released for PostGIS 2.5 :)</div></div><br><div class="gmail_quote"><div dir="ltr">вт, 29 мая 2018 г. в 17:47, Sandro Santilli <<a href="mailto:strk@kbt.io">strk@kbt.io</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm getting a failure in clipbybox2d test:<br>
<br>
  --- clipbybox2d_expected        2018-05-29 16:44:35.453718509 +0200<br>
  +++ /tmp/pgis_reg/test_115_out  2018-05-29 16:45:13.<a href="tel:8%20044%20552-25-95" value="+375445522595" target="_blank">445522595</a> +0200<br>
  @@ -3,7 +3,7 @@<br>
   3|BOX(2 2,8 8)<br>
   4|MULTIPOINT(0 0,2 2)<br>
   5|MULTIPOLYGON(((2 2,5 5,8 2,2 2)),((5 5,2 8,8 8,5 5)))<br>
  -6|MULTIPOLYGON(((2.5 2,5 4,5 5,10 5,10 2,2.5 2)))<br>
  +6|MULTIPOLYGON(((2.5 2,5 4,7.5 2,2.5 2)))<br>
   7|POLYGON((2 2,2 5,5 5,5 2,2 2))<br>
   8|SRID=3857;POLYGON EMPTY<br>
   9|SRID=4326;POINT(0 0)<br>
<br>
Beside the above, I was also getting NOTICES which were not<br>
expected (or missing expected NOTICES if I turned notices off).<br>
The above is obtained by removing the NOTICE expectances and<br>
ensuring not to get them via client_min_message setting in<br>
the test.<br>
<br>
Is it a known bug ?<br>
<br>
The run is with GEOS="3.7.0dev-CAPI-1.11.0 4942053e"<br>
<br>
--strk; <br>
<br>
  ()   Free GIS & Flash consultant/developer<br>
  /\   <a href="https://strk.kbt.io/services.html" rel="noreferrer" target="_blank">https://strk.kbt.io/services.html</a><br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a></blockquote></div>