Re: [Qgis-user] Coordinates from wgs84 utm /expressed in meter) to wgs84 (expressed in degrees)

2019-03-21 Thread DelazJ
Hi Bernd,

Le jeu. 21 mars 2019 à 09:49, Bernd Vogelgesang 
a écrit :

> Hi Nyall,
>
> as much as I like your initiative to add such a function, I think such
> examples should also be listed in the user manual connected to the field
> calculator section.
>
> Unfortunately, in this very important field, qgis resources do not give
> many hints how to use the powers of the existing functions. Me, I do
> 100% of my searches on gis.stackexchange.com to find solution, not the
> docs.
>
>  As you might certainly know, the doc IS a community-driven work and we
welcome any contribution. So if you feel something is worth mentioning and
you know how to fix it, please simply provide a text or a pull request[0]
and it'll get done.
 This is how things work. And if people have to do 100% of their searches
out of the docs, maybe should we stop (trying) to maintain it.

[0] https://github.com/qgis/QGIS-Documentation

Regards,
Harrissou

Cheers,
> Bernd
>
> Am 21.03.19 um 08:05 schrieb Nyall Dawson:
> > On Wed, 20 Mar 2019 at 03:55, Azzurra Lentini
> >  wrote:
> >> Good morning,
> >> if for example my project is in this referencing system: WGS84-UTM,
> >> when I ask to calculate the coordinates Y and X (with field calculator
> >> - geometry), it will produce the coordinates in meters.
> >> But what can I do if I want the same coordinates in degrees?
> >> (obviously in the same datum wgs84)
> > I think this is a common enough task to warrant it's own processing
> > algorithm. I've added one in https://github.com/qgis/QGIS/pull/9587
> > (so will be in 3.8), ported from some Python code I used at a
> > customer's workplace.
> >
> > Nyall
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Coordinates from wgs84 utm /expressed in meter) to wgs84 (expressed in degrees)

2019-03-21 Thread C Hamilton
The Lat Lon Tools plugin does this conversion to put the coordinates into
one or two fields. See "Plugins->Lat Lon Tools->Conversions->Point layer to
fields". It has a lot of flexibility as to the output format.

Calvin

On Thu, Mar 21, 2019 at 3:06 AM Nyall Dawson  wrote:

> On Wed, 20 Mar 2019 at 03:55, Azzurra Lentini
>  wrote:
> >
> > Good morning,
> > if for example my project is in this referencing system: WGS84-UTM,
> > when I ask to calculate the coordinates Y and X (with field calculator
> > - geometry), it will produce the coordinates in meters.
> > But what can I do if I want the same coordinates in degrees?
> > (obviously in the same datum wgs84)
>
> I think this is a common enough task to warrant it's own processing
> algorithm. I've added one in https://github.com/qgis/QGIS/pull/9587
> (so will be in 3.8), ported from some Python code I used at a
> customer's workplace.
>
> Nyall
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Coordinates from wgs84 utm /expressed in meter) to wgs84 (expressed in degrees)

2019-03-21 Thread Bernd Vogelgesang

Hi Nyall,

as much as I like your initiative to add such a function, I think such
examples should also be listed in the user manual connected to the field
calculator section.

Unfortunately, in this very important field, qgis resources do not give
many hints how to use the powers of the existing functions. Me, I do
100% of my searches on gis.stackexchange.com to find solution, not the docs.

Cheers,
Bernd

Am 21.03.19 um 08:05 schrieb Nyall Dawson:

On Wed, 20 Mar 2019 at 03:55, Azzurra Lentini
 wrote:

Good morning,
if for example my project is in this referencing system: WGS84-UTM,
when I ask to calculate the coordinates Y and X (with field calculator
- geometry), it will produce the coordinates in meters.
But what can I do if I want the same coordinates in degrees?
(obviously in the same datum wgs84)

I think this is a common enough task to warrant it's own processing
algorithm. I've added one in https://github.com/qgis/QGIS/pull/9587
(so will be in 3.8), ported from some Python code I used at a
customer's workplace.

Nyall
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Coordinates from wgs84 utm /expressed in meter) to wgs84 (expressed in degrees)

2019-03-21 Thread Nyall Dawson
On Wed, 20 Mar 2019 at 03:55, Azzurra Lentini
 wrote:
>
> Good morning,
> if for example my project is in this referencing system: WGS84-UTM,
> when I ask to calculate the coordinates Y and X (with field calculator
> - geometry), it will produce the coordinates in meters.
> But what can I do if I want the same coordinates in degrees?
> (obviously in the same datum wgs84)

I think this is a common enough task to warrant it's own processing
algorithm. I've added one in https://github.com/qgis/QGIS/pull/9587
(so will be in 3.8), ported from some Python code I used at a
customer's workplace.

Nyall
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Coordinates from wgs84 utm /expressed in meter) to wgs84 (expressed in degrees)

2019-03-20 Thread Azzurra Lentini

Hi Bernd,
yes thank you, in fact I meant that transformation.
Thank you a lot for the explaination and for the correction.

Have a nice day,
Azzurra

Bernd Vogelgesang  a écrit :


Hi,

I was at first quite confused by your question.

I don't know of any projection named WGS84-UTM, but i guess you mean
SOME WGS 84 / UTM  projection. I think it's always best to "talk" in
EPSG codes, cause there are so many confusing terms around.

So, assuming you have e.g a point layer in EPSG 32632 (metric) and want
the coordinates calculated in the field calculator, but the result
should be in EPSG 4326 (degree), you can do:

for a new X column

|X( transform( $geometry, 'EPSG:32632', 'EPSG:4326')) |

and similar for a new Y column

|Y( transform( $geometry, 'EPSG:32632', 'EPSG:4326')) |

|in the field calculator.|


||
Answer found here:
https://gis.stackexchange.com/a/242259/8202

Cheers,

Bernd


Am 19.03.19 um 18:43 schrieb Azzurra Lentini:

Good morning,
if for example my project is in this referencing system: WGS84-UTM,
when I ask to calculate the coordinates Y and X (with field calculator
- geometry), it will produce the coordinates in meters.
But what can I do if I want the same coordinates in degrees?
(obviously in the same datum wgs84)

Thank you, Azzurra




___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user




___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Coordinates from wgs84 utm /expressed in meter) to wgs84 (expressed in degrees)

2019-03-19 Thread Bernd Vogelgesang

Hi,

I was at first quite confused by your question.

I don't know of any projection named WGS84-UTM, but i guess you mean
SOME WGS 84 / UTM  projection. I think it's always best to "talk" in
EPSG codes, cause there are so many confusing terms around.

So, assuming you have e.g a point layer in EPSG 32632 (metric) and want
the coordinates calculated in the field calculator, but the result
should be in EPSG 4326 (degree), you can do:

for a new X column

|X( transform( $geometry, 'EPSG:32632', 'EPSG:4326')) |

and similar for a new Y column

|Y( transform( $geometry, 'EPSG:32632', 'EPSG:4326')) |

|in the field calculator.|


||
Answer found here:
https://gis.stackexchange.com/a/242259/8202

Cheers,

Bernd


Am 19.03.19 um 18:43 schrieb Azzurra Lentini:

Good morning,
if for example my project is in this referencing system: WGS84-UTM,
when I ask to calculate the coordinates Y and X (with field calculator
- geometry), it will produce the coordinates in meters.
But what can I do if I want the same coordinates in degrees?
(obviously in the same datum wgs84)

Thank you, Azzurra




___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Coordinates from wgs84 utm /expressed in meter) to wgs84 (expressed in degrees)

2019-03-19 Thread Azzurra Lentini

Good morning,
if for example my project is in this referencing system: WGS84-UTM,  
when I ask to calculate the coordinates Y and X (with field calculator  
- geometry), it will produce the coordinates in meters.
But what can I do if I want the same coordinates in degrees?  
(obviously in the same datum wgs84)


Thank you, Azzurra



--- Begin Message ---

Good morning,
if for example my project is in this referencing system: WGS84-UTM,  
when I ask to calculate the coordinates Y and X (with field calculator  
- geometry), it will produce the coordinates in meters.
But what can I do if I want the same coordinates in degrees?  
(obviously in the same datum wgs84)


Thank you, Azzurra

--- End Message ---
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user