[R-sig-Geo] point.in.polygon() or over() help?

Chris Waigl chris.waigl at gi.alaska.edu
Thu May 23 19:08:42 CEST 2013


> 
> Hi Roger- Getting closer to fixing the problem. You were correct with the
> proj4string differing. The fish capture coordinates are "NA" and the Basins
> are "+proj=longlat +ellps=WGS84." So now I am trying to convert the points.
> Here is the code I input:
> 
> cap.coords.sp<-spTransform(cap.coords.sp,CRS("+proj=longlat"))

Would this work:

proj4string(cap.coords.sp) <- "+proj=longlat +datum=WGS84"

(Or maybe "+proj=longlat +ellps=WGS84" -- not sure why I use +datum and you use +ellps.)

Best regards,

Chris Waigl


More information about the R-sig-Geo mailing list