 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef NIImporter_ArcView_h
19 #define NIImporter_ArcView_h
77 const std::string& dbf_name,
const std::string& shp_name,
95 double getSpeed(OGRFeature& f,
const std::string& edgeid);
103 int getLaneNo(OGRFeature& f,
104 const std::string& edgeid,
double speed);
110 int getPriority(OGRFeature& f,
const std::string& edgeid);
120 void checkSpread(
NBEdge* e);
136 bool getStringEntry(OGRFeature* poFeature,
const std::string& optionName,
const char* defaultName,
bool prune, std::string& into);
139 std::vector<std::string> getFieldNames(OGRFeature* poFeature)
const;
142 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.