Feature request #2093
Provide configuration options for new project (map) CRS and OTFR
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Borys Jurgiel | ||
Category: | Projection Support | ||
Pull Request or Patch supplied: | No | Resolution: | fixed |
Easy fix?: | No | Copied to github as #: | 12153 |
Description
Currently there is an option what to do when layer without CRS is loaded, still there are no options how to specify new project (map) CRS options. There are some other bugs requesting some parts or caused by user-unfriendly new project CRS handling (#1355 #363 #2092 #1688 and probably others).
Here is my offer how it could be handled (sorry, no code). Settings-> Options-> CRS should offer following options:- Ask new project CRS (a-la GRASS mode)
- Use first layer CRS (a-la ArcGIS mode)
- Use global default CRS
- Enable OTFR by default (checkbox disabled by default) (#363)
It will change QGIS default as neither of those options assume WGS84 by default as QGIS seems to do now. Still it's possible to mimic current QGIS behavior by setting global default to WGS84 and enabling "Use global CRS" option with OTFR disabled.
Bug #1688 was closed with reason "what to do when layer has no CRS?". There IS a solution already present in QGIS. QGIS already offers three options how to determine layers CRS when layer has no CRS. Just let layer CRS detection to work at first and then set project (map) CRS to layer's CRS (real one or one determined by "layer without CRS" options).
History
#1 Updated by Micha Silver almost 15 years ago
Not sure I agree with your suggestion.
First I'd rather not see Project specific options mixed in with Global options.
Second, I'm afraid that enabling OTF by default would cause more problems than it would solve (esp. when adding rasters in another CRS...). Also I don't particularly like the "Arcview mode" (project CRS set by the first loaded layer) for the same reason.
Perhaps the prob of specifying the CRS for a new project could be solved by popping up a window when the "New Project" button is pressed to select the CRS for that project? This will not help when first starting up QGIS, but the current behavior seems reasonable to me.
#2 Updated by marisn - almost 15 years ago
Micha, please, reread my proposal twice. People have different workflows and needs. For quick data preview "ArcGIS mode" is the best. For serious analysis "GRASS mode" works better. Your suggestion is "GRASS mode". I would love to have OTFR enabled by default (most of my data are in LKS-92/TM or Baltic93 with only difference in false northing).
This wish item is not about "forcing" OTFR or any other oprions but about providing choice to users.
#3 Updated by Borys Jurgiel almost 15 years ago
We still have the idea of better handling of the skeleton project files. You can create a few skeletons for CRSes you use and call qgis with appropriate one. We just could make loading them more automagical and prevent them from saving.
#4 Updated by Micha Silver almost 15 years ago
The Global CRS setting is, as you said, to determine what to do with layers that lack a CRS. Enabling OTF doesn't really solve that problem, so perhaps it shouldn't be mixed into that section of the CRS tab.
How about this suggestion:
1- Leave the three "When a new layer is loaded..." as is
2- Below that section add a checkbox: "Always use this global CRS for new projects.
3- And another checkbox: "Always enable on-the-fly projection".
So setting these two options would work best for users that are usually in one particular CRS. It would also keep the user in her popular CRS even if she happened to first load some layer in a different CRS (solve the "ArcGIS mode" problem). The only cases where this might be a cause for confusion are:- loading raster layers in a different CRS.
- a need to change units (this is "locked" when OTF is enabled)
Users that need to switch between different CRS might also want an option to: "Always prompt for project CRS" (i.e. "GRASS mode") so that each Cntl-N will first pop-up a window asking which CRS for the new project. So #3906 above might be a choice between two options: "Always use Global CRS", or "Always prompt".
But I think this should still be separate from the choice of what to do with layers that lack a CRS definition.
Regards,
Micha
#5 Updated by marisn - over 14 years ago
See also this discussion:
http://lists.osgeo.org/pipermail/qgis-developer/2010-March/009436.html
([Qgis-developer] CRS for a start)
#6 Updated by Borys Jurgiel over 13 years ago
#7 Updated by Borys Jurgiel over 13 years ago
- Status changed from Open to In Progress
Partially fixed in 7de1303c (SVN r15375) (options 3 i 4).
#8 Updated by Borys Jurgiel over 13 years ago
I believe c2190016 (SVN r15425) fulfills the second option (use first layer CRS).
#9 Updated by Borys Jurgiel about 13 years ago
- % Done changed from 0 to 60
- Pull Request or Patch supplied set to No
So, what is missing are three radio buttons on top of the CRS tab:
For new projects:- ask for CRS
- use last used
- use the default: (and the existing crs selector)
#10 Updated by Borys Jurgiel about 13 years ago
See also #4333 - also add a "set CRS from first laded layer" option. It could be either another radio button in the group mentioned above (note: which CRS should be displayed in the CRS indicator before the first layer is loaded?) or a separate checkbox.
Note 2: One may check both 'set layer CRS to project (if unknown)' and 'set project CRS to first layer'.
#11 Updated by Giovanni Manghi almost 13 years ago
- Target version changed from Version 1.7.0 to Version 1.7.4
#12 Updated by Giovanni Manghi over 12 years ago
- Target version changed from Version 1.7.4 to Version 2.0.0
#13 Updated by Pirmin Kalberer about 12 years ago
- Target version changed from Version 2.0.0 to Future Release - Nice to have
#14 Updated by Giovanni Manghi over 11 years ago
- Status changed from In Progress to Closed
- Resolution set to fixed
original requests are pretty much all available in qgis master.