Dear all,
I have recently started working on Gama to run simulation experiments for my PhD thesis. The documentation you provide is really helpful. Let me also say that your work with COMOKIT is really inspiring.
I run some issues, though, with the loading of GIS data in my simulation. I have decided to work with .OSM data, although I see more options in your documentation for shapefiles. Are OSM data not that appropriate for some reason in GAMA?
Since I am from Greece, I am trying to run my simulations there, and I have encountered some problems, particularly buildings missing from the simulation. Taking, for example, my university, National Technical University of Athens, and trying to simulate the campus, buildings are missing, although taken into account in the filtering. For example the building "Electrical and Comp. Eng. School" although it is a "university" building and I have considered it in the filtering (as you can see below) is not displayed. On the contrary, the building beside, “Mining Engineering and Metallurgy school” is well displayed. I also attach a screenshot of my simulation and the referred .osm data file.
The filtering I have used is:
map filtering <- (["highway"::["primary", "secondary", "tertiary", "motorway", "living_street","residential", "unclassified", "service", "secondary_link", "pedestrian", "footway", "steps"],
"building"::["yes", "dormitory", "university", "church", "office", "residential", "commercial", "house", "hotel", "apartments", "industrial", "retail", "hospital", "government"]]);
And the code after that:
//OSM file to load
file<geometry> osmfile <- file<geometry>(osm_file("../includes/emp1.osm", filtering)) ;
//compute the size of the environment from the envelope of the OSM file
geometry shape <- envelope(osmfile);
create osm_agent from:osmfile with: [highway_str::string(read("highway")), building_str::string(read("building"))];
//from the created generic agents, creation of the selected agents
ask osm_agent {
if (length(shape.points) = 1 and highway_str != nil ) {
create node_agent with: [shape ::shape, type:: highway_str];
} else {
if (highway_str != nil ) {
create road with: [shape ::shape, type:: highway_str];
} else if (building_str != nil){
create building with: [shape ::shape];
}
}
//do the generic agent die
do die;
}
I would be more than grateful if you could help me understand what I am doing wrong.
Kind Regards,
Ariadni
--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/CAD3_mVdVdwQHDBXT0VWGZnr8TGjB-uo8wXwS9QcS%2B4x8G-QLbA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/CAD4GtYG3QE%3DQ9J7FGCGk15jyqBSFj1SASFmjwGvsxfb8btgZVg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/858b344a-4ae9-4921-a89d-91c6b4737803n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/58510954-2d4c-4deb-83f0-89bf33e1af5en%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/58510954-2d4c-4deb-83f0-89bf33e1af5en%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/xDyKRqK4HF0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/CANNWKoep68RVpYdiuqkiKO2CNG2DYuQPt4o1DiMEf%3DRxt%2B5KqQ%40mail.gmail.com.