![]() |
SUMO - Simulation of Urban MObility
|
Exporter writing networks using XML (native input) format. More...
#include <NWWriter_DlrNavteq.h>
Static Public Member Functions | |
static int | getBrunnelType (NBEdge *edge) |
get the navteq brunnel type More... | |
static int | getFormOfWay (NBEdge *edge) |
get the form of way More... | |
static int | getRoadClass (NBEdge *edge) |
get the navteq road class More... | |
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 double | getGraphLength (NBEdge *edge) |
get the length of the edge when measured up to the junction center More... | |
static int | getNavteqLaneCode (const int numLanes) |
get the lane number encoding More... | |
static std::string | getSinglePostalCode (const std::string &zipCode, const std::string edgeID) |
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 (double metersPerSecond) |
get edge speed rounded to kmh More... | |
static void | writeConnectedLanes (const OptionsCont &oc, NBNodeCont &nc) |
Writes the connected_lanes file. 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, std::map< NBEdge *, std::string > &internalNodes) |
Writes the links_unsplitted file. More... | |
static void | writeNodesUnsplitted (const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec, std::map< NBEdge *, std::string > &internalNodes) |
Writes the nodes_unsplitted file. More... | |
static void | writeProhibitedManoeuvres (const OptionsCont &oc, const NBNodeCont &nc, const NBEdgeCont &ec) |
Writes the prohibited_manoeuvres file. More... | |
static void | writeTrafficSignals (const OptionsCont &oc, NBNodeCont &nc) |
Writes the traffic_signals 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 54 of file NWWriter_DlrNavteq.h.
|
staticprivate |
build the ascii-bit-vector for column vehicle_type
Definition at line 260 of file NWWriter_DlrNavteq.cpp.
References SVCAll.
Referenced by writeConnectedLanes(), writeLinksUnsplitted(), and writeProhibitedManoeuvres().
|
static |
get the navteq brunnel type
Definition at line 388 of file NWWriter_DlrNavteq.cpp.
References NBEdge::getTypeID(), and Parameterised::knowsParameter().
Referenced by writeLinksUnsplitted().
|
static |
get the form of way
Definition at line 401 of file NWWriter_DlrNavteq.cpp.
References NBEdge::getJunctionPriority(), NBEdge::getPermissions(), NBEdge::getToNode(), NBEdge::getTypeID(), NBEdge::ROUNDABOUT, and SVC_PEDESTRIAN.
Referenced by writeLinksUnsplitted().
|
staticprivate |
get the length of the edge when measured up to the junction center
Definition at line 416 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().
|
staticprivate |
get the lane number encoding
Definition at line 380 of file NWWriter_DlrNavteq.cpp.
Referenced by writeLinksUnsplitted().
|
static |
get the navteq road class
Definition at line 282 of file NWWriter_DlrNavteq.cpp.
References NBEdge::getNumLanes(), NBEdge::getSpeed(), NBEdge::getTypeID(), speedInKph(), and StringUtils::startsWith().
Referenced by writeLinksUnsplitted(), and NWWriter_Amitran::writeNetwork().
|
staticprivate |
Definition at line 425 of file NWWriter_DlrNavteq.cpp.
References StringTokenizer::getVector(), and WRITE_WARNING.
Referenced by writeLinksUnsplitted().
|
staticprivate |
get the navteq speed class based on the speed in km/h
Definition at line 326 of file NWWriter_DlrNavteq.cpp.
Referenced by writeLinksUnsplitted().
|
staticprivate |
get the SPEED_LIMIT as defined by elmar (upper bound of speed category)
Definition at line 353 of file NWWriter_DlrNavteq.cpp.
Referenced by writeLinksUnsplitted().
|
inlinestaticprivate |
get edge speed rounded to kmh
Definition at line 131 of file NWWriter_DlrNavteq.h.
Referenced by getRoadClass(), and writeLinksUnsplitted().
|
staticprivate |
Writes the connected_lanes file.
[in] | oc | The options to use |
[in] | nc | The node-container from which to read data |
Definition at line 515 of file NWWriter_DlrNavteq.cpp.
References NBNodeCont::begin(), OutputDevice::close(), NBNodeCont::end(), NBEdge::Connection::fromLane, getAllowedTypes(), NBEdge::getConnections(), OutputDevice::getDevice(), Named::getID(), NBNode::getIncomingEdges(), NBEdge::getPermissions(), OptionsCont::getString(), NBEdge::Connection::toEdge, NBEdge::Connection::toLane, and writeHeader().
Referenced by writeNetwork().
|
staticprivate |
write header comments (input paramters, date, etc...)
Definition at line 67 of file NWWriter_DlrNavteq.cpp.
References OptionsCont::writeConfiguration().
Referenced by writeConnectedLanes(), writeLinksUnsplitted(), writeNodesUnsplitted(), writeProhibitedManoeuvres(), and writeTrafficSignals().
|
staticprivate |
Writes the links_unsplitted file.
[in] | oc | The options to use |
[in] | ec | The edge-container from which to read data |
Definition at line 195 of file NWWriter_DlrNavteq.cpp.
References NBEdgeCont::begin(), OutputDevice::close(), NBEdgeCont::end(), getAllowedTypes(), OptionsCont::getBool(), getBrunnelType(), OutputDevice::getDevice(), getFormOfWay(), NBEdge::getFromNode(), NBEdge::getGeometry(), getGraphLength(), Named::getID(), getNavteqLaneCode(), NBEdge::getNumLanes(), Parameterised::getParameter(), NBEdge::getPermissions(), getRoadClass(), getSinglePostalCode(), NBEdge::getSpeed(), getSpeedCategory(), getSpeedCategoryUpperBound(), OptionsCont::getString(), NBEdge::getToNode(), speedInKph(), toString(), 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 53 of file NWWriter_DlrNavteq.cpp.
References NBNetBuilder::getEdgeCont(), NBNetBuilder::getNodeCont(), OptionsCont::isSet(), writeConnectedLanes(), writeLinksUnsplitted(), writeNodesUnsplitted(), writeProhibitedManoeuvres(), and writeTrafficSignals().
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 |
[out] | internalNodes | The internal node ids, generated for edges with complex geometry |
Definition at line 81 of file NWWriter_DlrNavteq.cpp.
References NBNodeCont::begin(), NBEdgeCont::begin(), GeoConvHelper::cartesian2geo(), OutputDevice::close(), NBNodeCont::end(), NBEdgeCont::end(), NBNodeCont::getAllNames(), NBEdgeCont::getAllNames(), OptionsCont::getBool(), GeoConvHelper::getConvBoundary(), OutputDevice::getDevice(), GeoConvHelper::getFinal(), NBEdge::getGeometry(), Named::getID(), OptionsCont::getInt(), NBEdge::getLaneSpreadFunction(), IDSupplier::getNext(), NBEdgeCont::getOppositeByID(), NBNode::getPosition(), OptionsCont::getString(), NBEdge::getTotalWidth(), OptionsCont::isSet(), LANESPREAD_CENTER, LANESPREAD_RIGHT, NBHelpers::loadPrefixedIDsFomFile(), PositionVector::move2side(), Position::mul(), NBNodeCont::retrieve(), OutputDevice::setPrecision(), NBNodeCont::size(), UNDEFINED, GeoConvHelper::usingGeoProjection(), WRITE_WARNING, writeHeader(), Position::x(), Boundary::xmax(), Boundary::xmin(), Position::y(), Boundary::ymax(), and Boundary::ymin().
Referenced by writeNetwork().
|
staticprivate |
Writes the prohibited_manoeuvres file.
[in] | oc | The options to use |
[in] | nc | The node-container from which to read data |
Definition at line 472 of file NWWriter_DlrNavteq.cpp.
References NBNodeCont::begin(), OutputDevice::close(), NBNodeCont::end(), NBEdgeCont::getAllNames(), getAllowedTypes(), OutputDevice::getDevice(), Named::getID(), NBNode::getIncomingEdges(), IDSupplier::getNext(), NBNode::getOutgoingEdges(), NBEdge::getPermissions(), OptionsCont::getString(), NBEdge::isConnectedTo(), OptionsCont::isSet(), NBHelpers::loadPrefixedIDsFomFile(), SVC_PEDESTRIAN, SVCAll, UNDEFINED, and writeHeader().
Referenced by writeNetwork().
|
staticprivate |
Writes the traffic_signals file.
[in] | oc | The options to use |
[in] | nc | The node-container from which to read data |
Definition at line 439 of file NWWriter_DlrNavteq.cpp.
References NBNodeCont::begin(), GeoConvHelper::cartesian2geo(), OutputDevice::close(), NBNodeCont::end(), OutputDevice::getDevice(), GeoConvHelper::getFinal(), Named::getID(), NBNode::getIncomingEdges(), OptionsCont::getInt(), NBNode::getPosition(), OptionsCont::getString(), NBNode::isTLControlled(), Position::mul(), OutputDevice::setPrecision(), GeoConvHelper::usingGeoProjection(), writeHeader(), Position::x(), and Position::y().
Referenced by writeNetwork().
|
staticprivate |
magic value for undefined stuff
Definition at line 128 of file NWWriter_DlrNavteq.h.
Referenced by writeLinksUnsplitted(), writeNodesUnsplitted(), and writeProhibitedManoeuvres().