[R-sig-eco] Conversion of lat/long coordinates to ETRS89
Jari Oksanen
jari.oksanen at oulu.fi
Wed Mar 20 10:32:43 CET 2013
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-bounces at r-project.org [mailto:r-sig-ecology-bounces at r-project.org] Namens Mauricio Zambrano-Bigiarini
> Verzonden: mercredi 20 mars 2013 09:29
> Aan: r-sig-ecology at 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 at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>>
>
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
--
Jari Oksanen, Dept Biology, Univ Oulu, 90014 Finland
More information about the R-sig-ecology
mailing list