![]() |
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. More... | |
Protected Member Functions | |
| void | load () |
| Loads the shape files. More... | |
| NIImporter_ArcView (const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec, NBTypeCont &tc, const std::string &dbf_name, const std::string &shp_name, bool speedInKMH) | |
| Constructor. More... | |
| ~NIImporter_ArcView () | |
| Destructor. More... | |
Private Member Functions | |
| NIImporter_ArcView (const NIImporter_ArcView &) | |
| Invalidated copy constructor. More... | |
| NIImporter_ArcView & | operator= (const NIImporter_ArcView &) |
| Invalidated assignment operator. More... | |
Private Attributes | |
| NBEdgeCont & | myEdgeCont |
| The container to add edges to. More... | |
| int | myNameAddition |
| A running number to assure unique edge ids. More... | |
| NBNodeCont & | myNodeCont |
| The container to add nodes to. More... | |
| const OptionsCont & | myOptions |
| The options to use. More... | |
| int | myRunningEdgeID |
| A running number to assure unique ids (as fallback) More... | |
| int | myRunningNodeID |
| std::string | mySHPName |
| The name of the shape file. More... | |
| bool | mySpeedInKMH |
| Whether the speed is given in km/h. More... | |
| NBTypeCont & | myTypeCont |
| The container to get the types from. More... | |
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 49 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] | dbf_name | The name of the according database file |
| [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 100 of file NIImporter_ArcView.cpp.
References UNUSED_PARAMETER.
|
protected |
Destructor.
Definition at line 117 of file NIImporter_ArcView.cpp.
|
private |
Invalidated copy constructor.
|
protected |
Loads the shape files.
Definition at line 121 of file NIImporter_ArcView.cpp.
References OptionsCont::getBool(), OptionsCont::getFloat(), NBEdge::getGeometry(), NBEdge::getID(), NBTypeCont::getIsOneWay(), NBTypeCont::getNumLanes(), OptionsCont::getOptions(), NBTypeCont::getPermissions(), NBTypeCont::getSpeed(), OptionsCont::getString(), OptionsCont::getStringVector(), NBTypeCont::getWidth(), NBNodeCont::insert(), NBEdgeCont::insert(), OptionsCont::isSet(), NBTypeCont::knows(), LANESPREAD_CENTER, LANESPREAD_RIGHT, 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(), NBEdge::setPermissions(), toString(), NBNetBuilder::transformCoordinate(), NBEdge::UNSPECIFIED_OFFSET, WRITE_ERROR, WRITE_MESSAGE, and WRITE_WARNING.
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 66 of file NIImporter_ArcView.cpp.
References OptionsCont::getBool(), NBNetBuilder::getEdgeCont(), MsgHandler::getErrorInstance(), NBNetBuilder::getNodeCont(), OptionsCont::getString(), NBNetBuilder::getTypeCont(), FileHelpers::isReadable(), OptionsCont::isSet(), load(), and WRITE_ERROR.
Referenced by NILoader::load().
|
private |
Invalidated assignment operator.
|
private |
The container to add edges to.
Definition at line 160 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
A running number to assure unique edge ids.
Definition at line 154 of file NIImporter_ArcView.h.
|
private |
The container to add nodes to.
Definition at line 157 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
|
private |
A running number to assure unique ids (as fallback)
Definition at line 169 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
Definition at line 170 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
The name of the shape file.
Definition at line 151 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
Whether the speed is given in km/h.
Definition at line 166 of file NIImporter_ArcView.h.
Referenced by load().
|
private |
The container to get the types from.
Definition at line 163 of file NIImporter_ArcView.h.
Referenced by load().