eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.51k stars 1.42k forks source link

consider refactoring POI icons #14301

Open namdre opened 8 months ago

namdre commented 8 months ago

icon functionality could be achieved with the existing imgFile POI attribute and some pre-defined images with the following advantages:

@angelobanse @palvarezlopez comments?

palvarezlopez commented 8 months ago

@namdre the problem of imgFile is, exactly, the pre-defined images. The objetive of the icon is tho have these predefined images already embedded in the sumo binarie. If the user has to search and put the image in the same folder of simulation, then normally this feature will not be used.

The main objetive of this new feature is the data downloaded from OSM maps, to have a quick representation of objects like trees, signals, etc.

namdre commented 7 months ago

The simulation already loads xsd files from SUMO_HOME/data and we also provide 3D models in data/3D for convenience. It wouldn't hurt to automatically load images from a new data/icons folder (for sumo-gui and netedit). Making these easily accessible in the netedit attribute dialog is then the only new code necessary.