Bug report #10510

Geometryless table sets project CRS to epsg:4326

Added by zicke - over 10 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Unknown
Affected QGIS version:master Regression?:No
Operating System:Ubuntu Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:18920

Description

When you add a geometryless table from postgis as the first layer in a new project, the project crs is set to epsg:4326. If you then add a layer with geometries in another crs than epsg:4326 QGIS enables on-the-fly reprojection and wants to reproject the new layer.

If you add a layer with geometry first and then add a geometryless table QGIS still enables on-the-fly reprojection.

My settings are:

- Default CRS for new projects: "Don't enable 'on the fly' reprojection'
- Always start new projects with this CRS: EPSG:21781

- CRS for new layers "Use project CRS"

Project settings:

- Enable 'on the fly' CRS transformation is unchecked.

10510_screencast.mp4 (577 KB) R. R., 2016-05-21 01:25 AM

10510_csv_layer_properties.png (104 KB) R. R., 2016-05-21 01:43 AM

Associated revisions

Revision 0a2948af
Added by Jürgen Fischer over 10 years ago

only consider the crs of layers with geometry for automatically setting of project crs and otfr (fixes #10510)

History

#1 Updated by zicke - over 10 years ago

  • Operating System set to Ubuntu
  • OS version set to 12.04

#2 Updated by Jürgen Fischer over 10 years ago

please verify if a715ce6d fixes this.

#3 Updated by Jürgen Fischer over 10 years ago

  • Status changed from Open to Feedback

#4 Updated by zicke - over 10 years ago

  • Status changed from Feedback to Closed

Fixed. Thanks!

#5 Updated by Jürgen Fischer over 10 years ago

  • Resolution set to fixed/implemented

#6 Updated by zicke - over 10 years ago

  • Status changed from Closed to Reopened

It seems to be broken again. But this time without enabling on-the-fly reprojection. Scale is wrong too.

#7 Updated by Giovanni Manghi over 10 years ago

  • Resolution deleted (fixed/implemented)

#8 Updated by Jürgen Fischer over 10 years ago

  • Status changed from Reopened to Closed

#9 Updated by R. R. over 8 years ago

  • Status changed from Closed to Reopened

When adding a geometryless PostGIS table to the layers panel the CRS of the layer is WGS 84 (EPSG 4326). In the case of adding a table containing geometries to an existing geometryless table, the CRS of the project is set to 'EPSG 4326 (OTF)'. My default CRS is MGI / Austria GK East (EPSG 31256).

(Windows 7, QGIS 2.14.1)

#10 Updated by R. R. over 8 years ago

#11 Updated by R. R. over 8 years ago

I suppose this is a regression from previous QGIS versions.

#13 Updated by Giovanni Manghi over 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#14 Updated by Jürgen Fischer about 7 years ago

  • Category set to Unknown

#15 Updated by Giovanni Manghi over 5 years ago

  • Status changed from Reopened to Closed
  • Resolution set to end of life

Also available in: Atom PDF