[QGIS-trac] Re: [Quantum GIS] #967: CRS of a new shapefile doesn't
match CRS of the project
Quantum GIS
qgis at qgis.org
Tue Oct 28 11:56:02 EDT 2008
#967: CRS of a new shapefile doesn't match CRS of the project
-----------------------------------------------------+----------------------
Reporter: msieczka | Owner: nobody
Type: defect | Status: reopened
Priority: major: does not work as expected | Milestone: Version 1.0.0
Component: Projection Support | Version: HEAD
Resolution: | Keywords:
Platform_version: | Platform: All
Must_fix: Yes | Status_info: 0
-----------------------------------------------------+----------------------
Changes (by msieczka):
* status: closed => reopened
* resolution: invalid =>
Comment:
Replying to [comment:7 homann]:
> Replying to [comment:6 msieczka]:
> > Replying to [comment:5 homann]:
> > > You can select if the CRS of the new layer should be the global
default, the project CRS or if it should ask for it. You do the selection
in Settings -> Options...
> >
> > Reopening because this setting is explicitely for dealing with layers
which miss CRS data at their load time.
>
> If you create a new layer, it does not have a CRS when you load it
(after creation). It is created on disk and then loaded.
These are internals of how QGIS deals with creating new layers. User
doesn't know and shouldn't. Look at it from the user's point of view
please. If he sets a CRS for his project, he is right to expect a newly
created layer has the same CRS as hish project, not as some global
setting.
> >It is bogus that this setting impacts CRS info of layers *newly created
in >QGIS*. A newly created layer in QGIS should have the same CRS as the
>project, not as the global setting for layer's with invalid CRS data.
>
> There is a radio button so you can mimic the behaviour you want. Do you
feel better if we add "and new layers" to that text?
My main point is that CRS setting for a newly created layer should rather
depend on project's CRS than a global one. And, moreover, that global
setting is explicitely for dealing with existing layers which miss CRS. It
is counter-intuitive and counter-productive to use this setting for 2
different things - managing CRS of newly created layers and managing CRS
of existing layers that miss CRS data.
> >It is easy to imagine you might want to have the global CRS different
than >you project CRS. What then?
>
> Set them differently.
You're missing my point or I'm putting it wrong. Again: even if I set
global and project's CRS different, a newly created layer *still* carries
the CRS from the global setting instead of project's CRS.
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/967#comment:8>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list