Eclipse SUMO - Simulation of Urban MObility
PCLoaderArcView Class Reference

A reader of pois and polygons from shape files. More...

#include <PCLoaderArcView.h>

Static Public Member Functions

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

Private Member Functions

PCLoaderArcViewoperator= (const PCLoaderArcView &)
 Invalidated assignment operator. More...
 
 PCLoaderArcView (const PCLoaderArcView &)
 Invalidated copy constructor. More...
 

Static Private Member Functions

static void load (const std::string &file, OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
 Parses pois/polys stored within the given file. More...
 

Static Private Attributes

static bool myWarnMissingProjection = true
 

Detailed Description

A reader of pois and polygons from shape files.

The current importer works only if SUMO was compiled with GDAL-support. If not, an error message is generated.

Todo:
reinsert import via shapelib

Definition at line 51 of file PCLoaderArcView.h.

Constructor & Destructor Documentation

◆ PCLoaderArcView()

PCLoaderArcView::PCLoaderArcView ( const PCLoaderArcView )
private

Invalidated copy constructor.

Member Function Documentation

◆ load()

void PCLoaderArcView::load ( const std::string &  file,
OptionsCont oc,
PCPolyContainer toFill,
PCTypeMap tm 
)
staticprivate

Parses pois/polys stored within the given file.

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 117 of file PCLoaderArcView.cpp.

References PCPolyContainer::add(), PCTypeMap::TypeDef::angle, PCTypeMap::TypeDef::color, Shape::DEFAULT_ANGLE, Shape::DEFAULT_IMG_FILE, PCTypeMap::TypeDef::discard, PCTypeMap::get(), OptionsCont::getBool(), OptionsCont::getFloat(), GeoConvHelper::getProcessing(), OptionsCont::getString(), OptionsCont::getStringVector(), PCTypeMap::has(), PCTypeMap::TypeDef::icon, PCTypeMap::TypeDef::id, PCTypeMap::TypeDef::imgFile, StringUtils::latin1_to_utf8(), PCTypeMap::TypeDef::layer, myWarnMissingProjection, RGBColor::parseColor(), PROGRESS_DONE_MESSAGE, StringUtils::prune(), TL, TLF, toString(), UNUSED_PARAMETER, WRITE_ERROR, WRITE_ERRORF, WRITE_MESSAGE, WRITE_WARNINGF, and GeoConvHelper::x2cartesian().

Referenced by loadIfSet().

Here is the caller graph for this function:

◆ loadIfSet()

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

Loads pois/polygons assumed to be stored as shape files-files.

If the option "shape-files" is set within the given options container, the files stored herein are parsed using "load", assuming this option contains file paths to files containing pois and polygons stored as shape-files.

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 65 of file PCLoaderArcView.cpp.

References OptionsCont::getStringVector(), OptionsCont::isSet(), load(), PROGRESS_BEGIN_MESSAGE, and PROGRESS_DONE_MESSAGE.

Referenced by main().

Here is the caller graph for this function:

◆ operator=()

PCLoaderArcView& PCLoaderArcView::operator= ( const PCLoaderArcView )
private

Invalidated assignment operator.

Field Documentation

◆ myWarnMissingProjection

bool PCLoaderArcView::myWarnMissingProjection = true
staticprivate

Definition at line 82 of file PCLoaderArcView.h.

Referenced by load().


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