How to draw ellipse

45 views
Skip to first unread message

Tariq Aziz

unread,
Feb 20, 2015, 1:47:45 AM2/20/15
to gama-p...@googlegroups.com
I am new to GAMA. I want to use this platform for Fire simulation. I need to draw an ellipse to define the neighbourhood of a burning building.How i can draw an ellipse on a shapefile? (i have major and minor axis of ellipse) . And how to select buildings under that ellipse?
 
Thanks
 
Regars
Tariq 

Patrick Taillandier

unread,
Feb 20, 2015, 9:43:47 PM2/20/15
to gama-p...@googlegroups.com
HI,

First of all, you should ask your question on the GAMA general mailing
list to have more chance to get an answer. As far as I know, it is not
possible to define an ellipsoid geometry in GAMA. However, it should
be possible to add an new operator to build this kind of geometry.
Note that I currently have a problem with my computer (I have to use a
very old one ...) and I will not be able to define this new operator
before the beginning of March.

Cheers,

Patrick

2015-02-20 7:47 UTC+01:00, Tariq Aziz <tariq....@gmail.com>:
> --
> 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.
>


--
Patrick Taillandier
http://www1.ifi.auf.org/personnel/Patrick.Taillandier/

Patrick Taillandier

unread,
Feb 20, 2015, 9:59:10 PM2/20/15
to gama-p...@googlegroups.com
Oups, sorry, I did not see that your message was posted on the GAMA mailing list. You can forget the first part of my message ;) .

Cheers,

Patrick

Tariq Aziz

unread,
Feb 21, 2015, 7:30:37 AM2/21/15
to gama-p...@googlegroups.com
ok fine . . . . one more thing if i draw a circle rather an ellipse, how  i can select buildings under the circle from shapefile? 

Srirama Bhamidipati

unread,
Feb 23, 2015, 6:00:23 AM2/23/15
to gama-p...@googlegroups.com
Hallo,

If you have the manual or see online wiki for operators like: inside, overlapping, agents_inside, covers etc

regards,
Srirama

Tariq Aziz

unread,
Mar 12, 2015, 4:29:17 AM3/12/15
to gama-p...@googlegroups.com
Hello
i have drawn a circle and now want to select buildings under this. I tried the following

species building {
string type ; 
rgb color <- #gray  ;
aspect base {
draw shape color: color ;
if wind_velocity =5 {}
draw circle(100) color: rgb('red') at: ignition_point empty:true {
list<buildings> buildings_inside -> {building inside self} ;
}
not sure that is it right to select buildings under the cirle? If yes then how i can see the output and one more thing that how to assign five different states to the selected buildings.
Please help
Thanks

Srirama Bhamidipati

unread,
Mar 12, 2015, 6:46:08 AM3/12/15
to gama-p...@googlegroups.com
Hallo,

this is not right. you have to use the geometry data type to make a circle and then make the circle an agent and then you can use one of the various spatial query operators to ask what is  inside or within etc etc. 

so you say 

geometry my_circle <- circle(radius); 

something like that, many examples in the model library. 

regards.
Srirama 

Tariq Aziz

unread,
Mar 12, 2015, 6:48:09 AM3/12/15
to gama-p...@googlegroups.com
Thanks
I try this one

On Thu, Mar 12, 2015 at 3:46 PM, Srirama Bhamidipati <b.sr...@gmail.com> wrote:
Hallo,

this is not right. you have to use the geometry data type to make a circle and then make the circle an agent and then you can use one of the various spatial query operators to ask what is below or inside or within etc etc. 

--
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/QiqXm6RXyyo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages