Eclipse SUMO - Simulation of Urban MObility
|
Provides utility functions for matching locations to edges (during route parsing) More...
#include <MapMatcher.h>
Protected Member Functions | |
const L * | getClosestLane (const Position &pos, SUMOVehicleClass vClass, double distance=-1.) |
find closest lane within distance for the given position or nullptr | |
const E * | getJunctionTaz (const Position &pos, const E *closestEdge, SUMOVehicleClass vClass, bool isFrom) |
find closest junction taz given the closest edge | |
virtual void | initLaneTree (NamedRTree *tree)=0 |
MapMatcher (bool matchJunctions, double matchDistance, MsgHandler *errorOutput) | |
void | parseGeoEdges (const PositionVector &positions, bool geo, SUMOVehicleClass vClass, std::vector< const E * > &into, const std::string &rid, bool isFrom, bool &ok) |
virtual E * | retrieveEdge (const std::string &id)=0 |
virtual | ~MapMatcher () |
Private Member Functions | |
NamedRTree * | getLaneTree () |
initialize lane-RTree | |
MapMatcher (const MapMatcher &s)=delete | |
Invalidated copy constructor. | |
MapMatcher & | operator= (const MapMatcher &s)=delete |
Invalidated assignment operator. | |
Private Attributes | |
MsgHandler * | myErrorOutput |
NamedRTree * | myLaneTree |
RTree for finding lanes. | |
double | myMapMatchingDistance |
bool | myMapMatchJunctions |
Provides utility functions for matching locations to edges (during route parsing)
Definition at line 44 of file MapMatcher.h.
|
inlineprotected |
Definition at line 46 of file MapMatcher.h.
|
inlineprotectedvirtual |
Definition at line 52 of file MapMatcher.h.
References MapMatcher< E, L, N >::myLaneTree.
|
privatedelete |
Invalidated copy constructor.
|
inlineprotected |
find closest lane within distance for the given position or nullptr
Definition at line 98 of file MapMatcher.h.
References Boundary::add(), MapMatcher< E, L, N >::getLaneTree(), Boundary::grow(), L, MapMatcher< E, L, N >::myMapMatchingDistance, NamedRTree::Search(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by MapMatcher< E, L, N >::parseGeoEdges().
|
inlineprotected |
find closest junction taz given the closest edge
Definition at line 126 of file MapMatcher.h.
References MsgHandler::inform(), JUNCTION_TAZ_MISSING_HELP, MapMatcher< E, L, N >::myErrorOutput, MapMatcher< E, L, N >::retrieveEdge(), and toString().
Referenced by MapMatcher< E, L, N >::parseGeoEdges().
|
inlineprivate |
initialize lane-RTree
Definition at line 173 of file MapMatcher.h.
References MapMatcher< E, L, N >::initLaneTree(), and MapMatcher< E, L, N >::myLaneTree.
Referenced by MapMatcher< E, L, N >::getClosestLane().
|
protectedpure virtual |
Implemented in MSDevice_FCDReplay::FCDHandler, MSRouteHandler, and RORouteHandler.
Referenced by MapMatcher< E, L, N >::getLaneTree().
|
privatedelete |
Invalidated assignment operator.
|
inlineprotected |
Definition at line 56 of file MapMatcher.h.
References MapMatcher< E, L, N >::getClosestLane(), GeoConvHelper::getFinal(), MapMatcher< E, L, N >::getJunctionTaz(), gPrecision, gPrecisionGeo, MsgHandler::inform(), L, MIN2(), MapMatcher< E, L, N >::myErrorOutput, MapMatcher< E, L, N >::myMapMatchingDistance, MapMatcher< E, L, N >::myMapMatchJunctions, TL, toString(), WRITE_ERROR, and GeoConvHelper::x2cartesian_const().
|
protectedpure virtual |
Implemented in MSDevice_FCDReplay::FCDHandler, MSRouteHandler, and RORouteHandler.
Referenced by MapMatcher< E, L, N >::getJunctionTaz().
|
private |
Definition at line 185 of file MapMatcher.h.
Referenced by MapMatcher< E, L, N >::getJunctionTaz(), and MapMatcher< E, L, N >::parseGeoEdges().
|
private |
RTree for finding lanes.
Definition at line 182 of file MapMatcher.h.
Referenced by MapMatcher< E, L, N >::getLaneTree(), and MapMatcher< E, L, N >::~MapMatcher().
Definition at line 184 of file MapMatcher.h.
Referenced by MapMatcher< E, L, N >::getClosestLane(), and MapMatcher< E, L, N >::parseGeoEdges().
Definition at line 183 of file MapMatcher.h.
Referenced by MapMatcher< E, L, N >::parseGeoEdges().