[R-sig-Geo] Proper PROJ settings for lat-long?

Robert J. Hijmans r.hijmans at gmail.com
Sat Oct 2 12:07:14 CEST 2010


Jonathan,

I do not think so, but I think you can do something like:

crd <- coordinates(x)
crd[crd[,1] > 180,  1] <- crd[crd[,1] > 180, 1] - 360
sp <- SpatialPoints(crd)

Robert


On Fri, Oct 1, 2010 at 9:42 PM, Jonathan Greenberg
<greenberg at ucdavis.edu> wrote:
> Folks:
>
> I have two sets of spatialpoints data, one that is in lat long which
> longitude ranging from -180 to 180, and another that ranges from 0 to 360.
>  What are the appropriate proj settings for these two different datasets
> such that one can be properly reprojected to the other?  I have:
>
> "++proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" for the dataset ranging
> -180 to 180 -- is this right?
>
> --j
>
> --
> Jonathan A. Greenberg, PhD
> Assistant Project Scientist
> Center for Spatial Technologies and Remote Sensing (CSTARS)
> Department of Land, Air and Water Resources
> University of California, Davis
> One Shields Avenue
> Davis, CA 95616
> Phone: 415-763-5476
> AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list