Ticket #1087 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

adding postgis data with geometry field based on a domain and not a simple geometry type

Reported by: zawardo Owned by: jef
Priority: major: does not work as expected Milestone:
Component: Data Provider Version:
Keywords: postgis domain Cc:
Platform Version: 0.10 Platform: Windows
Must Fix for Release: No Awaiting user input: yes

Description

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.

Change History

follow-up: ↓ 2   Changed 5 years ago by jef

  • owner changed from nobody to jef
  • status_info set

Could you provide a SQL script to create your table?

in reply to: ↑ 1   Changed 5 years ago by zawardo

Replying to jef:

Could you provide a SQL script to create your table?

of course:

CREATE DOMAIN check_prova1

AS geometry

CONSTRAINT essere_2d CHECK ((dimension(VALUE) = 0)) CONSTRAINT proiezione CHECK ((srid(VALUE) = 668)) CONSTRAINT essere_punto CHECK ((geometrytype(VALUE) = 'POINT'::text));

CREATE TABLE test (

id integer, the_geom check_prova1

) WITH (OIDS=FALSE);

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).

Thank you!

follow-up: ↓ 4   Changed 5 years ago by jef

  • status changed from new to closed
  • type changed from defect to enhancement
  • resolution set to fixed

r8440 adds support for domain types that directly base on the geometry type. domains that base on such domains are still unsupported.

in reply to: ↑ 3   Changed 5 years ago by jef

Replying to jef:

r8440 adds support for domain types that directly base on the geometry type. domains that base on such domains are still unsupported.

s/r8440/r8444/

Note: See TracTickets for help on using tickets.