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.
~NIImporter_ArcView()
Destructor.
std::string mySHPName
The name of the shape file.
NBTypeCont & myTypeCont
The container to get the types from.
The representation of a single edge during network building.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given ArcView Shape files.
const OptionsCont & myOptions
The options to use.
void load()
Loads the shape files.
NIImporter_ArcView & operator=(const NIImporter_ArcView &)
Invalidated assignment operator.
Storage for edges, including some functionality operating on multiple edges.
Importer for networks stored in ArcView-shape format.
NIImporter_ArcView(const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec, NBTypeCont &tc, const std::string &dbf_name, const std::string &shp_name, bool speedInKMH)
Constructor.
Instance responsible for building networks.
NBNodeCont & myNodeCont
The container to add nodes to.
A storage for options typed value containers)
int myRunningEdgeID
A running number to assure unique ids (as fallback)
Container for nodes during the netbuilding process.
NBEdgeCont & myEdgeCont
The container to add edges to.
bool mySpeedInKMH
Whether the speed is given in km/h.
A storage for available types of edges.