Bonjour à tous,--J'ai une question, j'ai cherché dans la doc et rien n'est écrit à ce sujet.Y a t'il un opérateur qui permet de concevoir des graphes non connexes mais avecdes composantes connexes en fournissant un shapefile ?Merci beaucoup,Damien
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 post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.
model tutorial_gis_city_traffic
global {
file shape_file_roads <- file("../includes/road.shp");
file shape_file_bounds <- file("../includes/bounds.shp");
geometry shape <- envelope(shape_file_bounds);
float step <- 10 #mn;
graph the_graph;
init {
create road from: shape_file_roads ;
the_graph <- as_edge_graph(road);
write the_graph;
}
}
species road {
rgb color <- #black ;
aspect base {
draw shape color: color ;
}
}
experiment road_traffic type: gui {
parameter "Shapefile for the roads:" var: shape_file_roads category: "GIS" ;
parameter "Shapefile for the bounds:" var: shape_file_bounds category: "GIS" ;
output {
display city_display type:opengl {
species road aspect: base ;
}
}
}