Ticket #1688 (closed enhancement: fixed)

Opened 4 years ago

Last modified 2 years ago

Assign layer CRS to project (legend context menu)

Reported by: springmeyer Owned by: borysiasty
Priority: minor: annoyance Milestone: Version 1.7.0
Component: Projection Support Version:
Keywords: Cc: borysiasty
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

I think this would be a big usability improvement. It should be able to be turned off however (wildintellect), but the default behavior when opening a new project should be that the Map CRS inherits from the CRS from the layer, when possible.

Perhaps I am missing something however - the text in the QGIS Options CRS tabs says: 'when layer is load that has no coordinate reference system (CRS)' do...

I have 'Prompt for CRS Checked' and when I open a shapefile in BC albers (epsg 3005)

PROJCS["PCS_Albers",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",1000000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-126.0],PARAMETER["Standard_Parallel_1",50.0],PARAMETER["Standard_Parallel_2",58.5],PARAMETER["Latitude_Of_Origin",45.0],UNIT["Meter",1.0]]

...the map still defaults to EPSG 4326, which is not the behavior I would assume based on that description.

Is something wrong with my system or is that description of out sync with intended behavior?

Change History

Changed 4 years ago by pcav

  • component changed from MapCanvas to Projection Support
  • milestone set to Version 1.2.0

Changed 4 years ago by homann

  • status changed from new to closed
  • resolution set to wontfix

It means that if there is no information about the CRS for *the layer*, what to do then?

As long as you don't have projection turned on, the map CRS doesn't matter. When you turn it on, you also specify the "map" CRS.

What you suggst was the behaviour a few years back, but I think the current situation is cleaner and more predictable.

Changed 2 years ago by borysiasty

  • status changed from closed to reopened
  • summary changed from Map srs should inherit from first layer added to new project to Assign layer CRS to project (legend context menu)
  • priority changed from major: does not work as expected to minor: annoyance
  • platform changed from OS X to All
  • version 1.0.0 deleted
  • milestone changed from Version 1.2.0 to Version 1.7.0
  • resolution wontfix deleted

What about a "Set Project CRS to this layer" in the Legend? With OTFR enabled, this way we could easily switch between various target CRSes. With OTFR disabled, we could easily synchronize map units. And it would me much more predictable, than automatic setting to the first layer.

By the way: I totally disagree with the "As long as you don't have projection turned on, the map CRS doesn't matter". This way you have broken scale, broken scale line, and limited possibility to assign project crs to newly created layers. Also, it just makes a mess. If you don't want to use projections, than the OTFR switch should be rather replaced with a "Projection support" switch to completely detach the missinformating WGS84 CRS.

Changed 2 years ago by borysiasty

  • cc borysiasty added

Changed 2 years ago by borysiasty

  • owner changed from nobody to borysiasty
  • status changed from reopened to new

Changed 2 years ago by borysiasty

fixed in r15424

Changed 2 years ago by borysiasty

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.