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

Method ready

filters/CropFilter.cpp:139–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138
139void CropFilter::ready(PointTableRef table)
140{
141 // If the user didn't provide an SRS, take one from the table.
142 if (m_args->m_assignedSrs.empty())
143 {
144 m_args->m_assignedSrs = table.anySpatialReference();
145 if (!table.spatialReferenceUnique())
146 log()->get(LogLevel::Warning) << "Can't determine spatial "
147 "reference for provided bounds. Consider using 'a_srs' "
148 "option.\n";
149 }
150 for (auto& geom : m_geoms)
151 geom.m_poly.setSpatialReference(m_args->m_assignedSrs);
152}
153
154
155bool CropFilter::processOne(PointRef& point)

Callers

nothing calls this directly

Calls 4

logFunction · 0.50
emptyMethod · 0.45
getMethod · 0.45
setSpatialReferenceMethod · 0.45

Tested by

no test coverage detected