Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Unknown Road Types and Quitting (on error) for Shapefile import

It's hard to tell where the error lies without looking at the input file.
If you could prepare a small input example (with one road that works and another road that fails to load) I will take a look.

regards,
Jakob

Am Mi., 10. Okt. 2018 um 19:23 Uhr schrieb Naess, Brian Fredrik <naess@xxxxxxx>:

Thanks Jakob. Your suggestions did get the network to load. However, most of the road segments didn't actually load. The only segments that did load were classified as residential or all of the *_link roads. None of the motorway, trunk, primary, secondary, or tertiary roads loaded. I didn't modify the osmNetconvert.typ.xml file at all, as it looked like my road types matched up with that file already.


Any suggestions?


Thanks,


Brian


-------------
Brian F. Naess
GIS Analyst and Lecturer, Institute for the Environment
UNC-Chapel Hill
Whitehead 304, CB 1105
Chapel Hill, NC 27599-1105
P: 919-966-9925 | http://www.ie.unc.edu



From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Tuesday, October 9, 2018 4:48 PM
To: Sumo project User discussions
Subject: Re: [sumo-user] Unknown Road Types and Quitting (on error) for Shapefile import
 
Hello,
the 'unknown type' warnings do not prevent the network from being build. They just prevent proper vehicle permissions from being set.
To avoid this you can load the type file while importing the shapefile (--type-files osmNetconvert.typ.xml)

The critical error is "could not build ..-ramp...".
You could either
- remove the option --ramps.guess
or
- add the option --ignore-errors

The error itself only happens when trying to split an edge into multiple parts while generating off-ramps and on-ramps and then something goes wrong with the geometry computation. Maybe the offending edges are very short or have otherwise weird geometry.

regards,
Jakob


Am Di., 9. Okt. 2018 um 19:19 Uhr schrieb Naess, Brian Fredrik <naess@xxxxxxx>:

I have two problems on a shapefile import. Using this command


netconvert -v -H -o oaklandfullnet.xml --output.street-names true --shapefile-prefix alameda-county-oakland-roads-full-wgs84 --shapefile.street-id edge_id --shapefile.type-id highway --shapefile.speed speedkm --tls.guess-signals true --ramps.guess true


the script pushes all the way through to what appears the end, with output like this:

-----------------------------------------------------

Summary:

 Node type statistics:

  Unregulated junctions       : 0

  Dead-end junctions          : 27477

  Priority junctions          : 23681

  Right-before-left junctions : 0

 Network boundaries:

  Original boundary  : -122.36,37.45,-121.49,37.91

  Applied offset     : -557198.47,-4145790.89

  Converted boundary : 0.00,0.00,75810.61,49655.58

-----------------------------------------------------

Quitting (on error).


If I go back up to the node/edge loading, I see a warning for every single edge about the road type. Something like:

Warning: Unknown type 'motorway' for edge 'Nimitz_Freeway'


I'm using modified OSM data, so the road types already match up with the types in  

osmNetconvert.typ.xml. How do I ensure that the edges are loading the proper type?

Despite those warnings, the script presses on, and seems to finish the import and then project properly:

done.

 Import done:

   196570 nodes loaded.

   38058 edges loaded.

Proj projection parameters used: '+proj=utm +zone=10 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'.


However, later on, I finally see an error message, and I suspect this is what is keeping the network from generating properly.

Guessing and setting on-/off-ramps... 

Error: Ups - could not build on-ramp for edge '146495'!

Error: Ups - could not build off-ramp for edge '5724'!

done (113ms).


So, are these the errors that are preventing the network from generating? How might I go about debugging this?

Thanks!

Brian


-------------
Brian F. Naess
GIS Analyst and Lecturer, Institute for the Environment
UNC-Chapel Hill
Whitehead 304, CB 1105
Chapel Hill, NC 27599-1105
P: 919-966-9925 | http://www.ie.unc.edu
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Back to the top