MCPcopy Create free account
hub / github.com/PDAL/PDAL / getUTMZone

Method getUTMZone

pdal/SpatialReference.cpp:560–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560int 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
572int SpatialReference::computeUTMZone(const BOX3D& cbox) const

Callers 3

TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

ogrCreateSrsFunction · 0.85

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64