SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PCLoaderDlrNavteq Class Reference

A reader of pois and polygons stored in DLR-Navteq (Elmar)-format. More...

#include <PCLoaderDlrNavteq.h>

Static Public Member Functions

static void loadIfSet (OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
 Loads pois/polygons assumed to be stored as according DLR-Navteq (Elmar)-files. More...
 

Static Protected Member Functions

static void loadPOIFile (const std::string &file, OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
 Loads DLR-Navteq (Elmar)-pois from the given file. More...
 
static void loadPOIFiles (OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
 Loads pois assumed to be stored as according DLR-Navteq (Elmar)-files. More...
 
static void loadPolyFile (const std::string &file, OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
 Loads DLR-Navteq (Elmar)-polygons from the given file. More...
 
static void loadPolyFiles (OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
 Loads polygons assumed to be stored as according DLR-Navteq (Elmar)-files. More...
 

Detailed Description

A reader of pois and polygons stored in DLR-Navteq (Elmar)-format.

Reads pois stored in "pointcollection.txt" and polygons stored in "...polygons.txt"/"...water_polygons.txt", applies the given projection and network offset and stores the so build pois/polys into the given map.

Definition at line 57 of file PCLoaderDlrNavteq.h.

Member Function Documentation

void PCLoaderDlrNavteq::loadIfSet ( OptionsCont oc,
PCPolyContainer toFill,
PCTypeMap tm 
)
static

Loads pois/polygons assumed to be stored as according DLR-Navteq (Elmar)-files.

If the option "elmar-poi-files" is set within the given options container, the files stored herein are parsed using "loadPOIFiles", assuming this option contains file paths to files containing pois stored in DLR-Navteq "pointcollection.txt"-format.

If the option "elmar-poly-files" is set within the given options container, the files stored herein are parsed using "loadPolyFiles", assuming this option contains file paths to files containing polygons stored in DLR-Navteq "...polygons.txt"/"...water_polygons.txt"-format.

Parameters
[in]ocThe options container to get further options from
[in]toFillThe poly/pois container to add loaded polys/pois to
[in]tmThe type map to use for setting values of loaded polys/pois
Exceptions
ProcessErrorif something fails

Definition at line 67 of file PCLoaderDlrNavteq.cpp.

References OptionsCont::isSet(), loadPOIFiles(), and loadPolyFiles().

Referenced by main().

void PCLoaderDlrNavteq::loadPOIFile ( const std::string &  file,
OptionsCont oc,
PCPolyContainer toFill,
PCTypeMap tm 
)
staticprotected

Loads DLR-Navteq (Elmar)-pois from the given file.

Parameters
[in]fileThe name of the file to parse
[in]ocThe options container to get further options from
[in]toFillThe poly/pois container to add loaded polys to
[in]tmThe type map to use for setting values of loaded polys
Exceptions
ProcessErrorif something fails

Definition at line 109 of file PCLoaderDlrNavteq.cpp.

References PCTypeMap::TypeDef::color, PCTypeMap::TypeDef::discard, PCTypeMap::get(), OptionsCont::getBool(), OptionsCont::getInt(), OptionsCont::getOptions(), GeoConvHelper::getProcessing(), OptionsCont::getString(), PCTypeMap::has(), LineReader::hasMore(), PCTypeMap::TypeDef::id, PCPolyContainer::insert(), PCTypeMap::TypeDef::layer, RGBColor::parseColor(), PCTypeMap::TypeDef::prefix, StringUtils::prune(), LineReader::readLine(), SUMOReal, and toString().

Referenced by loadPOIFiles().

void PCLoaderDlrNavteq::loadPOIFiles ( OptionsCont oc,
PCPolyContainer toFill,
PCTypeMap tm 
)
staticprotected

Loads pois assumed to be stored as according DLR-Navteq (Elmar)-files.

Goes through the list of files given in "elmar-poi-files". Calls "loadPOIFile" using each of these as the first parameter.

Parameters
[in]ocThe options container to get further options from
[in]toFillThe poly/pois container to add loaded pois to
[in]tmThe type map to use for setting values of loaded pois
Exceptions
ProcessErrorif something fails

Definition at line 79 of file PCLoaderDlrNavteq.cpp.

References OptionsCont::getStringVector(), FileHelpers::isReadable(), loadPOIFile(), PROGRESS_BEGIN_MESSAGE, and PROGRESS_DONE_MESSAGE.

Referenced by loadIfSet().

void PCLoaderDlrNavteq::loadPolyFile ( const std::string &  file,
OptionsCont oc,
PCPolyContainer toFill,
PCTypeMap tm 
)
staticprotected
void PCLoaderDlrNavteq::loadPolyFiles ( OptionsCont oc,
PCPolyContainer toFill,
PCTypeMap tm 
)
staticprotected

Loads polygons assumed to be stored as according DLR-Navteq (Elmar)-files.

Goes through the list of files given in "elmar-poly-files". Calls "loadPolyFile" using each of these as the first parameter.

Parameters
[in]ocThe options container to get further options from
[in]toFillThe poly/pois container to add loaded polys to
[in]tmThe type map to use for setting values of loaded polys
Exceptions
ProcessErrorif something fails

Definition at line 94 of file PCLoaderDlrNavteq.cpp.

References OptionsCont::getStringVector(), FileHelpers::isReadable(), loadPolyFile(), PROGRESS_BEGIN_MESSAGE, and PROGRESS_DONE_MESSAGE.

Referenced by loadIfSet().


The documentation for this class was generated from the following files: