Netlogo GIS坐标转换问题
Netlogo GIS coordinate transformation issue
我想将基于 shp 文件的 NetLogo 模拟输出光栅导出,使用:
to export-GIS
let patches_out nobody
ask one-of patches [set patches_out gis:patch-dataset pcolor]
gis:store-dataset patches_out (word "usos" ".asc")
end
但它输出:
Extension exception: you must define a coordinate transformation before using any other GIS features
error while patch 17 -10 running GIS:PATCH-DATASET
called by procedure EXPORT-GIS
called by Button 'export-GIS'
这个坐标变换怎么定义?
解决了在设置阶段添加以下行的问题:
set envelope gis:load-dataset "data/land.shp"
gis:set-world-envelope gis:envelope-of envelope
我想将基于 shp 文件的 NetLogo 模拟输出光栅导出,使用:
to export-GIS
let patches_out nobody
ask one-of patches [set patches_out gis:patch-dataset pcolor]
gis:store-dataset patches_out (word "usos" ".asc")
end
但它输出:
Extension exception: you must define a coordinate transformation before using any other GIS features
error while patch 17 -10 running GIS:PATCH-DATASET
called by procedure EXPORT-GIS
called by Button 'export-GIS'
这个坐标变换怎么定义?
解决了在设置阶段添加以下行的问题:
set envelope gis:load-dataset "data/land.shp"
gis:set-world-envelope gis:envelope-of envelope