Issue with Displaying Agents in GIS

8 views
Skip to first unread message

adawal urbain

unread,
Sep 12, 2025, 8:28:55 AMSep 12
to GAMA

Dear ,

I am having trouble displaying another species in my GIS. Once the GIS is displayed, when I attempt to show people (agents), they do not appear. I am using the latest version of the GAMA Platform.

Here is a simple example of the code:


model model4


global {

int nb_people <- 21;

file roads_shapefile <- file("../includes/route.shp");

file buildings_shapefile <- file("../includes/maison.shp");

geometry shape <- envelope(roads_shapefile);


init{

create road from: roads_shapefile;

create building from: buildings_shapefile;

create people number:nb_people {

location <- any_location_in(one_of(building));

}

}


}


species people skills:[moving]{

reflex mmoving{

do wander;

}

aspect circle {

draw circle(2) color: #green;

}

}


species road {

aspect geom {

draw shape color: #black;

}

}


species building {

aspect geom {

draw shape color: #gray;

}

}


experiment main type: gui {

parameter "Nb people " var: nb_people min: 1 max: 2147;


output {

display map type: opengl {

species road aspect:geom;

species building aspect:geom;

species people aspect:circle;

}


}

}

I would appreciate any assistance you can provide.

Thank you for your help!

Best regards,
ADAWAL urbain

Benoit Gaudou

unread,
Sep 12, 2025, 11:08:17 AMSep 12
to gama-p...@googlegroups.com
Dear,
Try to increase the size of the circle to display people agents. (to fit with the scale of the environment coming from shapefiles).
Cheers
Benoit

--
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 visit https://groups.google.com/d/msgid/gama-platform/5d10095b-c5cc-4e7f-b1ef-4f499be772bbn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages