Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
867 views
in Technique[技术] by (71.8m points)

arcgis - Points incorrectly plotted in R when creating a home range

I created a home range in R using kernelUD but when I exported it into ArcGIS I realised the points/home range had been plotted in the wrong place. They were meant to be in South Africa but for some reason they occur in the south Atlantic ocean. Does anyone know how to change this? I've included the code below.

elephant.all.sp <- SpatialPoints(elephant[,c("GPS.S","GPS.E")])
proj4string(elephant.all.sp)=CRS("+init=epsg:32736")
elephant.all.sp <- spTransform(elephant.all.sp,CRS("+init=epsg:32736"))
plot(elephant.all.sp)

e.all.kde <- kernelUD(elephant.all.sp, h="href")
image(e.all.kde)

e.all.rast <- (raster(as(e.all.kde, "SpatialPixelsDataFrame")))
plot(e.all.rast)
plot(elephant.all.sp, add=T, col="blue")

e.all.95.kde <- getverticeshr(e.all.kde, percent = 95,unin = "m",unout = "km2")
plot(e.all.95.kde)

writeOGR(e.all.95.kde, dsn = ".", layer = "PilotWhale50KDE_Final",
driver="ESRI Shapefile")

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...