Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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.
 

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

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 47 of file PCLoaderDlrNavteq.h.

Member Function Documentation

◆ loadIfSet()

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 54 of file PCLoaderDlrNavteq.cpp.

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

Referenced by main().

Here is the caller graph for this function:

◆ loadPOIFile()

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 96 of file PCLoaderDlrNavteq.cpp.

References PCPolyContainer::add(), PCTypeMap::TypeDef::color, PCTypeMap::TypeDef::discard, PCTypeMap::get(), OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getOptions(), GeoConvHelper::getProcessing(), OptionsCont::getString(), PCTypeMap::has(), LineReader::hasMore(), PCTypeMap::TypeDef::icon, PCTypeMap::TypeDef::id, PCTypeMap::TypeDef::layer, RGBColor::parseColor(), PCTypeMap::TypeDef::prefix, StringUtils::prune(), LineReader::readLine(), TL, TLF, and toString().

Referenced by loadPOIFiles().

Here is the caller graph for this function:

◆ 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 66 of file PCLoaderDlrNavteq.cpp.

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

Referenced by loadIfSet().

Here is the caller graph for this function:

◆ loadPolyFile()

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

Loads DLR-Navteq (Elmar)-polygons 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 170 of file PCLoaderDlrNavteq.cpp.

References PCPolyContainer::add(), PCTypeMap::TypeDef::allowFill, PCTypeMap::TypeDef::color, StringUtils::convertUmlaute(), PCTypeMap::TypeDef::discard, PCTypeMap::get(), NamedObjectCont< T >::get(), OptionsCont::getBool(), PCPolyContainer::getEnumIDFor(), OptionsCont::getFloat(), ShapeContainer::getPolygons(), GeoConvHelper::getProcessing(), OptionsCont::getString(), StringTokenizer::getVector(), PCTypeMap::has(), LineReader::hasMore(), PCTypeMap::TypeDef::icon, PCTypeMap::TypeDef::id, PCTypeMap::TypeDef::layer, PCTypeMap::NOFILL, RGBColor::parseColor(), PCTypeMap::TypeDef::prefix, StringUtils::prune(), LineReader::readLine(), TL, TLF, StringUtils::toDouble(), toString(), WRITE_WARNING, and WRITE_WARNINGF.

Referenced by loadPolyFiles().

Here is the caller graph for this function:

◆ loadPolyFiles()

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 81 of file PCLoaderDlrNavteq.cpp.

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

Referenced by loadIfSet().

Here is the caller graph for this function:

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