| 282 | } |
| 283 | |
| 284 | int WktParser::ValueInt(const std::string& key, const double def) { |
| 285 | int ret; |
| 286 | if (HasValueInt(key, ret)) { |
| 287 | return ret; |
| 288 | } else { |
| 289 | return static_cast<int>(def); |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | double WktParser::ValueDouble(const std::string& key, const double def) { |
| 294 | double ret; |
nothing calls this directly
no outgoing calls
no test coverage detected