53 oc.
addSynonyme(
"default.lanenumber",
"lanenumber",
true);
54 oc.
addDescription(
"default.lanenumber",
"Building Defaults",
"The default number of lanes in an edge");
57 oc.
addSynonyme(
"default.lanewidth",
"lanewidth",
true);
58 oc.
addDescription(
"default.lanewidth",
"Building Defaults",
"The default width of lanes");
62 oc.
addDescription(
"default.speed",
"Building Defaults",
"The default speed on an edge (in m/s)");
65 oc.
addSynonyme(
"default.priority",
"priority",
true);
66 oc.
addDescription(
"default.priority",
"Building Defaults",
"The default priority of an edge");
69 oc.
addDescription(
"default.sidewalk-width",
"Building Defaults",
"The default width of added sidewalks");
72 oc.
addDescription(
"default.crossing-width",
"Building Defaults",
"The default width of a pedestrian crossing");
75 oc.
addDescription(
"default.disallow",
"Building Defaults",
"The default for disallowed vehicle classes");
78 oc.
addDescription(
"default.junctions.keep-clear",
"Building Defaults",
"Whether junctions should be kept clear by default");
81 oc.
addDescription(
"default.junctions.radius",
"Building Defaults",
"The default turning radius of intersections");
84 oc.
addDescription(
"default.right-of-way",
"Building Defaults",
"The default algorithm for computing right of way rules ('default', 'edgePriority')");
88 oc.
addDescription(
"no-internal-links",
"Junctions",
"Omits internal links");
91 oc.
addDescription(
"numerical-ids",
"Processing",
"Remaps alphanumerical IDs of nodes and edges to ensure that all IDs are integers");
95 oc.
addDescription(
"reserved-ids",
"Processing",
"Ensures that generated ids do not included any of the typed IDs from FILE (SUMO-GUI selection file format)");
99 oc.
addDescription(
"dismiss-vclasses",
"Processing",
"Removes vehicle class restrictions from imported edges");
103 oc.
addDescription(
"no-turnarounds",
"Junctions",
"Disables building turnarounds");
106 oc.
addSynonyme(
"no-turnarounds.tls",
"no-tls-turnarounds",
true);
107 oc.
addDescription(
"no-turnarounds.tls",
"Junctions",
"Disables building turnarounds at tls-controlled junctions");
110 oc.
addDescription(
"no-turnarounds.except-deadend",
"Junctions",
"Disables building turnarounds except at dead end junctions");
113 oc.
addDescription(
"no-left-connections",
"Junctions",
"Disables building connections to left");
117 oc.
addSynonyme(
"geometry.split",
"split-geometry",
true);
118 oc.
addDescription(
"geometry.split",
"Processing",
"Splits edges across geometry nodes");
121 oc.
addSynonyme(
"geometry.remove",
"remove-geometry",
true);
122 oc.
addDescription(
"geometry.remove",
"Processing",
"Replace nodes which only define edge geometry by geometry points (joins edges)");
125 oc.
addDescription(
"geometry.remove.keep-edges.explicit",
"Processing",
"Ensure that the given list of edges is not modified");
128 oc.
addDescription(
"geometry.remove.keep-edges.input-file",
"Processing",
129 "Ensure that the edges in FILE are not modified (Each id on a single line. Selection files from SUMO-GUI are also supported)");
132 oc.
addDescription(
"geometry.max-segment-length",
"Processing",
"splits geometry to restrict segment length");
135 oc.
addDescription(
"geometry.min-dist",
"Processing",
"reduces too similar geometry points");
138 oc.
addDescription(
"geometry.max-angle",
"Processing",
"Warn about edge geometries with an angle above DEGREES in successive segments");
141 oc.
addDescription(
"geometry.min-radius",
"Processing",
"Warn about edge geometries with a turning radius less than METERS at the start or end");
144 oc.
addDescription(
"geometry.min-radius.fix",
"Processing",
"Straighten edge geometries to avoid turning radii less than geometry.min-radius");
147 oc.
addDescription(
"geometry.junction-mismatch-threshold",
"Processing",
"Warn if the junction shape is to far away from the original node position");
150 oc.
addDescription(
"geometry.check-overlap",
"Processing",
"Warn if edges overlap by more than the given threshold value");
153 oc.
addDescription(
"geometry.check-overlap.vertical-threshold",
"Processing",
"Ignore overlapping edges if they are separated vertically by the given threshold.");
156 oc.
addDescription(
"geometry.avoid-overlap",
"Processing",
"Modify edge geometries to avoid overlap at junctions");
161 oc.
addDescription(
"railway.topology.repair",
"Railway",
"Repair topology of the railway network");
164 oc.
addDescription(
"railway.topology.repair.connect-straight",
"Railway",
"Allow bidiretional rail use wherever rails with opposite directions meet at a straight angle");
167 oc.
addDescription(
"railway.topology.all-bidi",
"Railway",
"Make all rails usable in both direction");
170 oc.
addDescription(
"railway.access-distance",
"Railway",
"The search radius for finding suitable road accesses for rail stops");
171 oc.
addSynonyme(
"railway.access-distance",
"osm.stop-output.footway-access-distance",
true);
174 oc.
addDescription(
"railway.max-accesses",
"Railway",
"The maximum roud accesses registered per rail stops");
175 oc.
addSynonyme(
"railway.max-accesses",
"osm.stop-output.footway-max-accesses",
true);
178 oc.
addDescription(
"railway.access-factor",
"Railway",
"The walking length of the access is computed as air-line distance multiplied by FLOAT");
179 oc.
addSynonyme(
"railway.access-factor",
"osm.stop-output.footway-access-factor",
true);
183 oc.
addDescription(
"geometry.max-grade",
"Processing",
"Warn about edge geometries with a grade in % above FLOAT.");
186 oc.
addDescription(
"geometry.max-grade.fix",
"Processing",
"Smooth edge edge geometries with a grade in above the warning threshold.");
189 oc.
addSynonyme(
"offset.disable-normalization",
"disable-normalize-node-positions",
true);
190 oc.
addDescription(
"offset.disable-normalization",
"Processing",
"Turn off normalizing node positions");
193 oc.
addSynonyme(
"offset.x",
"x-offset-to-apply",
true);
194 oc.
addDescription(
"offset.x",
"Processing",
"Adds FLOAT to net x-positions");
197 oc.
addSynonyme(
"offset.y",
"y-offset-to-apply",
true);
198 oc.
addDescription(
"offset.y",
"Processing",
"Adds FLOAT to net y-positions");
202 oc.
addDescription(
"flip-y-axis",
"Processing",
"Flips the y-coordinate along zero");
205 oc.
addSynonyme(
"roundabouts.guess",
"guess-roundabouts",
true);
206 oc.
addDescription(
"roundabouts.guess",
"Processing",
"Enable roundabout-guessing");
209 oc.
addDescription(
"opposites.guess",
"Processing",
"Enable guessing of opposite direction lanes usable for overtaking");
212 oc.
addDescription(
"opposites.guess.fix-lengths",
"Processing",
"Ensure that opposite edges have the same length");
215 oc.
addDescription(
"lefthand",
"Processing",
"Assumes left-hand traffic on the network");
219 "Merges edges which connect the same nodes and are close to each other (recommended for VISSIM import)");
223 "Joins junctions that are close to each other (recommended for OSM import)");
227 "Determines the maximal distance for joining junctions (defaults to 10)");
231 oc.
addDescription(
"junctions.join-exclude",
"Junctions",
"Interprets STR as list of junctions to exclude from joining");
234 oc.
addDescription(
"speed.offset",
"Processing",
"Modifies all edge speeds by adding FLOAT");
237 oc.
addDescription(
"speed.factor",
"Processing",
"Modifies all edge speeds by multiplying by FLOAT");
240 oc.
addDescription(
"speed.minimum",
"Processing",
"Modifies all edge speeds to at least FLOAT");
244 oc.
addDescription(
"junctions.corner-detail",
"Junctions",
"Generate INT intermediate points to smooth out intersection corners");
247 oc.
addDescription(
"junctions.internal-link-detail",
"Junctions",
"Generate INT intermediate points to smooth out lanes within the intersection");
250 oc.
addDescription(
"junctions.scurve-stretch",
"Junctions",
"Generate longer intersections to allow for smooth s-curves when the number of lanes changes");
254 "Builds common edges for turning connections with common from- and to-edge. This causes discrepancies between geometrical length and assigned length due to averaging but enables lane-changing while turning");
258 "Limits speed on junctions to an average lateral acceleration of at most FLOAT m/s^2)");
261 oc.
addDescription(
"junctions.limit-turn-speed.min-angle",
"Junctions",
262 "Do not limit turn speed for angular changes below FLOAT (degrees). The value is subtracted from the geometric angle before computing the turning radius.");
265 oc.
addDescription(
"junctions.limit-turn-speed.min-angle.railway",
"Junctions",
266 "Do not limit turn speed for angular changes below FLOAT (degrees) on railway edges. The value is subtracted from the geometric angle before computing the turning radius.");
269 oc.
addDescription(
"junctions.limit-turn-speed.warn.straight",
"Junctions",
270 "Warn about turn speed limits that reduce the speed of straight connections by more than FLOAT");
273 oc.
addDescription(
"junctions.limit-turn-speed.warn.turn",
"Junctions",
274 "Warn about turn speed limits that reduce the speed of turning connections (no u-turns) by more than FLOAT");
279 "Default radius for junctions that do not require wide vehicle turns");
282 oc.
addDescription(
"rectangular-lane-cut",
"Junctions",
"Forces rectangular cuts between lanes and intersections");
286 "Allow driving onto a multi-lane road if there are foes on other lanes (at roundabouts)");
290 "Allow driving onto a multi-lane road if there are foes on other lanes (everywhere)");
294 "Guess pedestrian sidewalks based on edge speed");
298 "Add sidewalks for edges with a speed equal or below the given limit");
302 "Add sidewalks for edges with a speed above the given limit");
305 oc.
addDescription(
"sidewalks.guess.from-permissions",
"Pedestrian",
306 "Add sidewalks for edges that allow pedestrians on any of their lanes regardless of speed");
310 "Do not guess sidewalks for the given list of edges");
314 "Guess pedestrian crossings based on the presence of sidewalks");
317 oc.
addDescription(
"crossings.guess.speed-threshold",
"Pedestrian",
318 "At uncontrolled nodes, do not build crossings across edges with a speed above the threshold");
321 oc.
addDescription(
"walkingareas",
"Pedestrian",
"Always build walking areas even if there are no crossings");
327 oc.
addDescription(
"tls.set",
"TLS Building",
"Interprets STR as list of junctions to be controlled by TLS");
330 oc.
addSynonyme(
"tls.unset",
"explicite-no-tls",
true);
331 oc.
addDescription(
"tls.unset",
"TLS Building",
"Interprets STR as list of junctions to be not controlled by TLS");
336 oc.
addDescription(
"tls.guess",
"TLS Building",
"Turns on TLS guessing");
339 oc.
addDescription(
"tls.guess.threshold",
"TLS Building",
"Sets minimum value for the sum of all incoming lane speeds when guessing TLS");
343 oc.
addSynonyme(
"tls.taz-nodes",
"tls-guess.district-nodes",
true);
344 oc.
addDescription(
"tls.taz-nodes",
"TLS Building",
"Sets district nodes as tls-controlled");
348 oc.
addDescription(
"tls-guess.joining",
"TLS Building",
"Includes node clusters into guess");
352 oc.
addDescription(
"tls.join",
"TLS Building",
"Tries to cluster tls-controlled nodes");
356 "Determines the maximal distance for joining traffic lights (defaults to 20)");
360 "Do not control edges that lie fully within a joined traffic light. This may cause collisions but allows old traffic light plans to be used");
364 oc.
addDescription(
"tls.guess-signals",
"TLS Building",
"Interprets tls nodes surrounding an intersection as signal positions for a larger TLS. This is typical pattern for OSM-derived networks");
367 oc.
addDescription(
"tls.guess-signals.dist",
"TLS Building",
"Distance for interpreting nodes as signal locations");
373 oc.
addDescription(
"tls.cycle.time",
"TLS Building",
"Use INT as cycle duration");
376 oc.
addSynonyme(
"tls.green.time",
"traffic-light-green",
true);
377 oc.
addDescription(
"tls.green.time",
"TLS Building",
"Use INT as green phase duration");
380 oc.
addSynonyme(
"tls.yellow.min-decel",
"min-decel",
true);
381 oc.
addDescription(
"tls.yellow.min-decel",
"TLS Building",
"Defines smallest vehicle deceleration");
384 oc.
addSynonyme(
"tls.yellow.patch-small",
"patch-small-tyellow",
true);
385 oc.
addDescription(
"tls.yellow.patch-small",
"TLS Building",
"Given yellow times are patched even if being too short");
388 oc.
addSynonyme(
"tls.yellow.time",
"traffic-light-yellow",
true);
389 oc.
addDescription(
"tls.yellow.time",
"TLS Building",
"Set INT as fixed time for yellow phase durations");
392 oc.
addDescription(
"tls.red.time",
"TLS Building",
"Set INT as fixed time for red phase duration at traffic lights that do not have a conflicting flow");
395 oc.
addDescription(
"tls.allred.time",
"TLS Building",
"Set INT as fixed time for intermediate red phase after every switch");
398 oc.
addDescription(
"tls.minor-left.max-speed",
"TLS Building",
"Use FLOAT as threshold for allowing left-turning vehicles to move in the same phase as oncoming straight-going vehicles");
401 oc.
addDescription(
"tls.left-green.time",
"TLS Building",
"Use INT as green phase duration for left turns (s). Setting this value to 0 disables additional left-turning phases");
404 oc.
addDescription(
"tls.crossing-min.time",
"TLS Building",
"Use INT as minimum green duration for pedestrian crossings (s).");
407 oc.
addDescription(
"tls.crossing-clearance.time",
"TLS Building",
"Use INT as clearance time for pedestrian crossings (s).");
410 oc.
addDescription(
"tls.scramble.time",
"TLS Building",
"Use INT as green phase duration for pedestrian scramble phase (s).");
414 oc.
addSynonyme(
"tls.half-offset",
"tl-logics.half-offset",
true);
415 oc.
addDescription(
"tls.half-offset",
"TLS Building",
"TLSs in STR will be shifted by half-phase");
418 oc.
addSynonyme(
"tls.quarter-offset",
"tl-logics.quarter-offset",
true);
419 oc.
addDescription(
"tls.quarter-offset",
"TLS Building",
"TLSs in STR will be shifted by quarter-phase");
423 oc.
addDescription(
"tls.default-type",
"TLS Building",
"TLSs with unspecified type will use STR as their algorithm");
426 oc.
addDescription(
"tls.layout",
"TLS Building",
"Set phase layout four grouping opposite directions or grouping all movements for one incoming edge ['opposites', 'incoming']");
429 oc.
addDescription(
"tls.min-dur",
"TLS Building",
"Default minimum phase duration for traffic lights with variable phase length");
432 oc.
addDescription(
"tls.max-dur",
"TLS Building",
"Default maximum phase duration for traffic lights with variable phase length");
436 oc.
addSynonyme(
"keep-edges.min-speed",
"edges-min-speed",
true);
437 oc.
addDescription(
"keep-edges.min-speed",
"Edge Removal",
"Only keep edges with speed in meters/second > FLOAT");
440 oc.
addSynonyme(
"remove-edges.explicit",
"remove-edges");
441 oc.
addDescription(
"remove-edges.explicit",
"Edge Removal",
"Remove edges in STR");
444 oc.
addSynonyme(
"keep-edges.explicit",
"keep-edges");
445 oc.
addDescription(
"keep-edges.explicit",
"Edge Removal",
"Only keep edges in STR or those which are kept due to other keep-edges or remove-edges options");
448 oc.
addDescription(
"keep-edges.input-file",
"Edge Removal",
"Only keep edges in FILE (Each id on a single line. Selection files from SUMO-GUI are also supported) or those which are kept due to other keep-edges or remove-edges options");
451 oc.
addDescription(
"remove-edges.input-file",
"Edge Removal",
"Remove edges in FILE. (Each id on a single line. Selection files from SUMO-GUI are also supported)");
455 oc.
addDescription(
"keep-edges.postload",
"Edge Removal",
"Remove edges after joining");
459 oc.
addDescription(
"keep-edges.in-boundary",
"Edge Removal",
"Only keep edges which are located within the given boundary (given either as CARTESIAN corner coordinates <xmin,ymin,xmax,ymax> or as polygon <x0,y0,x1,y1,...>)");
462 oc.
addDescription(
"keep-edges.in-geo-boundary",
"Edge Removal",
"Only keep edges which are located within the given boundary (given either as GEODETIC corner coordinates <lon-min,lat-min,lon-max,lat-max> or as polygon <lon0,lat0,lon1,lat1,...>)");
466 oc.
addDescription(
"keep-edges.by-vclass",
"Edge Removal",
"Only keep edges which allow one of the vclasss in STR");
469 oc.
addDescription(
"remove-edges.by-vclass",
"Edge Removal",
"Remove edges which allow only vclasses from STR");
472 oc.
addDescription(
"keep-edges.by-type",
"Edge Removal",
"Only keep edges where type is in STR");
475 oc.
addDescription(
"keep-edges.components",
"Edge Removal",
"Only keep the INT largest weakly connected components");
478 oc.
addDescription(
"remove-edges.by-type",
"Edge Removal",
"Remove edges where type is in STR");
481 oc.
addSynonyme(
"remove-edges.isolated",
"remove-isolated",
true);
482 oc.
addDescription(
"remove-edges.isolated",
"Edge Removal",
"Removes isolated edges");
488 oc.
addSynonyme(
"keep-nodes-unregulated",
"keep-unregulated");
489 oc.
addDescription(
"keep-nodes-unregulated",
"Unregulated Nodes",
"All nodes will be unregulated");
492 oc.
addSynonyme(
"keep-nodes-unregulated.explicit",
"keep-unregulated.explicit");
493 oc.
addSynonyme(
"keep-nodes-unregulated.explicit",
"keep-unregulated.nodes",
true);
494 oc.
addDescription(
"keep-nodes-unregulated.explicit",
"Unregulated Nodes",
"Do not regulate nodes in STR");
497 oc.
addSynonyme(
"keep-nodes-unregulated.district-nodes",
"keep-unregulated.district-nodes");
498 oc.
addDescription(
"keep-nodes-unregulated.district-nodes",
"Unregulated Nodes",
"Do not regulate district nodes");
503 oc.
addSynonyme(
"ramps.guess",
"guess-ramps",
true);
504 oc.
addDescription(
"ramps.guess",
"Ramp Guessing",
"Enable ramp-guessing");
507 oc.
addDescription(
"ramps.guess-acceleration-lanes",
"Ramp Guessing",
"Guess on-ramps and mark acceleration lanes if they exist but do not add new lanes");
510 oc.
addSynonyme(
"ramps.max-ramp-speed",
"ramp-guess.max-ramp-speed",
true);
511 oc.
addDescription(
"ramps.max-ramp-speed",
"Ramp Guessing",
"Treat edges with speed > FLOAT as no ramps");
514 oc.
addSynonyme(
"ramps.min-highway-speed",
"ramp-guess.min-highway-speed",
true);
515 oc.
addDescription(
"ramps.min-highway-speed",
"Ramp Guessing",
"Treat edges with speed < FLOAT as no highways");
518 oc.
addSynonyme(
"ramps.ramp-length",
"ramp-guess.ramp-length",
true);
519 oc.
addDescription(
"ramps.ramp-length",
"Ramp Guessing",
"Use FLOAT as ramp-length");
522 oc.
addSynonyme(
"ramps.set",
"ramp-guess.explicite",
true);
523 oc.
addDescription(
"ramps.set",
"Ramp Guessing",
"Tries to handle the given edges as ramps");
526 oc.
addDescription(
"ramps.unset",
"Ramp Guessing",
"Do not consider the given edges as ramps");
529 oc.
addSynonyme(
"ramps.no-split",
"ramp-guess.no-split",
true);
530 oc.
addDescription(
"ramps.no-split",
"Ramp Guessing",
"Avoids edge splitting");
540 if (!oc.
isDefault(
"tls-guess.joining")) {
541 WRITE_WARNING(
"'--tls-guess.joining' was joined with '--tls.join'.\n Please use '--tls.join' in future only.");
542 if (!oc.
isSet(
"tls.join")) {
543 oc.
set(
"tls.join",
"true");
547 WRITE_ERROR(
"unsupported value '" + oc.
getString(
"tls.default-type") +
"' for option '--tls.default-type'");
550 if (oc.
isSet(
"keep-edges.in-boundary") && oc.
isSet(
"keep-edges.in-geo-boundary")) {
551 WRITE_ERROR(
"only one of the options 'keep-edges.in-boundary' or 'keep-edges.in-geo-boundary' may be given");
554 if (oc.
getBool(
"no-internal-links") && oc.
getBool(
"crossings.guess")) {
555 WRITE_ERROR(
"only one of the options 'no-internal-links' or 'crossings.guess' may be given");
558 if (oc.
getBool(
"no-internal-links") && oc.
getBool(
"walkingareas")) {
559 WRITE_ERROR(
"only one of the options 'no-internal-links' or 'walkareas' may be given");
563 WRITE_ERROR(
"only one of the options 'tls.green.time' or 'tls.cycle.time' may be given");
566 if (oc.
getInt(
"junctions.internal-link-detail") < 2) {
567 WRITE_ERROR(
"junctions.internal-link-detail must >= 2");
570 if (oc.
getFloat(
"junctions.scurve-stretch") > 0) {
571 if (oc.
getBool(
"no-internal-links")) {
572 WRITE_WARNING(
"option 'junctions.scurve-stretch' requires internal lanes to work. Option '--no-internal-links' was disabled.");
575 oc.
set(
"no-internal-links",
"false");
577 if (oc.
getFloat(
"junctions.small-radius") > oc.
getFloat(
"default.junctions.radius")) {
578 WRITE_ERROR(
"option 'default.junctions.radius' cannot be smaller than option 'junctions.small-radius'");
581 if (oc.
getString(
"tls.layout") !=
"opposites" && oc.
getString(
"tls.layout") !=
"incoming") {
582 WRITE_ERROR(
"tls.layout must be 'opposites' or 'incoming'");
585 if (!oc.
isDefault(
"default.right-of-way") &&
static StringBijection< RightOfWay > RightOfWayValues
lane spread functions
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid.
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
bool isDefault(const std::string &name) const
Returns the information whether the named option has still the default value.
static const double UNSPECIFIED_WIDTH
unspecified lane width
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static StringBijection< TrafficLightType > TrafficLightTypes
traffic light types
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
bool set(const std::string &name, const std::string &value)
Sets the given value for the named option.
A storage for options typed value containers)
static void fillOptions(bool forNetgen)
Inserts options used by the network converter.
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
bool hasString(const std::string &str) const