Feature request #1087
adding postgis data with geometry field based on a domain and not a simple geometry type
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||11147|
I've noticed a strange behaviour when adding a postgis layer into the project:
i connect to my db and i can only select the tables with a geometry field definied by a simple geometry type. If i want to add a table which have the geometry field definied as a domain (geometry type plus some checks) it is not recognized as an addable data.
Since i'm going to use a rather large postgis dataset heavy domain-dependent and i'd have appreciated to use qgis with that data it's quite an issue for me. Are you planning to support postgis domain types anytime soon?
thank you very much for your work.
#2 Updated by zawardo - over 12 years ago
Replying to [comment:1 jef]:
Could you provide a SQL script to create your table?
CREATE DOMAIN check_prova1
CONSTRAINT essere_2d CHECK ((dimension(VALUE) = 0)) CONSTRAINT proiezione CHECK ((srid(VALUE) = 668)) CONSTRAINT essere_punto CHECK ((geometrytype(VALUE) = 'POINT'::text));
CREATE TABLE test
However i just noticed that manually adding che table into the geometry _columns table, makes it visible into the qgis environment:)
It still would be fine if it was recognized even if not present in the geometry _columns (like other tables with simple geometry type).