SUMO - Simulation of Urban MObility
|
Exporter writing networks using XML (native input) format. More...
#include <NWWriter_DlrNavteq.h>
Static Public Member Functions | |
static void | writeNetwork (const OptionsCont &oc, NBNetBuilder &nb) |
Writes the network into XML-files (nodes, edges, connections, traffic lights) More... | |
Static Private Member Functions | |
static std::string | getAllowedTypes (SVCPermissions permissions) |
build the ascii-bit-vector for column vehicle_type More... | |
static SUMOReal | getGraphLength (NBEdge *edge) |
get the length of the edge when measured up to the junction center More... | |
static unsigned int | getNavteqLaneCode (const unsigned int numLanes) |
get the lane number encoding More... | |
static int | getRoadClass (NBEdge *edge) |
get the navteq road class More... | |
static int | getSpeedCategory (int kph) |
get the navteq speed class based on the speed in km/h More... | |
static int | getSpeedCategoryUpperBound (int kph) |
get the SPEED_LIMIT as defined by elmar (upper bound of speed category) More... | |
static int | speedInKph (SUMOReal metersPerSecond) |
get edge speed rounded to kmh More... | |
static void | writeHeader (OutputDevice &device, const OptionsCont &oc) |
write header comments (input paramters, date, etc...) More... | |
static void | writeLinksUnsplitted (const OptionsCont &oc, NBEdgeCont &ec) |
Writes the links_unsplitted files. More... | |
static void | writeNodesUnsplitted (const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec) |
Writes the nodes_unsplitted file. More... | |
Static Private Attributes | |
static const std::string | UNDEFINED |
magic value for undefined stuff More... | |
Exporter writing networks using XML (native input) format.
Definition at line 60 of file NWWriter_DlrNavteq.h.
|
staticprivate |
build the ascii-bit-vector for column vehicle_type
Definition at line 180 of file NWWriter_DlrNavteq.cpp.
References SVCFreeForAll.
Referenced by writeLinksUnsplitted().
get the length of the edge when measured up to the junction center
Definition at line 287 of file NWWriter_DlrNavteq.cpp.
References NBEdge::getFromNode(), NBEdge::getGeometry(), NBNode::getPosition(), NBEdge::getToNode(), PositionVector::length(), PositionVector::push_back_noDoublePos(), and PositionVector::push_front_noDoublePos().
Referenced by writeLinksUnsplitted().
get the lane number encoding
Definition at line 279 of file NWWriter_DlrNavteq.cpp.
Referenced by writeLinksUnsplitted().
get the navteq road class
Definition at line 200 of file NWWriter_DlrNavteq.cpp.
References NBEdge::getNumLanes(), NBEdge::getSpeed(), and speedInKph().
Referenced by writeLinksUnsplitted().
get the navteq speed class based on the speed in km/h
Definition at line 225 of file NWWriter_DlrNavteq.cpp.
Referenced by writeLinksUnsplitted().
get the SPEED_LIMIT as defined by elmar (upper bound of speed category)
Definition at line 252 of file NWWriter_DlrNavteq.cpp.
Referenced by writeLinksUnsplitted().
get edge speed rounded to kmh
Definition at line 110 of file NWWriter_DlrNavteq.h.
Referenced by getRoadClass(), and writeLinksUnsplitted().
|
staticprivate |
write header comments (input paramters, date, etc...)
Definition at line 71 of file NWWriter_DlrNavteq.cpp.
References OptionsCont::getFullName(), and OptionsCont::writeConfiguration().
Referenced by writeLinksUnsplitted(), and writeNodesUnsplitted().
|
staticprivate |
Writes the links_unsplitted files.
[in] | oc | The options to use |
[in] | nc | The node-container from which to read data |
[in] | ec | The edge-container from which to read data |
Definition at line 139 of file NWWriter_DlrNavteq.cpp.
References NBEdgeCont::begin(), NBEdgeCont::end(), getAllowedTypes(), OutputDevice::getDevice(), NBEdge::getFromNode(), NBEdge::getGeometry(), getGraphLength(), Named::getID(), getNavteqLaneCode(), NBEdge::getNumLanes(), NBEdge::getPermissions(), getRoadClass(), NBEdge::getSpeed(), getSpeedCategory(), getSpeedCategoryUpperBound(), OptionsCont::getString(), NBEdge::getToNode(), PositionVector::size(), speedInKph(), UNDEFINED, and writeHeader().
Referenced by writeNetwork().
|
static |
Writes the network into XML-files (nodes, edges, connections, traffic lights)
[in] | oc | The options to use |
[in] | nb | The network builder from which to read data |
Definition at line 61 of file NWWriter_DlrNavteq.cpp.
References NBNetBuilder::getEdgeCont(), NBNetBuilder::getNodeCont(), OptionsCont::isSet(), writeLinksUnsplitted(), and writeNodesUnsplitted().
Referenced by NWFrame::writeNetwork().
|
staticprivate |
Writes the nodes_unsplitted file.
[in] | oc | The options to use |
[in] | nc | The node-container from which to read data |
[in] | ec | The edge-container from which to read data |
Definition at line 90 of file NWWriter_DlrNavteq.cpp.
References NBNodeCont::begin(), NBEdgeCont::begin(), GeoConvHelper::cartesian2geo(), OutputDevice::close(), NBNodeCont::end(), NBEdgeCont::end(), OutputDevice::getDevice(), GeoConvHelper::getFinal(), NBEdge::getGeometry(), Named::getID(), NBNode::getPosition(), OptionsCont::getString(), Position::mul(), OutputDevice::setPrecision(), PositionVector::size(), SUMOReal, UNDEFINED, GeoConvHelper::usingGeoProjection(), WRITE_WARNING, writeHeader(), Position::x(), and Position::y().
Referenced by writeNetwork().
|
staticprivate |
magic value for undefined stuff
Definition at line 107 of file NWWriter_DlrNavteq.h.
Referenced by writeLinksUnsplitted(), and writeNodesUnsplitted().