Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Trying to cut a map and keep edges with coordinates

The cartesian coordinates to use in are the same coordinates that are shown in sumo-gui in the lower right corner (or that you get when right-clicking on a location and select 'copy cursor position to clipboard'.
The simplest way to obtain such coordinates is to open the network in netedit, create a 'poly' of the desired shape and then copy its shape attribute.
Note, that you can also use netedit directly to crop your network.
(For the record, the default coordinate transformation used by netconvert is UTM which has a different EPSG code for each zone but netconvert also applies a fixed offset)

Am Do., 22. Sept. 2022 um 14:55 Uhr schrieb Lucien HEMMI <lucien.hemmi@xxxxxxxxx>:

I have a SUMO network. I want to cut it in a smaller network to work with, which mean keeping only the edges in a part of the map.
For that purpose, i have found 2 functions : (min X, min Y, max X, max Y)

From what i understand, these functions are pretty similar except they don't accept the same type of coordinates. I tried to use which is asking Cartesian coordinate.
However, considering that there are more than 90 results if you look for EPSG searching cartesian.
I tried the most obvious one with EPSG4978 which basically correspond to WGS84 - Cartesian 3D Geocentric. 
I took GPS coordinates that interested me on OpenStreetMap, converted them to radian then converted them in EPSG4978 (i used Pyproj making my own code, but also online tools and it works just fine).
It cause an error telling me there is no existing edges which let me suppose i have entered the wrong coordinate. (I have tried with absurd min and max and it does work and give me all the map).

So do i use the correct EPSG for this function ? If yes, does my process about convertion has issues ?
Any hint would be greatly appreciated,

Thanks in advance,

Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. Vos données personnelles sont traitées conformément aux lois et règlements en matière de protection des données, notamment le RGPD. Pour en savoir plus sur le traitement de vos données personnelles, cliquez

The information contained in this e-mail and any attachments are intended solely for the addressees. If you received this email in error, please contact the sender and delete the email from your system. All personal details are treated in accordance with the relevant data protection regulations, in particular GDPR. Click for more information about the collection of your personal data.

Diese Nachricht und allfällige angehängte Dokumente sind vertraulich und nur für den/die Adressaten bestimmt. Sollten Sie nicht der beabsichtigte Adressat sein, bitten wir den Absender zu verständigen und die Information zu vernichten. Alle personenbezogenen Daten werden gemäß den einschlägigen Datenschutzrechtlichen Vorschriften, insbesondere DSGVO, mit höchster Vertraulichkeit behandelt.
sumo-user mailing list
To unsubscribe from this list, visit

Back to the top