Hi,

You could try using paste(). This should work (I think)....

spTransform(xy, CRS(paste("+proj=laea +lat_0=",LAT, " +lon_0=", LONG," +x_0=0 +y_0=0 +ellps=WGS84 +units=m +no_defs",sep="")))


HTH

Alex

On 29/05/2013 10:58, Francesco Carotenuto wrote:
> Hi
> to all,
> I
> need to automatically set the geographical coordinates of the projectionâEUR^(TM)s
> centre to project different polygons in different territories. My problem is the
> following.
> By
> using spTransform(xy, CRS("+proj=laea +lat_0=LAT +lon_0=LONG +x_0=0 +y_0=0
> +ellps=WGS84 +units=m +no_defs")), Â I would like to setÂ  +lat_0 and +long_0 as objects (here âEURoeLATâEUR? and
> âEURoeLONGâEUR?) that I automatically generated. Unfortunately, this function doesnâEUR^(TM)t
> read objects (even if âEURoeas.numericâEUR?) but only numerical values set manually. Is
> there a way to set these coordinates as objects?
> Many
> thanks.
> 	[[alternative HTML version deleted]]
>
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo


	[[alternative HTML version deleted]]

