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

PostGIS tables with both a Geometry and a TopoGeometry column #15727

Closed
qgib opened this issue Oct 13, 2012 · 4 comments
Closed

PostGIS tables with both a Geometry and a TopoGeometry column #15727

qgib opened this issue Oct 13, 2012 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Oct 13, 2012

Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 6510
Affected QGIS version: 1.8.0
Redmine category:data_provider/postgis
Assignee: Sandro Santilli


When a PostGIS table has both a geometry and a topogeometry column qgis only sees the geometry column.
To reproduce:

 CREATE TABLE t (g geometry, tg topogeometry);
 CREATE TABLE t2 (tg topogeometry);

Then "Add PostGIS layer", find the "t" table and you'll only see the "g" column, find the "t2" table and you'll see the "tg" column.
I've also tried to switch the order in which topogeometry and geometry columns are added but it's still only the geometry that gets considered when both are available.

May be related to #14449 but I'm not sure yet

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2012

Author Name: Sandro Santilli (@strk)


Note that if geometry_columns lookup fails (I temporarly renamed it for testing it) then both columns are shown.
It's a case of metadata lookup automatically becoming authoritative, triggering skipping of further lookup.
This is also when the "only check geometry_columns" option is unselected.

So yes I confirm it is related with #14449

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2012

Author Name: Sandro Santilli (@strk)


1.8.0 is also affected. I'm working on a fix for master.


  • version was changed from master to 1.8.0
  • assigned_to_id was configured as Sandro Santilli

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2012

Author Name: Sandro Santilli (@strk)


Will be fixed in master by pulling this: #291
I could work on backporting to 1.8.0 branch if you see fit.


  • done_ratio was changed from 0 to 90
  • pull_request_patch_supplied was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2012

Author Name: Sandro Santilli (@strk)


Patch pulled in master. Thanks jef!


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed
  • done_ratio was changed from 90 to 100

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! 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
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant