Re: [R-sig-eco] Conversion of lat/long coordinates to ETRS89

2013-03-20 Thread Jari Oksanen
Daniel,
On 20/03/2013, at 10:45 AM, Levy, Yair wrote:

> Dear Mauricio,
> 
> 
> I would confirm the use of rgdal::spTransform as appropriate. Also, one could 
> add creating a CRS database as follows:
> 
> #European Petroleum Survey Group list creation
> EPSG <- make_EPSG()
> 
> The geographical ETRS89 CRS is then the following I believe:
> 
> #ETRS89 (= EUREF89 = GRS80)
> CRS("+init=epsg:4258")
> 
> 

Actually ETRS89 / ETRS-TM35FIN for Finland is epsg code 3067.

> Applying spTransform following this function's instructions shouldn't be a 
> challenge I believe. I would strongly recommend comparing your new 
> geographical/cartographical projections the first time you use this function 
> in order to validate their accuracies.
> 

The following should work:

library(rgdal)
xy <- data.frame(N = 60, E = 27)
coordinates(xy) <- ~ E + N
proj4string(xy) <- CRS("+proj=longlat")
spTransform(xy, CRS("+init=epsg:3067"))

and it is really useful to validate the results...

Cheers, Jari Oksanen (Finland)

> -Oorspronkelijk bericht-
> Van: r-sig-ecology-boun...@r-project.org 
> [mailto:r-sig-ecology-boun...@r-project.org] Namens Mauricio 
> Zambrano-Bigiarini
> Verzonden: mercredi 20 mars 2013 09:29
> Aan: r-sig-ecology@r-project.org
> Onderwerp: Re: [R-sig-eco] Conversion of lat/long coordinates to ETRS89
> 
> On 20/03/13 08:33, Daniel Flø wrote:
>> Hi,
>> 
>> We have several lat/long coordinates for Finland that we would like to 
>> convert into a selected projection (such as ETRS89/ETRS-TM35FIN or other).
>> Could someone inform us about what package and function we should use to 
>> batch converte, and details in the procedure we should be aware of?
> 
> ?rgdal::spTransform
> 
> r-sig-geo is a better place for more specific questions.
> 
> Kind regards,
> 
> Mauricio Zambrano-Bigiarini
> 
> --
> =
> Water Resources Unit
> Institute for Environment and Sustainability (IES) Joint Research Centre 
> (JRC), European Commission TP 261, Via Enrico Fermi 2749, 21027 Ispra (VA), IT
> webinfo: http://floods.jrc.ec.europa.eu/
> =
> DISCLAIMER:
> "The views expressed are purely those of the writer and may not in any 
> circumstances be regarded as sta- ting an official position of the European 
> Commission"
> =
> Linux user #454569 -- Ubuntu user #17469 
> =
> "It is not enough to have knowledge;
> one must also apply it" (Goethe)
> 
>> We do not have additional information to the lat/long coordinates, but this 
>> is may be not necessary?
> 
> 
>> 
>> 
>> 
>> Daniel Flø
>> PhD Fellow, Forest Health
>> The Norwegian Forest and Landscape Institute Pb 115, NO-1431 Ås
>> Office:   (+47) 64 94 90 28
>> Mobile: (+47) 91 14 52 74
>> Skype:floe.daniel
>> -
>> www.skogoglandskap.no<http://www.skogoglandskap.no/>
>> -
>> 
>> 
>>  [[alternative HTML version deleted]]
>> 
>> 
>> 
>> ___
>> R-sig-ecology mailing list
>> R-sig-ecology@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>> 
> 
> ___
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
> ___
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology

-- 
Jari Oksanen, Dept Biology, Univ Oulu, 90014 Finland

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


Re: [R-sig-eco] Conversion of lat/long coordinates to ETRS89

2013-03-20 Thread Levy, Yair
Dear Mauricio,


I would confirm the use of rgdal::spTransform as appropriate. Also, one could 
add creating a CRS database as follows:

#European Petroleum Survey Group list creation
EPSG <- make_EPSG()

The geographical ETRS89 CRS is then the following I believe:

#ETRS89 (= EUREF89 = GRS80)
CRS("+init=epsg:4258")


Applying spTransform following this function's instructions shouldn't be a 
challenge I believe. I would strongly recommend comparing your new 
geographical/cartographical projections the first time you use this function in 
order to validate their accuracies.

Please let me know if it worked.

Best regards,





Yaïr Levy
Researcher
Flemish Government
Mobility and Public Works Department
Flanders’ Hydraulics
Berchemlei 115 - 2140 Antwerpen
T. 03 224 61 89 - G. 0476 75 47 25 - F. 03 224 60 36
www.watlab.be 

 Before printing, think about the environment!


-Oorspronkelijk bericht-
Van: r-sig-ecology-boun...@r-project.org 
[mailto:r-sig-ecology-boun...@r-project.org] Namens Mauricio Zambrano-Bigiarini
Verzonden: mercredi 20 mars 2013 09:29
Aan: r-sig-ecology@r-project.org
Onderwerp: Re: [R-sig-eco] Conversion of lat/long coordinates to ETRS89

On 20/03/13 08:33, Daniel Flø wrote:
> Hi,
>
> We have several lat/long coordinates for Finland that we would like to 
> convert into a selected projection (such as ETRS89/ETRS-TM35FIN or other).
> Could someone inform us about what package and function we should use to 
> batch converte, and details in the procedure we should be aware of?

?rgdal::spTransform

r-sig-geo is a better place for more specific questions.

Kind regards,

Mauricio Zambrano-Bigiarini

--
=
Water Resources Unit
Institute for Environment and Sustainability (IES) Joint Research Centre (JRC), 
European Commission TP 261, Via Enrico Fermi 2749, 21027 Ispra (VA), IT
webinfo: http://floods.jrc.ec.europa.eu/
=
DISCLAIMER:
"The views expressed are purely those of the writer and may not in any 
circumstances be regarded as sta- ting an official position of the European 
Commission"
=
Linux user #454569 -- Ubuntu user #17469 
=
"It is not enough to have knowledge;
one must also apply it" (Goethe)

> We do not have additional information to the lat/long coordinates, but this 
> is may be not necessary?


>
>
>
> Daniel Flø
> PhD Fellow, Forest Health
> The Norwegian Forest and Landscape Institute Pb 115, NO-1431 Ås
> Office:   (+47) 64 94 90 28
> Mobile: (+47) 91 14 52 74
> Skype:floe.daniel
> -
> www.skogoglandskap.no<http://www.skogoglandskap.no/>
> -
>
>
>   [[alternative HTML version deleted]]
>
>
>
> ___
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


Re: [R-sig-eco] Conversion of lat/long coordinates to ETRS89

2013-03-20 Thread Mauricio Zambrano-Bigiarini

On 20/03/13 08:33, Daniel Flø wrote:

Hi,

We have several lat/long coordinates for Finland that we would like to convert 
into a selected projection (such as ETRS89/ETRS-TM35FIN or other).
Could someone inform us about what package and function we should use to batch 
converte, and details in the procedure we should be aware of?


?rgdal::spTransform

r-sig-geo is a better place for more specific questions.

Kind regards,

Mauricio Zambrano-Bigiarini

--
=
Water Resources Unit
Institute for Environment and Sustainability (IES)
Joint Research Centre (JRC), European Commission
TP 261, Via Enrico Fermi 2749, 21027 Ispra (VA), IT
webinfo: http://floods.jrc.ec.europa.eu/
=
DISCLAIMER:
"The views expressed are purely those of the writer
and may not in any circumstances be regarded as sta-
ting an official position of the European Commission"
=
Linux user #454569 -- Ubuntu user #17469
=
"It is not enough to have knowledge;
one must also apply it" (Goethe)


We do not have additional information to the lat/long coordinates, but this is 
may be not necessary?







Daniel Flø
PhD Fellow, Forest Health
The Norwegian Forest and Landscape Institute
Pb 115, NO-1431 Ås
Office:   (+47) 64 94 90 28
Mobile: (+47) 91 14 52 74
Skype:floe.daniel
-
www.skogoglandskap.no
-


[[alternative HTML version deleted]]



___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology



___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


[R-sig-eco] Conversion of lat/long coordinates to ETRS89

2013-03-20 Thread Daniel Flø
Hi,

We have several lat/long coordinates for Finland that we would like to convert 
into a selected projection (such as ETRS89/ETRS-TM35FIN or other).
Could someone inform us about what package and function we should use to batch 
converte, and details in the procedure we should be aware of?
We do not have additional information to the lat/long coordinates, but this is 
may be not necessary?



Daniel Flø
PhD Fellow, Forest Health
The Norwegian Forest and Landscape Institute
Pb 115, NO-1431 Ås
Office:   (+47) 64 94 90 28
Mobile: (+47) 91 14 52 74
Skype:floe.daniel
-
www.skogoglandskap.no
-


[[alternative HTML version deleted]]

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology