57 #ifdef CHECK_MEMORY_LEAKS
59 #endif // CHECK_MEMORY_LEAKS
66 : myEdgeCont(myTypeCont) {}
75 if (oc.
isSet(
"keep-edges.input-file")) {
76 std::ifstream strm(oc.
getString(
"keep-edges.input-file").c_str());
78 throw ProcessError(
"Could not load names of edges too keep from '" + oc.
getString(
"keep-edges.input-file") +
"'.");
80 std::ostringstream oss;
91 oc.
set(
"keep-edges.explicit", oss.str());
104 const std::set<std::string>& explicitTurnarounds,
105 bool removeUnwishedNodes) {
112 if (oc.
exists(
"junctions.join-exclude") && oc.
isSet(
"junctions.join-exclude")) {
116 if (oc.
getBool(
"junctions.join")) {
138 if (oc.
exists(
"remove-edges.isolated") && oc.
getBool(
"remove-edges.isolated")) {
144 if (oc.
exists(
"keep-edges.postload") && oc.
getBool(
"keep-edges.postload")) {
145 if (oc.
isSet(
"keep-edges.explicit")) {
152 if (removeUnwishedNodes) {
154 const bool removeGeometryNodes = oc.
exists(
"geometry.remove") && oc.
getBool(
"geometry.remove");
155 PROGRESS_BEGIN_MESSAGE(
"Removing empty nodes" + std::string(removeGeometryNodes ?
" and geometry nodes" :
""));
167 if (oc.
exists(
"geometry.split") && oc.
getBool(
"geometry.split")) {
189 (*i).second->reshiftPosition(x, y);
192 (*i).second->reshiftPosition(x, y);
195 (*i).second->reshiftPosition(x, y);
206 if (oc.
exists(
"speed.offset")) {
209 if (speedOffset != 0 || speedFactor != 1) {
212 (*i).second->setSpeed(-1, (*i).second->getSpeed() * speedFactor + speedOffset);
240 if (oc.
getBool(
"roundabouts.guess")) {
256 if (!oc.
getBool(
"no-turnarounds")) {
281 if (oc.
isSet(
"tls.set")) {
282 std::vector<std::string> tlControlledNodes = oc.
getStringVector(
"tls.set");
283 for (std::vector<std::string>::const_iterator i = tlControlledNodes.begin(); i != tlControlledNodes.end(); ++i) {
286 WRITE_WARNING(
"Building a tl-logic for node '" + *i +
"' is not possible." +
"\n The node '" + *i +
"' is not known.");
315 std::string progCount =
"";
316 if (numbers.first != numbers.second) {
317 progCount =
"(" +
toString(numbers.second) +
" programs) ";
321 if (oc.
isSet(
"street-sign-output")) {
328 if (!oc.
getBool(
"no-internal-links")) {
331 (*i).second->sortOutgoingConnectionsByIndex();
334 (*i).second->buildInnerEdges();
341 WRITE_MESSAGE(
"-----------------------------------------------------");
348 WRITE_MESSAGE(
"-----------------------------------------------------");