Opened 15 years ago

Closed 13 years ago

#1688 closed enhancement (fixed)

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
Must Fix for Release: No Platform: All
Platform Version: 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 (7)

comment:1 by pcav, 15 years ago

Component: MapCanvasProjection Support
Milestone: Version 1.2.0

comment:2 by homann, 15 years ago

Resolution: wontfix
Status: newclosed

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.

comment:3 by borysiasty, 13 years ago

Milestone: Version 1.2.0Version 1.7.0
Platform: OS XAll
Priority: major: does not work as expectedminor: annoyance
Resolution: wontfix
Status: closedreopened
Summary: Map srs should inherit from first layer added to new projectAssign layer CRS to project (legend context menu)
Version: 1.0.0

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.

comment:4 by borysiasty, 13 years ago

Cc: borysiasty added

comment:5 by borysiasty, 13 years ago

Owner: changed from nobody to borysiasty
Status: reopenednew

comment:6 by borysiasty, 13 years ago

fixed in r15424

comment:7 by borysiasty, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.