| 313 | |
| 314 | |
| 315 | std::string SpatialReference::getHorizontal() const |
| 316 | { |
| 317 | if (m_horizontalWkt.empty()) |
| 318 | { |
| 319 | OGRScopedSpatialReference poSRS = ogrCreateSrs(m_wkt, m_epoch); |
| 320 | |
| 321 | if (poSRS) |
| 322 | { |
| 323 | poSRS->StripVertical(); |
| 324 | m_horizontalWkt = exportToWkt(poSRS.get()); |
| 325 | } |
| 326 | } |
| 327 | return m_horizontalWkt; |
| 328 | } |
| 329 | |
| 330 | |
| 331 | std::string SpatialReference::getHorizontalUnits() const |