Dynamically select a geographical zone where to work

36 views
Skip to first unread message

Annalisa Minelli

unread,
Mar 27, 2015, 7:02:04 AM3/27/15
to gama-p...@googlegroups.com
Hi all,
in my model, I got to deal with some GIS data and I'd like to perform an analysis in reason of the spatial extension of a specific geographical zone (which is represented by a portion of the "World").
Thinkin' about how to do it easily, I supposed that giving in input to GAMA the 4 couples of coordinates of a bounding box (which could be for example the rectangular zoom on the studied zone) could be a solution. But how can I do this dynamically?
or - even better - how can I connect a webgis platform to GAMA? 
in fact the ideal should be simply to draw a rectangle on a window and do the overlap of all the layers involved before importing them in GAMA, that's the reason why I thought about a webgis..

Thanks in advance..

all the best,
Annalisa

Srirama Bhamidipati

unread,
Mar 27, 2015, 8:35:09 AM3/27/15
to gama-p...@googlegroups.com
Hallo,

I propose the following, but just an idea ... I never implemented it.But should work.

first draw a shape (with available shapes in gama or with your coupled coordinates) and then use the (spatial) intersect operator with this geometry on all other overlapping layers (agents, species) . and let this intersect result (assign) into new geometries or preferably shapefiles so that you can retain the attributes. At this moment when you think you have assigned these to 'new' create statements to -create- new "sub-region agents". Then make sure you kill (die) all other agents or design you code carefully (with conditional statements) so that you do not have any active reflexes or actions for those agents outside this zoomed (shape)  area. 

Then go on to activate reflexes specific to this zoomed sub-region, run your code and get the results. When happy, kill them or store them (with save statement) and reactivate your bigger (complete) world. In this way you make things dynamic (based on reflexes and step-conditioned code)

Do you see what I am suggesting? If you are able to do this, may you can then refine your questions :) :)

I add a picture may  be others get better ideas. 

regards,
Srirama
zooming.jpg

Annalisa Minelli

unread,
Mar 27, 2015, 11:29:10 AM3/27/15
to gama-p...@googlegroups.com
Tanks Srirama,
in fact this is one of the options I was thinking about.. but for sure, doing all these "preliminary" geographical operations into a GIS-based platform instead of into a Multi Agent platform could (maybe!) be much more performing.
I was evaluating the use of the gama-headless package too but it's clear that, in this way, we are using GAMA through another software and I'd like to use another software through GAMA.. I don't know if it's clear :-)
so, as far as I don't know if the link between a GIS and GAMA has already been created (just like for R or Postgres/GIS), I think I'm gonna use your solution..

Many thanks in the meantime,
Annalisa

Srirama Bhamidipati

unread,
Mar 27, 2015, 12:27:37 PM3/27/15
to gama-p...@googlegroups.com
hmm, if it suffices (for what you want to do) with use of GIS libraries in R ... then you must look options to call R from within GAMA like here


I rest my case, you are more experienced in GIS :)

srirama
Reply all
Reply to author
Forward
0 new messages