Re: [QGIS-Developer] Unable to understand the "Default CRS for new projects" setting

2018-07-25 Thread DelazJ
Hi Nyall,
Thanks for the reply

2018-07-26 0:34 GMT+02:00 Nyall Dawson :

> On Wed, 25 Jul 2018 at 00:50, DelazJ  wrote:
> >
> > Hi,
>
> > - if it's a geometryless layer, then the project CRS is set to epsg:4326
>
> This one is definitely a bug!
>
> Should I file a ticket or is it already taken care of?

> Then, my question is what's the interest of setting a default CRS for all
> projects, if each time I open a new project it's the first loaded layer
> that dictates the rule and applies its CRS?
>
> I'm not sure :) It does have some impact, e.g. because creating a new
> layer will use this crs (if it's done before any other layers are
> added). I suspect this is one of those settings which has been around
> for so long that it just no longer has any real meaning. Maybe it's a
> relic from before OTF was introduced?
>
> Mmmh For layers being created (as well as layers without crs), there's
already an option to select which crs to apply (project crs, a defined crs
or prompt for crs) so project crs may not necessarily be used for that.

> The options I can see are:
>
> 1. Remove the setting, always start new projects in EPSG:4326, and
> then switch to match the crs of the first loaded layer
>
2. Remove the "set project crs to match first loaded layer crs"
> feature, and always start new projects in the crs defined by that
> setting. Loading layers doesn't change the crs.
>
> We need to proceed with caution here. For reference, I'd be a hesitant
> +1 to option 2.
>
> I'd be +1 for option 2 also (I let the hesitation to the devs ;) )
Thanks again,

Harrissou

> Nyall
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Unable to understand the "Default CRS for new projects" setting

2018-07-25 Thread Nyall Dawson
On Wed, 25 Jul 2018 at 00:50, DelazJ  wrote:
>
> Hi,

> - if it's a geometryless layer, then the project CRS is set to epsg:4326

This one is definitely a bug!

> Then, my question is what's the interest of setting a default CRS for all 
> projects, if each time I open a new project it's the first loaded layer that 
> dictates the rule and applies its CRS?

I'm not sure :) It does have some impact, e.g. because creating a new
layer will use this crs (if it's done before any other layers are
added). I suspect this is one of those settings which has been around
for so long that it just no longer has any real meaning. Maybe it's a
relic from before OTF was introduced?

The options I can see are:

1. Remove the setting, always start new projects in EPSG:4326, and
then switch to match the crs of the first loaded layer
2. Remove the "set project crs to match first loaded layer crs"
feature, and always start new projects in the crs defined by that
setting. Loading layers doesn't change the crs.

We need to proceed with caution here. For reference, I'd be a hesitant
+1 to option 2.

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Unable to understand the "Default CRS for new projects" setting

2018-07-24 Thread Patrick Dunford
If there is a bug to file, it should be that if you click Cancel, it 
still loads the layer



On 25/07/18 02:50, DelazJ wrote:

Hi,
In the Settings --> Options --> CRS menu, user can choose a CRS which 
is used as default whenever he opens a new blank project.

Then if he adds a layer:
- if the layer CRS is different from the one I set for the project, 
the project CRS is changed and aligned with the first loaded layer CRS;

- if it's a geometryless layer, then the project CRS is set to epsg:4326

Then, my question is what's the interest of setting a default CRS for 
all projects, if each time I open a new project it's the first loaded 
layer that dictates the rule and applies its CRS?
From my understanding, the project CRS is the environment in which I'd 
like to work and with the auto-OTF, layers I add would be reprojected 
in that environment, not the inverse.


Am I missing something or, if it's by design, could someone explain me 
the reasons, please? Or are those behaviors bugs I should file?


Thanks,
Harrissou


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Unable to understand the "Default CRS for new projects" setting

2018-07-24 Thread DelazJ
Hi,
In the Settings --> Options --> CRS menu, user can choose a CRS which is
used as default whenever he opens a new blank project.
Then if he adds a layer:
- if the layer CRS is different from the one I set for the project, the
project CRS is changed and aligned with the first loaded layer CRS;
- if it's a geometryless layer, then the project CRS is set to epsg:4326

Then, my question is what's the interest of setting a default CRS for all
projects, if each time I open a new project it's the first loaded layer
that dictates the rule and applies its CRS?
>From my understanding, the project CRS is the environment in which I'd like
to work and with the auto-OTF, layers I add would be reprojected in that
environment, not the inverse.

Am I missing something or, if it's by design, could someone explain me the
reasons, please? Or are those behaviors bugs I should file?

Thanks,
Harrissou
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer