[R-sig-Geo] shapefile on the wrongly placed
MacQueen, Don
macqueen1 at llnl.gov
Wed May 23 22:10:23 CEST 2012
May we assume you are using R to do this?
- Read it into R using an appropriate function from an R package. (I use
readOGR from rgdal)
- Make sure that it is assigned the correct projection.
- Transform it to the desired projection using spTransform()
This has always worked for me.
The help page for spTransform has examples.
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 5/23/12 11:02 AM, "Juan Tomas Sayago" <juantomas.sayago at gmail.com>
wrote:
>Dear list
>I have this shape file created on one location using a specific
>projection
>and when I try to put it into WGS1984 it appears in a different place
>where
>it should be. How do I fix it? What can I do?
>Juan
>
>--
>Juan Tomás Sayago Gómez
>Graduate Research Assistant
>West Virginia University - RRI
>886 Chestnut Ridge Road, Room 520
>P.O. Box 6825
>Morgantown, WV 26506-6825
>
> [[alternative HTML version deleted]]
>
More information about the R-sig-Geo
mailing list