![]() |
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. 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... | |
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 56 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 62 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 104 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::id, PCTypeMap::TypeDef::layer, RGBColor::parseColor(), PCTypeMap::TypeDef::prefix, StringUtils::prune(), LineReader::readLine(), 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 74 of file PCLoaderDlrNavteq.cpp.
References OptionsCont::getStringVector(), FileHelpers::isReadable(), loadPOIFile(), PROGRESS_BEGIN_MESSAGE, and PROGRESS_DONE_MESSAGE.
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 176 of file PCLoaderDlrNavteq.cpp.
References TplConvert::_2double(), 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::id, PCTypeMap::TypeDef::layer, RGBColor::parseColor(), PCTypeMap::TypeDef::prefix, StringUtils::prune(), LineReader::readLine(), toString(), and WRITE_WARNING.
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 89 of file PCLoaderDlrNavteq.cpp.
References OptionsCont::getStringVector(), FileHelpers::isReadable(), loadPolyFile(), PROGRESS_BEGIN_MESSAGE, and PROGRESS_DONE_MESSAGE.
Referenced by loadIfSet().