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

Method equals

pdal/SpatialReference.cpp:350–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348
349
350bool SpatialReference::equals(const SpatialReference& input) const
351{
352 if (getWKT() == input.getWKT())
353 return true;
354
355 OGRScopedSpatialReference current = ogrCreateSrs(getWKT(), m_epoch);
356 OGRScopedSpatialReference other = ogrCreateSrs(input.getWKT(), m_epoch);
357
358 if (!current || !other)
359 return false;
360
361 int output = current->IsSame(other.get());
362
363 return (output == 1);
364}
365
366
367bool SpatialReference::operator==(const SpatialReference& input) const

Callers 3

operator==Method · 0.95
operator!=Method · 0.95
TEST_FFunction · 0.80

Calls 4

getWKTFunction · 0.85
ogrCreateSrsFunction · 0.85
getWKTMethod · 0.80
getMethod · 0.45

Tested by 1

TEST_FFunction · 0.64