CityScope / CS_Simulation_GAMA_Energy

GAMA model of Energy consumption, production and mobility
GNU General Public License v3.0
0 stars 0 forks source link

KML Andorra Energy #3

Open LAAP opened 5 years ago

LAAP commented 5 years ago

It can be cool to have a KML output at the model

agrignard commented 5 years ago

I just put a results.kml in the results folder

For now it is just showing the building with there color. We can see later if we want to animate this kml with dynamic color corresponding to the energy consumption for instance.

the concept is to write every building in a kml file using this syntax

reflex add_objects_to_kml when: cycle = 10{ 
  ask building {
    kml_export <- kml_export add_geometry (shape,2.0,class_color_map[usage+scale],class_color_map[usage+scale]);                
    }
  save kml_export to:"../results/result.kmz" type:"kmz";
}
screen shot 2018-09-24 at 12 28 53