sumo icon indicating copy to clipboard operation
sumo copied to clipboard

Broadcast netedit's viewport bounds in real time

Open wpenistone opened this issue 1 month ago • 6 comments

Hello, I would like to request a new feature for netedit; the ability to obtain or broadcast the viewport's geographic boundary coordinates in real-time as a user pans and zooms, I have searched the documentation and issues and cannot find an existing function for this.

Use Case: My goal is to utilize this data and synchronize other data intakes with the netedit view. The current workaround is to monitor the .view.xml file for changes, but this is not real-time and requires a manual CTRL+S to trigger an update.

Proposed Solution: Could a feature be added to netedit to broadcast its viewport coordinates over a local network port? This could be implemented via a new command-line option, for example: --viewport-broadcast-port <port_number>.

When this option is used, netedit would send a simple UDP packet to localhost:<port_number> containing the current view's convBoundary (west, south, east, north) every time the view changes during panning or zooming.

I believe others would also find this synchrony feature very useful.

wpenistone avatar Nov 01 '25 03:11 wpenistone

Thus far, netedit has not been designed with any kind of process-coupling in mind (unlike sumo-gui). Would you care to elaborate what context this would be used in? This would help us to understand whether the feature would have broader applicability.

namdre avatar Nov 01 '25 07:11 namdre

Thus far, netedit has not been designed with any kind of process-coupling in mind (unlike sumo-gui). Would you care to elaborate what context this would be used in? This would help us to understand whether the feature would have broader applicability.

a very common workflow for creating realistic networks involve having netedit on one monitor and a GIS viewer (e.g. QGIS, web map) on the other, the second monitor / window shows reference layers such as satellite imagery for tracing roads / attributes, or data points like bus stop locations, loop detectors, and as an example, in other applications; building footprints.

wpenistone avatar Nov 01 '25 18:11 wpenistone

Are you aware that it's possible to load the GIS layer or satellite data into netedit with modest effort?

namdre avatar Nov 01 '25 18:11 namdre

I am not, Could you fill me in? Thanks

On Sat, Nov 1, 2025, 21:37 Jakob Erdmann @.***> wrote:

namdre left a comment (eclipse-sumo/sumo#17287) https://github.com/eclipse-sumo/sumo/issues/17287#issuecomment-3476660863

Are you aware that it's possible to load the GIS layer or satellite data into netedit with modest effort?

— Reply to this email directly, view it on GitHub https://github.com/eclipse-sumo/sumo/issues/17287#issuecomment-3476660863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVFHS3QE6EQW2JQUPQROI2332T4VTAVCNFSM6AAAAACK2TL3OWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINZWGY3DAOBWGM . You are receiving this because you authored the thread.Message ID: @.***>

wpenistone avatar Nov 01 '25 18:11 wpenistone

  • polyconvert supports converting osm, shapefiles and geojson into poi and polygon definitions that are loadable by netedit and sumo-gui. This is an easy way to get building or road outlines into netedit
  • sumo-gui and netedit supports loading background raster files (i.e. satellite images). The sumo tool tileGet.py can be used to load tiles from different providers.

namdre avatar Nov 01 '25 19:11 namdre

  • polyconvert supports converting osm, shapefiles and geojson into poi and polygon definitions that are loadable by netedit and sumo-gui. This is an easy way to get building or road outlines into netedit
  • sumo-gui and netedit supports loading background raster files (i.e. satellite images). The sumo tool tileGet.py can be used to load tiles from different providers.

Decals are architecturally limited for complex layers, and large imagery. I can easily run out of video memory by loading high resolution imagery of the entire network. Since a lot of GIS layers are already georeferenced and integrated within applications such as ArcGIS and QGIS, I believe it'd be easier to have this sync rather than do it inside of netedit.

wpenistone avatar Nov 01 '25 20:11 wpenistone