57#include <netimport/typemap.h>
74 if (!oc.
isSet(
"type-files")) {
75 std::vector<std::string> files;
76 if (oc.
isSet(
"osm-files")) {
77 files.push_back(osmTypemap);
79 if (oc.
isSet(
"opendrive-files")) {
80 files.push_back(opendriveTypemap);
98 if (oc.
getBool(
"tls.discard-loaded") || oc.
getBool(
"tls.discard-simple")) {
100 oc.
getBool(
"tls.guess-signals"));
106 if (oc.
getBool(
"railway.signals.discard")) {
120 if (!ok && !oc.
getBool(
"ignore-errors")) {
180 if (ok && oc.
exists(
"ptstop-files")) {
187 if (ok && oc.
exists(
"ptline-files")) {
194 if (ok && oc.
exists(
"polygon-files")) {
#define WRITE_WARNINGF(...)
#define WRITE_MESSAGEF(...)
#define WRITE_MESSAGE(msg)
std::set< std::string > deprecatedVehicleClassesSeen
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static GeoConvHelper & getProcessing()
the coordinate transformation to use for input conversion and processing
int size() const
Returns the number of districts inside the container.
int size() const
Returns the number of edges.
int getNumEdgeSplits() const
Returns the number of edge splits.
bool checkConsistency(const NBNodeCont &nc)
ensure that all edges have valid nodes
static void loadIfSet(OptionsCont &oc)
loads height map data if any loading options are set
Instance responsible for building networks.
NBPTLineCont & getPTLineCont()
Returns a reference to the pt line container.
NBPTStopCont & getPTStopCont()
Returns a reference to the pt stop container.
NBNodeCont & getNodeCont()
Returns a reference to the node container.
ShapeContainer & getShapeCont()
NBEdgeCont & getEdgeCont()
NBDistrictCont & getDistrictCont()
Returns a reference the districts container.
NBTypeCont & getTypeCont()
Returns a reference to the type container.
NBTrafficLightLogicCont & getTLLogicCont()
Returns a reference to the traffic light logics container.
int size() const
Returns the number of nodes stored in this container.
void applyConditionalDefaults()
apply default values after loading
void discardRailSignals()
discards rail signals
void discardTrafficLights(NBTrafficLightLogicCont &tlc, bool geometryLike, bool guessSignals)
int getNumExtracted() const
return the number of extracted traffic light definitions
int size() const
Returns the number of known edgeTypes.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given ArcView Shape files.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given dlr-navteq (aka Elmar-fomat) folder.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given ITSUMO network files.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given MATSIM network files.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given SUMO file.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given OSM file.
static void loadNetwork(OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given SUMO file.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads network definition from the assigned option and stores it in the given network builder.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads network definition from the assigned option and stores it in the given network builder.
NILoader(NBNetBuilder &nb)
Constructor.
NBNetBuilder & myNetBuilder
The network builder to fill with loaded data.
void load(OptionsCont &oc)
bool loadXML(OptionsCont &oc)
static bool load(SUMOSAXHandler &handler, const std::vector< std::string > &files, const std::string &type, const bool stringParse=false)
Importer for edge connections stored in XML.
Importer for network edges stored in XML.
Importer for network nodes stored in XML.
Importer for network edges stored in XML.
Importer for edge connections stored in XML.
Importer for edge type information stored in XML.
A storage for options typed value containers)
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
bool exists(const std::string &name) const
Returns the information whether the named option is known.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
const StringVector & getStringVector(const std::string &name) const
Returns the list of string-value of the named option (only for Option_StringVector)