| 558 | } |
| 559 | |
| 560 | int SpatialReference::getUTMZone() const |
| 561 | { |
| 562 | OGRScopedSpatialReference current = ogrCreateSrs(m_wkt, m_epoch); |
| 563 | if (!current) |
| 564 | throw pdal_error("Could not fetch current SRS"); |
| 565 | |
| 566 | int north(0); |
| 567 | int zone = current->GetUTMZone(&north); |
| 568 | return (north ? 1 : -1) * zone; |
| 569 | } |
| 570 | |
| 571 | |
| 572 | int SpatialReference::computeUTMZone(const BOX3D& cbox) const |