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

Method identifyHorizontalEPSG

pdal/SpatialReference.cpp:127–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127std::string SpatialReference::identifyHorizontalEPSG() const
128{
129 OGRScopedSpatialReference srs(ogrCreateSrs(getHorizontal(), m_epoch));
130
131 if (!srs || srs->AutoIdentifyEPSG() != OGRERR_NONE)
132 return "";
133
134 if (const char* c = srs->GetAuthorityCode(nullptr))
135 return std::string(c);
136
137 return "";
138}
139
140
141std::string SpatialReference::identifyVerticalEPSG() const

Callers 3

TESTFunction · 0.80
checkSRSFunction · 0.80
TEST_FFunction · 0.80

Calls 1

ogrCreateSrsFunction · 0.85

Tested by 2

TESTFunction · 0.64
TEST_FFunction · 0.64