 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
19 #ifndef NIImporter_ArcView_h
20 #define NIImporter_ArcView_h
78 const std::string& dbf_name,
const std::string& shp_name,
96 double getSpeed(OGRFeature& f,
const std::string& edgeid);
104 int getLaneNo(OGRFeature& f,
105 const std::string& edgeid,
double speed);
111 int getPriority(OGRFeature& f,
const std::string& edgeid);
121 void checkSpread(
NBEdge* e);
137 bool getStringEntry(OGRFeature* poFeature,
const std::string& optionName,
const char* defaultName,
bool prune, std::string& into);
140 std::vector<std::string> getFieldNames(OGRFeature* poFeature)
const;
143 void addParams(
NBEdge* edge, OGRFeature* poFeature,
const std::vector<std::string>& params)
const;
int myNameAddition
A running number to assure unique edge ids.
Storage for edges, including some functionality operating on multiple edges.
Instance responsible for building networks.
Container for nodes during the netbuilding process.
The representation of a single edge during network building.
~NIImporter_ArcView()
Destructor.
NIImporter_ArcView & operator=(const NIImporter_ArcView &)
Invalidated assignment operator.
NBTypeCont & myTypeCont
The container to get the types from.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given ArcView Shape files.
bool mySpeedInKMH
Whether the speed is given in km/h.
A storage for options typed value containers)
void load()
Loads the shape files.
int myRunningEdgeID
A running number to assure unique ids (as fallback)
const OptionsCont & myOptions
The options to use.
NIImporter_ArcView(const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec, NBTypeCont &tc, const std::string &dbf_name, const std::string &shp_name, bool speedInKMH)
Constructor.
A storage for available types of edges.
NBNodeCont & myNodeCont
The container to add nodes to.
Importer for networks stored in ArcView-shape format.
NBEdgeCont & myEdgeCont
The container to add edges to.
std::string mySHPName
The name of the shape file.