<div dir="ltr"><div>Great that you're testing this.  </div><div><br></div><div>Yes, currently the precision is not exposed via the C API (well, I think it is technically, by setting the geometry precision model, but this involves an expensive (and unnecessary) precision reduction step, so that's useless for performance.</div><div><br></div><div>My hope is that the C API will expose overlay operations which take an explicit precision (scale factor = 1 / grid size). This will invoke snap-rounding, which should provide fully-robust rounded geometry - ideal for clipping to low-resolution tiles - I hope!</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 3, 2020 at 10:19 AM <<a href="mailto:rmrodriguez@carto.com">rmrodriguez@carto.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I've been doing some tests today and opened a couple of tickets<br>
related to issues with intersections.<br>
<br>
I'm not sure how interesting they are right now as I haven't checked<br>
for validity, but I've run the default tile generation performance<br>
test (full tiler) to compare the performance between the new and old<br>
overlay generations (attached doc).<br>
<br>
The MVT tests are using the GEOS backend, which is still much slower<br>
than wagyu (5-10x in the slow cases, which are huge polygons in low<br>
level zooms) but there are some really nice improvements there (see<br>
`[MVT] Canada [...]` tests). It is possible that those cases are slow<br>
because they need to call makeValid because the call to Intersection<br>
fails or because new points are added outside the MVT precision, but<br>
the only way to check is to add logging and check specific tiles. In<br>
any case, I've only used the GEOS C API, which AFAIK doesn't yet<br>
provide control over the precision.<br>
<br>
There are other tests that have slowed down a bit but I haven't looked<br>
into any of them at this point.<br>
<br>
-- <br>
Raúl Marín Rodríguez<br>
<a href="http://carto.com" rel="noreferrer" target="_blank">carto.com</a><br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geos-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geos-devel</a></blockquote></div></div>