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

Feature type or srid for ... could not be determined or was not requested. #16762

Closed
qgib opened this issue May 23, 2013 · 14 comments
Closed

Feature type or srid for ... could not be determined or was not requested. #16762

qgib opened this issue May 23, 2013 · 14 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
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented May 23, 2013

Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 7889
Affected QGIS version: master
Redmine category:data_provider/postgis


I can't load PostGIS columns of type "geometry" because QGIS mandates to specify a SRID, and if I fake one it complains about "could not be determined or was not requested". A column of type "geometry" has a SRID of 0. This is being a problem with 83445af

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Giovanni Manghi (@gioman)


Sandro is this a regression since 1.8 or previous master revisions?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Sandro Santilli (@strk)


I'm not building very often (scared by instability), but it's likely not older than one month, as a regression.

PS: I can only see Feedback and Closed as ticket statuses

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Giovanni Manghi (@gioman)


Sandro Santilli wrote:

I'm not building very often (scared by instability), but it's likely not older than one month, as a regression.

but still a regression, right? if not please lower the priority.

PS: I can only see Feedback and Closed as ticket statuses

Let me see if I can do something in redmine administration.


  • priority_id was changed from Normal to Severe/Regression
  • fixed_version_id was configured as Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Sandro Santilli (@strk)


Still happening. Seems to only happen with tables with geometries having a SRID=0 (ie: unkown srid).
Is this a documented new requirement ?

@qgib
Copy link
Contributor Author

qgib commented May 24, 2013

Author Name: Sandro Santilli (@strk)


And yes, it is a regression. I used to be able to use geometries with NO srid just fine. I didn't even have to manually enter one (but this is a separate topic, maybe)

@qgib
Copy link
Contributor Author

qgib commented May 25, 2013

Author Name: Giovanni Manghi (@gioman)


Sandro Santilli wrote:

And yes, it is a regression. I used to be able to use geometries with NO srid just fine. I didn't even have to manually enter one (but this is a separate topic, maybe)

fixed by f990886?

@qgib
Copy link
Contributor Author

qgib commented May 25, 2013

Author Name: Sandro Santilli (@strk)


"almost". The error message isn't shown anymore now, BUT I just cannot select the table with SRID=0.
Here's a screenshot: http://strk.keybit.net/tmp/cannot_select_geom.png
Clicking on the line the cursor is on (identified has containing Point with SRID 0) does not highlight it, so you can't click on "Add"

@qgib
Copy link
Contributor Author

qgib commented May 25, 2013

Author Name: Giovanni Manghi (@gioman)


Sandro Santilli wrote:

"almost". The error message isn't shown anymore now, BUT I just cannot select the table with SRID=0.
Here's a screenshot: http://strk.keybit.net/tmp/cannot_select_geom.png
Clicking on the line the cursor is on (identified has containing Point with SRID 0) does not highlight it, so you can't click on "Add"

better add this comment also in the commit page

@qgib
Copy link
Contributor Author

qgib commented May 25, 2013

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


Fixed in changeset "925d3179e17bf3e4516ac2037a0ee7d10fc16b66".


  • status_id was changed from Feedback to Closed

@qgib
Copy link
Contributor Author

qgib commented May 25, 2013

Author Name: Sandro Santilli (@strk)


Thanks a lot, fix confirmed !

@qgib
Copy link
Contributor Author

qgib commented May 25, 2013

Author Name: Sandro Santilli (@strk)


Hey Jef, I tested with postgis 1.5 and it still fails there. SRID=-1 is the unknown in there. If -1 has special meaning in qgis (does it?) it'd be better to convert it to 0 when it comes from the database


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented May 25, 2013

Author Name: Sandro Santilli (@strk)


THe recommended way is to convert any SRID < 0 coming from the database to 0. This si what PostGIS 2.0 does when data gets in the db (either from old dumps or old applications)

@qgib
Copy link
Contributor Author

qgib commented May 25, 2013

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


Fixed in changeset "10a91b7fb964b1a36ca0693187e165713c4b3127".


  • status_id was changed from Reopened to Closed

@qgib
Copy link
Contributor Author

qgib commented May 26, 2013

Author Name: Sandro Santilli (@strk)


Works for me with both 1.5 and 2.0 -- thanks again !

@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 added this to the Version 2.0.0 milestone 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