Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Removing Network Offset

you can set netconvert option --proj "proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs" to achieve this

(during initial import from osm)

Am Mi., 12. Juni 2024 um 15:21 Uhr schrieb Rehab Shahin via sumo-user <sumo-user@xxxxxxxxxxx>:
Hi Pablo,

Thanks for your reply.

I tried the above option but the projection in the generated file seems to be in UTM:

<location netOffset="-627524.66,-5928337.54" convBoundary="0.00,0.00,34836.65,12234.13" origBoundary="-1.077903,53.431959,-0.514678,53.683271" projParameter="+proj=utm +zone=30 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"/>

while I need it to be in web mercator, like the following line (from a network file that was generated without removing the offset):

    <location netOffset="119991.62,-7073878.93" convBoundary="0.00,-0.00,58818.34,20332.65" origBoundary="-1.077903,53.431959,-0.514678,53.683271" projParameter="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"/>



Rehab Shahin
Research Engineer ‑ Transport Modelling and Simulation
rehab.shahin@xxxxxxxxxx
+44(0) 20 3514 1170
 | 
+1 (929) 265‑5193
LinkedIn
Twitter
YouTube
This e-mail is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have received it by mistake please let us know and delete it from your system. E-mails are not secure and cannot be guaranteed to be error-free as they can be intercepted, amended, lost or destroyed, or contain viruses. 
Hadean Supercomputing Ltd, is registered in England with number 09808169 and has its registered office 9 Appold St, London EC2A 2AP, UK
On Tue, 11 Jun 2024 at 18:28, Pablo Alvarez Lopez via sumo-user <sumo-user@xxxxxxxxxxx> wrote:

Hi Rehab,


try this option: --offset.disable-normalization

if you're using a netconvert script, put:

    <processing>
        <offset.disable-normalization value="true"/>
    </processing>


Regards


Von: sumo-user <sumo-user-bounces@xxxxxxxxxxx> im Auftrag von Rehab Shahin via sumo-user <sumo-user@xxxxxxxxxxx>
Gesendet: Dienstag, 11. Juni 2024 17:54:18
An: sumo-user@xxxxxxxxxxx
Cc: Rehab Shahin
Betreff: [sumo-user] Removing Network Offset
 
Hi,

I have imported a network from openstreetmap and I converted it into a sumo net file using netconvert.
As this conversion has shifted the network origin to the bottom left, I wonder if there is an option, or a script, to remove this offset? (in web Mercator projection)? 

kind regards,
Rehab

Rehab Shahin
Research Engineer ‑ Transport Modelling and Simulation
rehab.shahin@xxxxxxxxxx
+44(0) 20 3514 1170
 | 
+1 (929) 265‑5193
LinkedIn
Twitter
YouTube
This e-mail is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have received it by mistake please let us know and delete it from your system. E-mails are not secure and cannot be guaranteed to be error-free as they can be intercepted, amended, lost or destroyed, or contain viruses. 
Hadean Supercomputing Ltd, is registered in England with number 09808169 and has its registered office 9 Appold St, London EC2A 2AP, UK
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top