106 const std::string& fullType,
int index,
bool useName,
PCPolyContainer& toFill,
bool ignorePruning,
bool withAttributes);
110 const std::string& fullType,
int index,
PCPolyContainer& toFill,
bool ignorePruning,
bool withAttributes);
132 NodesHandler(std::map<SUMOLong, PCOSMNode*>& toFill,
bool withAttributes,
204 EdgesHandler(
const std::map<SUMOLong, PCOSMNode*>& osmNodes,
205 std::map<std::string, PCOSMEdge*>& toFill,
bool withAttributes,
SUMOReal lat
The latitude the node is located at.
An internal definition of a loaded edge.
SUMOLong myLastNodeID
The id of the last parsed node.
static int addPOI(const PCOSMNode *node, const Position &pos, const PCTypeMap::TypeDef &def, const std::string &fullType, int index, PCPolyContainer &toFill, bool ignorePruning, bool withAttributes)
try add the POI and return the next index on success
static void loadIfSet(OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
Loads pois/polygons assumed to be stored as OSM-XML.
A single definition of values that shall be used for a given type.
std::map< std::string, PCOSMEdge * > & myEdgeMap
A map of built edges.
std::vector< SUMOLong > myCurrentNodes
The list of nodes this edge is made of.
~EdgesHandler()
Destructor.
EdgesHandler(const std::map< SUMOLong, PCOSMNode * > &osmNodes, std::map< std::string, PCOSMEdge * > &toFill, bool withAttributes, MsgHandler &errorHandler)
Constructor.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
static std::set< std::string > initMyKeysToInclude()
SAX-handler base for SUMO-files.
SUMOReal lon
The longitude the node is located at.
std::string id
The edge's id.
A storage for loaded polygons and pois.
MsgHandler & myErrorHandler
The handler to report errors to (will be the WarningsHandler if –ignore-errors was set) ...
NodesHandler(std::map< SUMOLong, PCOSMNode * > &toFill, bool withAttributes, MsgHandler &errorHandler)
Contructor.
static const std::set< std::string > MyKeysToInclude
std::map< std::string, std::string > myAttributes
Additional attributes.
A storage for type mappings.
PCOSMEdge * myCurrentEdge
The currently built edge.
void myEndElement(int element)
Called when a closing tag occurs.
MsgHandler & myErrorHandler
The handler to report errors to (will be the WarningsHandler if –ignore-errors was set) ...
void myEndElement(int element)
Called when a closing tag occurs.
Encapsulated SAX-Attributes.
A reader of pois and polygons stored in OSM-format.
A point in 2D or 3D with translation and scaling methods.
std::map< std::string, std::string > myAttributes
Additional attributes.
const std::map< SUMOLong, PCOSMNode * > & myOSMNodes
The previously parsed nodes.
SUMOLong id
The node's id.
EdgesHandler & operator=(const EdgesHandler &s)
Invalidated assignment operator.
bool myIsClosed
Information whether this area is closed.
A class which extracts OSM-edges from a parsed OSM-file.
bool myKeep
whether the last edge (way) should be kept because it had a key from the inclusion list ...
std::vector< int > myParentElements
Current path in order to know to what occuring values belong.
bool myWithAttributes
Whether all attributes shall be stored.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
A class which extracts OSM-nodes from a parsed OSM-file.
std::vector< int > myParentElements
Current path in order to know to what occuring values belong.
static int addPolygon(const PCOSMEdge *edge, const PositionVector &vec, const PCTypeMap::TypeDef &def, const std::string &fullType, int index, bool useName, PCPolyContainer &toFill, bool ignorePruning, bool withAttributes)
try add the polygon and return the next index on success
A storage for options typed value containers)
std::string name
The edge's name (if any)
std::map< SUMOLong, PCOSMNode * > & myToFill
The nodes container to fill.
~NodesHandler()
Destructor.
bool myWithAttributes
Whether all attributes shall be stored.
NodesHandler & operator=(const NodesHandler &s)
Invalidated assignment operator.
An internal representation of an OSM-node.