58 #ifdef CHECK_MEMORY_LEAKS
60 #endif // CHECK_MEMORY_LEAKS
69 if (oc.
isSet(
"dlr-navteq-poly-files")) {
72 if (oc.
isSet(
"dlr-navteq-poi-files")) {
81 std::vector<std::string> files = oc.
getStringVector(
"dlr-navteq-poi-files");
82 for (std::vector<std::string>::const_iterator file = files.begin(); file != files.end(); ++file) {
84 throw ProcessError(
"Could not open dlr-navteq-poi-file '" + *file +
"'.");
96 std::vector<std::string> files = oc.
getStringVector(
"dlr-navteq-poly-files");
97 for (std::vector<std::string>::const_iterator file = files.begin(); file != files.end(); ++file) {
99 throw ProcessError(
"Could not open dlr-navteq-poly-file '" + *file +
"'.");
121 if (line.length() == 0 || line.find(
"#") != std::string::npos) {
128 std::istringstream stream(line);
130 std::string name, skip, type, desc;
131 std::getline(stream, name,
'\t');
132 std::getline(stream, skip,
'\t');
133 std::getline(stream, type,
'\t');
134 std::getline(stream, desc,
'\t');
141 throw ProcessError(
"Invalid x coordinate for POI '" + name +
"'.");
145 throw ProcessError(
"Invalid y coordinate for POI '" + name +
"'.");
153 throw ProcessError(
"Unable to project coordinates for POI '" + name +
"'.");
157 bool discard = oc.
getBool(
"discard");
158 int layer = oc.
getInt(
"layer");
173 bool ignorePrunning =
false;
175 ignorePrunning =
true;
178 if (!toFill.
insert(name, poi, layer, ignorePrunning)) {
179 WRITE_ERROR(
"POI '" + name +
"' could not be added.");
201 if (line.length() == 0 || line.find(
"#") != std::string::npos) {
209 std::vector<std::string> values = st.
getVector();
210 if (values.size() < 6 || values.size() % 2 != 0) {
211 throw ProcessError(
"Invalid dlr-navteq-polygon - line: '" + line +
"'.");
213 std::string
id = values[0];
214 std::string ort = values[1];
215 std::string type = values[2];
216 std::string name = values[3];
220 while (values.size() > index) {
221 std::string xpos = values[index];
222 std::string ypos = values[index + 1];
228 WRITE_WARNING(
"Unable to project coordinates for polygon '" +
id +
"'.");
239 if (vec.
size() == 0) {
244 WRITE_WARNING(
"The name of a polygon is missing; it will be discarded.");
250 bool discard = oc.
getBool(
"discard");
251 int layer = oc.
getInt(
"layer");
268 if (!toFill.
insert(name, poly, layer)) {
269 WRITE_ERROR(
"Polygon '" + name +
"' could not be added.");