[postgis-devel] [postgis-tickets] r16649 - Committ same changes to concave hull tests to sfcgal as was done for regular

Regina Obe lr at pcorp.us
Fri Jul 20 21:26:39 PDT 2018


> > Modified: trunk/regress/sfcgal/concave_hull.sql
> 
> Does anyone recall why we're using duplicated tests ?
> It would be useful to drop the duplication somehow (using \i ?)
> 
> --strk;
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-devel
[Regina Obe] 
The thinking was that when SFCGAL is enabled and it is set as backend, then there are some functions it overrides so neither GEOS nor core PostGIS might be the ones being used.

e.g. ST_Intersects, ST_3DIntersects, ST_Intersection

The tests for the most part are duplicated, but I think sometimes the results were tweaked to allow valid answers that SFCGAL returns that are different from GEOS/PostGIS.
So thought the tests are the same sometimes the results may be different.

I'm not clear how you propose the \i to account for sometimes needing to use different output files.

We'd have to look at each one to know.

For the ones where the output is expected to be the same in both cases, we can probably just somehow have sfcgal reference the main test files.





More information about the postgis-devel mailing list