在我的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] 谢谢
发布于 2016-05-17 09:22:59
我找到了解决我的问题的办法:
to check
let estuaries gis:find-features map "CODE_12" "522"
if gis:intersects? estuaries self [
set color red
]
endhttps://stackoverflow.com/questions/36628307
复制相似问题