Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qgib opened this issue May 14, 2008 · 4 comments
Labels
Data Provider Related to specific vector, raster or mesh data providers Feature Request

Comments

@qgib
Copy link
Contributor

qgib commented May 14, 2008

Author Name: zawardo - (zawardo -)
Original Redmine Issue: 1087

Redmine category:data_provider
Assignee: Jürgen Fischer


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.

@qgib
Copy link
Contributor Author

qgib commented May 14, 2008

Author Name: Jürgen Fischer (@jef-n)


Could you provide a SQL script to create your table?

@qgib
Copy link
Contributor Author

qgib commented May 15, 2008

Author Name: zawardo - (zawardo -)


Replying to [comment:1 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!

@qgib
Copy link
Contributor Author

qgib commented May 15, 2008

Author Name: Jürgen Fischer (@jef-n)


68cdb3a (SVN r8441) adds support for domain types that directly base on the geometry type. domains that base on such domains are still unsupported.


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented May 15, 2008

Author Name: Jürgen Fischer (@jef-n)


Replying to [comment:3 jef]:

68cdb3a (SVN r8441) adds support for domain types that directly base on the geometry type. domains that base on such domains are still unsupported.

s/68cdb3ab (SVN r8441)/22b38021 (SVN r8445)/

@qgib qgib added Feature Request Data Provider Related to specific vector, raster or mesh data providers labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data Provider Related to specific vector, raster or mesh data providers Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant