Simulation/Shapes

=Using additional Polygons and POIs within the Simulation=

Since version 0.9.4, it is possible to include geometry files into the additional files section of a simulation configuration which contain definition of polygons or points of interest. These shapes are currently meant to improve a simulation's appearence and to allow an easier debugging. No special interaction with them is implemented, yet.

Both polygons and points of interest may be located within a "layer". Shapes with lowest layer values are below those with a higher layer number. The network itself is drawn as layer 0. An additional file may contain definitions for both points of interest and polygons.

Geometrical objects may either be defined "by hand" or imported using POLYCONVERT. A valid geometry-file can be given to SUMO as one of the additional files (option: --additional-files ). For usage within SUMO-GUI, you have to add it to the list of additional files to load within the used SUMO configuration file.

=Definitions= The geometrical objects (POIs, polygons) are stored one by one into an "additional file". Currently, the root element may arbitary.

Polygon Definitions
A polygon is defined as following: " type="" color="" fill="" layer="" shape="<2D-POSITION>[ <2D-POSITION>]*"/>

These attributes have the following meanings:

POI (Point of interest) Definitions
A point-of-interest is defined as following: " type="" color=",," layer="" [(x="" y="") | (lane="" pos="")]/>

It means that the position a point-of-interest is located at may be given either using explicite x/y-coordinates or a lane name and a position on this lane. So, the attributes have the following meanings: (*) Either x / y or lane / pos or lon / lat must be given

=See Also=
 * See the description of POLYCONVERT in order to know how polygons/POIs can be imported from other sources
 * Developer/Implementation Notes/Drawing in sumo-gui describes how SUMO-GUI renders loaded structures (for developers)
 * You can read variables of loaded PoIs and read variables of loaded polygons via TraCI