[R-sig-Geo] reprojecting shape files (change coordinates)
Tom Gottfried
tom.gottfried at o2mail.de
Fri Jun 22 06:05:10 CEST 2012
Have a look at the manual page for spTransform() in package rgdal.
HTH,
Tom
Am 21.06.2012 14:13, schrieb Marion Wenty:
> Dear all,
>
>
> I am trying to put two plots created with two different shape files
>
> on top of each other.
>
>
> They have got different coordinates and I would like to change them
> (reproject the shape files) in order for them to
>
>
> be exactly on top of each other.
>
>
> I know that there are packages but I didn't understand which commands
> I have to use.
>
>
>
> first shape file:
>
> Object of class SpatialPolygonsDataFrame
> Coordinates:
> min max
> x 112518.2 685444.5
> y 219903.9 514862.9
> Is projected: NA
> proj4string : [NA]
>
>
>
> second shape file:
>
> Object of class SpatialPolygonsDataFrame
> Coordinates:
> min max
> x 112521.4 685441.9
> y 275473.5 570451.2
> Is projected: NA
> proj4string : [NA]
>
>
> Does anyone know the answer to this?
>
>
> Thank you very much for your help in advance!
>
>
> Marion
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list