Hi Simone,

The answer to your question is yes. The coordinates of the world refer to the spatial coordinate system of the data. It seems you are using a dataset representing a very small area.

Regards,

Luís


On 25 November 2013 13:11, Simone Gabbriellini <[log in to unmask]> wrote:
I think I can answer my question, I forget to add agentPortrayal in
setupPortrayal()... :(

just a last thing... in CampusWorldWithUI there is this line:

agentPortrayal.setPortrayalForAll(new GeomPortrayal(Color.RED, 10.0, true));

I have to lower 10 to 0.01 in order to have dots on my GUI and not see
everything red... is it something that depends on the GIS shape file
dimension?

best regards,
Simone

2013/11/24 Simone Gabbriellini <[log in to unmask]>:
> Dear List,
>
> I have created a world by importing some GIS vector files, and now I
> am trying to add some agent randomly placed on this world.
>
> I have followed the CampusWorldWithUI example to load the shape files,
> but now I'd like to just add some agents - they won't move during the
> simulation. I am wondering how to change the code in the example to
> obtain my goal. In my Agent class, I am trying:
>
> private void assignPosition(DiffCeram state) {
>         pointMoveTo.setCoordinate(new
> Coordinate(state.random.nextInt(100), state.random.nextInt(100)));
>         location.getGeometry().apply(pointMoveTo);
>         getGeometry().geometry.geometryChanged();
>     }
>
> but agents are not displayed. I am afraid that there could be
> something I am missing between the coordinate I am giving and the
> coordinate of the world...
>
> Any hint will be very much appreciated.
>
> Best regards,
> Simone
>
> --
> -----------------------------------------------------------------
>
> Simone Gabbriellini, PhD
>
> Post-doctoral Researcher
> ANR founded research project "DIFFCERAM"
> GEMASS, CNRS & Paris-Sorbonne.
>
> mobile: +39 340 39 75 626
> email: [log in to unmask]



--
-----------------------------------------------------------------

Simone Gabbriellini, PhD

Post-doctoral Researcher
ANR founded research project "DIFFCERAM"
GEMASS, CNRS & Paris-Sorbonne.

mobile: +39 340 39 75 626
email: [log in to unmask]