On Sun, 29 Jan 2017, dave wrote:
If your original data is not in the desired projection, changing the CRS
attributes will not do the transformation for you. In the case of vector
data, you will need to use spTransform(). For raster data, you might be
able to use projectRaster() but I would
If your original data is not in the desired projection, changing the CRS
attributes will not do the transformation for you. In the case of vector
data, you will need to use spTransform(). For raster data, you might be
able to use projectRaster() but I would recommend using gdalwarp().
I wrote a
s and Statistics
University of Houston - Downtown
mailto: hodge...@uhd.edu
From: Tristan Bourgeois <tristan.bourge...@gmail.com>
Sent: Friday, January 27, 2017 4:39 AM
To: Hodgess, Erin
Cc: r-sig-geo@r-project.org
Subject: Re: [R-sig-Geo] R function checking/trans
ourgeois <tristan.bourge...@gmail.com>
> Sent: Friday, January 27, 2017 3:41 AM
> To: r-sig-geo@r-project.org
> Subject: [R-sig-Geo] R function checking/transforming CRS layer R function
>
> Dear all,
>
> I'm trying to build up an r function able to check if the p
t;r-sig-geo-boun...@r-project.org> on behalf of Tristan
Bourgeois <tristan.bourge...@gmail.com>
Sent: Friday, January 27, 2017 3:41 AM
To: r-sig-geo@r-project.org
Subject: [R-sig-Geo] R function checking/transforming CRS layer R function
Dear all,
I'm trying to build up an r function a
Dear all,
I'm trying to build up an r function able to check if the projection system
of a layer is in Lambert93 (WSG code : 2154) .
If the condition is false I want to transform the CRS into Lambert 93.
This is what I wrote :
> CRSfunction<-function(couche)
+ {
+ prj_couche<-CRS(couche)
+