Step1: 加载GIS数据
基本模型
//模型名称
model tutorial_gis_city_traffic
//全局定义
global {
//定义模型时间
float step <- 10 #mn;
//初始化
init {
}
}
//创建建筑族
species building {
//类型属性
string type;
//颜色
rgb color <- #gray ;
//定义显示方式
aspect base {
draw shape color: color ;
}
}
//创建道路族
species road {
//颜色
rgb color <- #black ;
//显示方式
aspect base {
draw shape color: color ;
}
}
//实验设置
experiment road_traffic type: gui {
//定义输出
output {
display city_display type:opengl {
species building aspect: base ;
species road aspect: base ;
}
}
}加载GIS数据
通过GIS数据创建代理
模拟范围

Last updated