Eclipse SUMO - Simulation of Urban MObility
|
Importer for networks stored in ArcView-shape format. More...
#include <NIImporter_ArcView.h>
Static Public Member Functions | |
static void | loadNetwork (const OptionsCont &oc, NBNetBuilder &nb) |
Loads content of the optionally given ArcView Shape files. | |
Protected Member Functions | |
void | load () |
Loads the shape files. | |
NIImporter_ArcView (const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec, NBTypeCont &tc, const std::string &shp_name, bool speedInKMH) | |
Constructor. | |
~NIImporter_ArcView () | |
Destructor. | |
Private Member Functions | |
NIImporter_ArcView (const NIImporter_ArcView &) | |
Invalidated copy constructor. | |
NIImporter_ArcView & | operator= (const NIImporter_ArcView &) |
Invalidated assignment operator. | |
Private Attributes | |
NBEdgeCont & | myEdgeCont |
The container to add edges to. | |
int | myNameAddition |
A running number to assure unique edge ids. | |
NBNodeCont & | myNodeCont |
The container to add nodes to. | |
const OptionsCont & | myOptions |
The options to use. | |
int | myRunningEdgeID |
A running number to assure unique ids (as fallback) | |
int | myRunningNodeID |
std::string | mySHPName |
The name of the shape file. | |
bool | mySpeedInKMH |
Whether the speed is given in km/h. | |
NBTypeCont & | myTypeCont |
The container to get the types from. | |
Importer for networks stored in ArcView-shape format.
The current importer works only if SUMO was compiled with GDAL-support. If not, an error message is generated.
Definition at line 47 of file NIImporter_ArcView.h.
|
protected |
Constructor.
[in] | oc | Options container to read options from |
[in] | nc | The node container to store nodes into |
[in] | ec | The edge container to store edges into |
[in] | tc | The type container to get edge types from |
[in] | shp_name | The name of the according shape file |
[in] | speedInKMH | Whether the speed shall be assumed to be given in km/h |
Definition at line 107 of file NIImporter_ArcView.cpp.
|
protected |
Destructor.
Definition at line 122 of file NIImporter_ArcView.cpp.
|
private |
Invalidated copy constructor.
|
protected |
Loads the shape files.
Definition at line 126 of file NIImporter_ArcView.cpp.
References CENTER, OptionsCont::getBool(), NBTypeCont::getEdgeTypeIsOneWay(), NBTypeCont::getEdgeTypeNumLanes(), NBTypeCont::getEdgeTypePermissions(), NBTypeCont::getEdgeTypeSpeed(), OptionsCont::getFloat(), NBEdge::getGeometry(), NBEdge::getID(), OptionsCont::getOptions(), GeoConvHelper::getProcessing(), OptionsCont::getString(), OptionsCont::getStringVector(), GeoConvHelper::init(), NBNodeCont::insert(), NBEdgeCont::insert(), OptionsCont::isSet(), NBTypeCont::knows(), myEdgeCont, myNodeCont, myOptions, myRunningEdgeID, myRunningNodeID, mySHPName, mySpeedInKMH, myTypeCont, PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, PositionVector::push_back_noDoublePos(), StringUtils::replace(), NBNodeCont::retrieve(), NBEdgeCont::retrieve(), PositionVector::reverse(), RIGHT, ROADCENTER, NBEdge::setLoadedLength(), NBEdge::setPermissions(), TL, toString(), NBNetBuilder::transformCoordinate(), NBEdge::UNSPECIFIED_FRICTION, NBEdge::UNSPECIFIED_OFFSET, WRITE_ERROR, WRITE_ERRORF, WRITE_MESSAGE, WRITE_WARNING, and WRITE_WARNINGF.
Referenced by loadNetwork().
|
static |
Loads content of the optionally given ArcView Shape files.
If the option "shapefile-prefix" is set, the file stored therein is read and the network definition stored therein is stored within the given network builder.
If the option "shapefile-prefix" is not set, this method simply returns.
[in] | oc | The options to use |
[in] | nb | The network builder to fill |
Definition at line 72 of file NIImporter_ArcView.cpp.
References OptionsCont::getBool(), NBNetBuilder::getEdgeCont(), MsgHandler::getErrorInstance(), NBNetBuilder::getNodeCont(), OptionsCont::getString(), NBNetBuilder::getTypeCont(), FileHelpers::isReadable(), OptionsCont::isSet(), load(), StringUtils::startsWith(), and WRITE_ERROR.
Referenced by NILoader::load().
|
private |
Invalidated assignment operator.
|
private |
The container to add edges to.
Definition at line 168 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
A running number to assure unique edge ids.
Definition at line 162 of file NIImporter_ArcView.h.
|
private |
The container to add nodes to.
Definition at line 165 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
|
private |
A running number to assure unique ids (as fallback)
Definition at line 177 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
Definition at line 178 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
The name of the shape file.
Definition at line 159 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
Whether the speed is given in km/h.
Definition at line 174 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
The container to get the types from.
Definition at line 171 of file NIImporter_ArcView.h.
Referenced by load().