Eclipse SUMO - Simulation of Urban MObility
|
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. | |
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.
|
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.
[in] | oc | The options container to get further options from |
[in] | toFill | The poly/pois container to add loaded polys/pois to |
[in] | tm | The type map to use for setting values of loaded polys/pois |
ProcessError | if something fails |
Definition at line 54 of file PCLoaderDlrNavteq.cpp.
References OptionsCont::isSet(), loadPOIFiles(), and loadPolyFiles().
Referenced by main().
|
staticprotected |
Loads DLR-Navteq (Elmar)-pois from the given file.
[in] | file | The name of the file to parse |
[in] | oc | The options container to get further options from |
[in] | toFill | The poly/pois container to add loaded polys to |
[in] | tm | The type map to use for setting values of loaded polys |
ProcessError | if 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().
|
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.
[in] | oc | The options container to get further options from |
[in] | toFill | The poly/pois container to add loaded pois to |
[in] | tm | The type map to use for setting values of loaded pois |
ProcessError | if 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().
|
staticprotected |
Loads DLR-Navteq (Elmar)-polygons from the given file.
[in] | file | The name of the file to parse |
[in] | oc | The options container to get further options from |
[in] | toFill | The poly/pois container to add loaded polys to |
[in] | tm | The type map to use for setting values of loaded polys |
ProcessError | if 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().
|
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.
[in] | oc | The options container to get further options from |
[in] | toFill | The poly/pois container to add loaded polys to |
[in] | tm | The type map to use for setting values of loaded polys |
ProcessError | if 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().