2
属性在我的NetLogo模型,我在一个形状文件我怎样才能获得代理与shape文件中的NetLogo
set map gis:load-dataset "land_use.shp"
gis:set-world-envelope gis:envelope-of map
加载互动,我可以根据颜色是否这种形状文件的属性他们在水上或在陆地上如下:
foreach gis:feature-list-of map
[if gis:property-value ? "CODE_12" = "523" [ gis:set-drawing-color blue gis:fill ? 2.0]
if gis:property-value ? "CODE_12" = "522" [ gis:set-drawing-color green gis:fill ? 2.0]
if gis:property-value ? "CODE_12" = "521" [ gis:set-drawing-color green gis:fill ? 2.0] ]
这样做,我该如何让我的代理根据它们的颜色与补丁进行交互?
例如,在没有GIS数据的标准模型,我可以有这样的事情:
if [pcolor] of patch-here = blue [set size 2]
感谢