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

Method addSpatialReference

pdal/PointTable.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60void BasePointTable::addSpatialReference(const SpatialReference& spatialRef)
61{
62 auto it = std::find(m_spatialRefs.begin(), m_spatialRefs.end(), spatialRef);
63
64 // If not found, add to the beginning.
65 if (it == m_spatialRefs.end())
66 m_spatialRefs.push_front(spatialRef);
67 // If not the first element, move the found element to the front.
68 else if (it != m_spatialRefs.begin())
69 m_spatialRefs.splice(m_spatialRefs.begin(), m_spatialRefs, it);
70}
71
72
73ArtifactManager& BasePointTable::artifactManager()

Callers 2

TESTFunction · 0.80
executeMethod · 0.80

Calls 3

findFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64