- #4348, ST_AsMVTGeom (GEOS): Enforce validation at all times (Raúl Marín)
- #4361, Fix postgis_type_name with (GEOMETRYM,3) (Matt Bretl)
- #4326, Fix circular arc distance calculation (Paul Ramsey)
+ - #4380, Simple TIN support to allow viz in QGIS (Paul Ramsey)
PostGIS 2.5.2
{
/* No-op! Cannot remote points */
case POINTTYPE:
+ case TRIANGLETYPE:
return;
case LINETYPE:
{
/* Can process most multi* types as generic collection */
case MULTILINETYPE:
case MULTIPOLYGONTYPE:
+ case TINTYPE:
case COLLECTIONTYPE:
/* Curve types we mostly ignore, but allow the linear */
/* portions to be processed by recursing into them */
{
switch (geom->type)
{
- /* No-op! Cannot simplify points */
+ /* No-op! Cannot simplify points or triangles */
case POINTTYPE:
+ case TRIANGLETYPE:
return;
case LINETYPE:
{
case MULTIPOINTTYPE:
case MULTILINETYPE:
case MULTIPOLYGONTYPE:
+ case TINTYPE:
case COLLECTIONTYPE:
{
uint32_t i, j = 0;
return;
}
case CIRCSTRINGTYPE:
+ case TRIANGLETYPE:
case LINETYPE:
{
LWLINE *ln = (LWLINE*)(geom);
case MULTIPOINTTYPE:
case MULTILINETYPE:
case MULTIPOLYGONTYPE:
+ case TINTYPE:
case COLLECTIONTYPE:
case COMPOUNDTYPE:
{
double tolerance;
GEOSGeometry *g1, *g3;
GSERIALIZED *result;
+ uint32_t type;
geom1 = PG_GETARG_GSERIALIZED_P(0);
tolerance = PG_GETARG_FLOAT8(1);
/* Empty.Simplify() == Empty */
- if ( gserialized_is_empty(geom1) )
+ type = gserialized_get_type(geom1);
+ if ( gserialized_is_empty(geom1) || type == TINTYPE || type == TRIANGLETYPE )
PG_RETURN_POINTER(geom1);
initGEOS(lwpgnotice, lwgeom_geos_error);