我试图在模型中包括5个栅格,所有栅格都来自同一区域,但是当我应用多个栅格时,会出现以下扩展错误。
扩展例外:尺寸(宽度= 334991高度= 334992)太大 观察者运行GIS时出错:APPLY-RASTER 由过程DISPLAY-CLASES-IN-PATCHES调用 由Button'display-clases-in-Patchs'调用
我该怎么办?我认为与
有关gis:set-world-envelope (gis:envelope-union-of (gis:envelope-of apt-dataset) (gis:envelope-of clases-dataset))
有什么问题吗?
extensions [gis]
globals [clase-dataset
apt_arroz-dataset
]
patches-own [clase
apt_arroz
]
设置
clear-all
gis:load-coordinate-system ("C:/Users/Juan Felipe/Desktop/WCS/Capas Orinoquia/ABM_gis/orq_abm.prj")
set clase-dataset gis:load-dataset "C:/Users/Juan Felipe/Desktop/WCS/Capas Orinoquia/ABM_gis/coberturas4_abm.asc"
set apt_arroz-dataset gis:load-dataset "C:/Users/Juan Felipe/Desktop/WCS/Capas Orinoquia/ABM_gis/apt_arroz_abm.asc"
gis:set-world-envelope (gis:envelope-union-of (gis:envelope-of apt_arroz-dataset) (gis:envelope-of clase-dataset))
reset-ticks
end
to display-clases-in-patches
gis:apply-raster clase-dataset clase
let min-clase gis:minimum-of clase-dataset
let max-clase gis:maximum-of clase-dataset
ask patches
[ if (clase >= 0)
[ set pcolor scale-color black clase min-clase max-clase ] ]
end
to display-apt_arroz-in-patches
gis:apply-raster apt_arroz-dataset apt_arroz
let min-apt_arroz gis:minimum-of apt_arroz-dataset
let max-apt_arroz gis:maximum-of apt_arroz-dataset
ask patches
[ if (apt_arroz >= 0)
[ set pcolor scale-color black clase min-apt_arroz max-apt_arroz ] ]
end