Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Importing Shape

Good afternoon!

Happy New Year to all!

I have data initially in "gpkg" format that I imported into QGIS. The file is structured as follows:

1. Network links that form the road system;
2. Nodes that are the junctions of the links;
3. Polygons that represent municipalities and traffic zones;
4. Centroids that represent the points where the polygon trips begin and end;
5. Connectors that are lines that connect the centroids to the road system.

image.png

Centroids are the reference for the entire OD matrix. I believe the original basis comes from macrosimulation software (Transcad, for example) that, starting from the traffic zone polygon, calculate the centroid using the geometric center of the polygon and make the connection in the road system (through connectors) by the nearest link.

I ran netconvert.py on the road system links and connectors that were in shapefiles and merged the two into a single file.

For the centroids, I used polyconvert.exe, obtaining the TAZ.xml file, and I was able to add it to the net edit and visualize them.

My final intention was that when running edgesInDistricts.py, the edges near centroids would be recognized, but it didn't work; the file with the list of edges remained empty. I believe this is because the centroids are points instead of polygons.

I would like to know if there is any alternative.

I thought about using netconvert on the centroids and importing the points as nodes (junctions), and I could make each of these nodes a taz to run od2trips and use duarout with the --junction-taz --with-taz function, but that didn't work.

Any help would be greatly appreciated.

Best regards!


Back to the top