The error messages suggest that you are deleting nan lines from a .net.xml file and then processing it with netconvert. You should instead delete all nan lines (and only those) from the osm file and then import it anew. Alternatively, use the latest development version of netconvert which can now deal with those 'nan's in osm. https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version
Am Di., 5. Okt. 2021 um 23:58 Uhr schrieb Toprak Fırat < [email protected]>: > I’ve written a script which deletes every nan line and it’s parent and I > get this result: > > Warning: Renaming lane ':4370284578_0_2' to ':4370284578_0_1'. > Warning: Renaming lane ':4370284578_0_3' to ':4370284578_0_2'. > Error: Unknown edge '-14' given in connection. > Error: Unknown edge '-28' given in connection. > Error: Unknown edge '-90' given in connection. > Error: Unknown edge '1' given in connection. > Error: Unknown edge '1' given in connection. > Error: Unknown edge '1' given in connection. > Error: Unknown edge '1' given in connection. > Error: Unknown edge '14' given in connection. > Error: Unknown edge '28' given in connection. > Error: Unknown edge '348' given in connection. > Error: Unknown edge '348' given in connection. > Error: Unknown edge '348' given in connection. > Error: Unknown edge '348' given in connection. > Error: Unknown edge '348' given in connection. > Error: Unknown edge '362' given in connection. > Error: Unknown edge '362' given in connection. > Error: Unknown edge '362' given in connection. > Error: Unknown edge '437' given in connection. > Error: Unknown edge '438' given in connection. > Error: Unknown edge '438' given in connection. > Error: Unknown edge '438' given in connection. > Error: Unknown edge '438' given in connection. > Error: Unknown edge '438' given in connection. > Error: Unknown edge '444' given in connection. > Error: Unknown edge '90' given in connection. > Error: Unknown edge ':251290603_0' given in connection. > Error: Unknown edge ':251290603_0' given in connection. > Error: Unknown edge ':251290603_0' given in connection. > Error: Unknown edge ':251290603_0' given in connection. > Error: Unknown edge ':251290603_0' given in connection. > Error: Invalid lane index '3' for connection from ':4370284578_0'. > done. > Import done: > 52 nodes loaded. > 33 types loaded. > 3 edges loaded. > Error: Failed to build network. > > I’ve also written a script which deletes every nan line, I get this result: > > Warning: Renaming lane ':4370284578_0_2' to ':4370284578_0_1'. > Warning: Renaming lane ':4370284578_0_3' to ':4370284578_0_2'. > Error: Invalid lane index '0' for connection from '-14'. > Error: Invalid lane index '0' for connection from '-28'. > Error: Invalid lane index '0' for connection from '-90'. > Error: Invalid lane index '0' for connection from '1'. > Error: Invalid lane index '1' for connection from '1'. > Error: Invalid lane index '1' for connection from '1'. > Error: Invalid lane index '1' for connection from '1'. > Error: Invalid lane index '0' for connection from '14'. > Error: Invalid lane index '0' for connection from '28'. > Error: Invalid lane index '0' for connection from '348'. > Error: Invalid lane index '1' for connection from '348'. > Error: Invalid lane index '2' for connection from '348'. > Error: Invalid lane index '2' for connection from '348'. > Error: Invalid lane index '2' for connection from '348'. > Error: Invalid lane index '0' for connection from '362'. > Error: Invalid lane index '1' for connection from '362'. > Error: Invalid lane index '1' for connection from '362'. > Error: Invalid lane index '0' for connection from '437'. > Error: Invalid lane index '0' for connection from '438'. > Error: Invalid lane index '1' for connection from '438'. > Error: Invalid lane index '1' for connection from '438'. > Error: Invalid lane index '1' for connection from '438'. > Error: Invalid lane index '1' for connection from '438'. > Error: Invalid lane index '0' for connection from '444'. > Error: Invalid lane index '0' for connection from '90'. > Error: Invalid lane index '0' for connection from ':251290603_0'. > Error: Invalid lane index '1' for connection from ':251290603_0'. > Error: Invalid lane index '2' for connection from ':251290603_0'. > Error: Invalid lane index '3' for connection from ':251290603_0'. > Error: Invalid lane index '4' for connection from ':251290603_0'. > Error: Invalid lane index '3' for connection from ':4370284578_0'. > done. > Error: Edge '-14' needs at least one lane. > Error: Failed to build network. > > I also tried changing nan to an integer, for example 5, this time the > network imports as the first image that I have attached. > > Regards, > > > On 5 Oct 2021, at 12:20, Jakob Erdmann <[email protected]> wrote: > > Your input contains plenty of invalid data (i.e. <tag k="maxspeed" v="nan" > />) > If you remove all the "nan" lines, all edges are imported. > > Am Mo., 4. Okt. 2021 um 14:02 Uhr schrieb Toprak Fırat < > [email protected]>: > >> Hello, >> >> After I download an osm file from open street map, edit and split the >> traffic network into smaller subnetworks, I save the subnetworks as .osm >> files, using osmnx and python. >> >> However when I use the netconvert function >> >> netconvert --osm-files map.osm --output-file map.net.xml >> >> or >> >> netconvert --osm-files map.osm --output-file map.net.xml >> --geometry.remove --roundabouts.guess --ramps.guess --junctions.join >> --tls.guess-signals --tls.discard-simple --tls.join >> >> and I open the the .net.xml file on Netedit or Sumo-Gui, some roads >> doesn’t appear even though I’m confident that the file is alright because >> when I load the saved .osm file and plot it on python there is no problem. >> >> >> I also tried importing .osm directly using the import foreign network >> function, but I still have the same result. >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > > > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
