CityScope / CS_Simulation_GAMA

Agent Based Simulation platform for CityScope
GNU General Public License v3.0
31 stars 21 forks source link

Init in GamaBrix vs Init in cityIO #151

Closed agrignard closed 4 years ago

agrignard commented 4 years ago

We are working on a seamless integration of GamaBrix in any Gama model. The idea is to embed all the code related to GamaBrix in GamaBrix.gamlso far most of the code is include except this part which is still in cityIO.gaml

file geogrid <- geojson_file("https://cityio.media.mit.edu/api/table/"+city_io_table+"/GEOGRID","EPSG:4326");
geometry shape <- envelope(geogrid);

Ideally we would like to call this function in the init of cityIO.gaml where this fucntion is defined in GamaBrix.gaml like this

    action setup_cityio_world {
        geogrid <- geojson_file("https://cityio.media.mit.edu/api/table/"+city_io_table+"/GEOGRID","EPSG:4326");
        geometry shape <- envelope(geogrid);
    }

However when we do so (by calling setup_cityio_world in the initof cityIO.gaml the behavior is different and is not doing what we want.

@ptaillandier can you help us on this?

agrignard commented 4 years ago

Great!! Thank you Patrick!