Feature request #21875
add support for "triangles" PostGIS geometry type
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||29690|
I have a table of TRIANGLE's in PostGIS. QGIS shows it as Polygon layer, and when I click using Idenify tool on triangles, they show up, but they are not rendered by main map as polygons.
#5 Updated by Giovanni Manghi 8 months ago
- File Screenshot_20190418_131631.png added
Darafei Praliaskouski wrote:
Layer loads for me, it is identifiable but renders nothing. If I click somewhere contours of objects render.
map show here, not identifiable or selectable (is editable, it just needs a primary key).
#6 Updated by Darafei Praliaskouski 8 months ago
Found it. "Simplify on provider's side if possible" triggers this.
gis=# select ST_Simplify(geom, 0) from delaunay_triangles limit 10;
ERROR: lwgeom_simplify_in_place: unsupported geometry type: Triangle
I will try to fix this on PostGIS side, but that will be PostGIS v3+ since it's essentially a feature. Would be great to see this error on UI somewhere at least.
PostGIS ticket: https://trac.osgeo.org/postgis/ticket/4380
#8 Updated by Darafei Praliaskouski 7 months ago
these functions shouldn't fail on triangles in PostGIS starting next release: