2014-06-22 5 views
0

다른 투영 시스템과 다른 범위의 두 개의 geotiff 파일을 동기화하고 싶습니다. 나는 spatial_sync_raster를 사용해 보았지만 작동하지 않았다. 어떻게해야합니까? 아래는 파일의 세부 사항입니다. 이 코드다른 투영법을 사용하는 래스터를 동기화하는 방법

을 시도 할 때 나는 오류가

class  : RasterLayer 
band  : 1 (of 3 bands) 
dimensions : 480, 480, 230400 (nrow, ncol, ncell) 
resolution : 1, 1 (x, y) 
extent  : 0, 480, 0, 480 (xmin, xmax, ymin, ymax) 
coord. ref. : NA 
data source : D:\Test R\preqies\lc_2005.tif 
names  : lc_2005 
values  : 0, 255 (min, max) 

class  : RasterLayer 
dimensions : 869, 1201, 1043669 (nrow, ncol, ncell) 
resolution : 100, 100 (x, y) 
extent  : 771507.8, 891607.8, 9788643, 9875543 (xmin, xmax, ymin, ymax) 
coord. ref. : +proj=utm +zone=47 +south +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0 
data source : D:\Test R\preqies\lc_2010.tif 
names  : lc_2010 
values  : 1, 22 (min, max) 

landuse2<-spatial_sync_raster(landuse2, landuse1, method = "ngb") 

**Error in rawTransform(projfrom, projto, nrow(xy), xy[, 1], xy[, 2]) : 
    no arguments in initialization list** 

사람이 말해 줄 수, 뭐죠 내 코드 나던 작업을 할 부분인가? 같은 투사를 추가 감사

답변

1

시도는 :

projection(landuse2)<- "+proj=utm +zone=47 +south +datum=WGS84 +units=m +no_defs +ellps=WGS84" 

landuse2<-spatial_sync_raster(landuse2, landuse1, method = "ngb") 

은 저도 같은 문제를 겪고 난 사건을 해결했다. 행운