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

Method processOne

io/GDALWriter.cpp:283–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281
282
283bool GDALWriter::processOne(PointRef& point)
284{
285 double x = point.getFieldAs<double>(Dimension::Id::X);
286 double y = point.getFieldAs<double>(Dimension::Id::Y);
287 double z = point.getFieldAs<double>(m_interpDim);
288
289 if (m_expandByPoint)
290 {
291 if (!m_grid)
292 createGrid(BOX2D(x, y, x, y));
293 else
294 m_grid->expandToInclude(x, y);
295 }
296
297 m_grid->addPoint(x, y, z);
298 return true;
299}
300
301
302void GDALWriter::doneFile()

Callers

nothing calls this directly

Calls 3

BOX2DClass · 0.50
expandToIncludeMethod · 0.45
addPointMethod · 0.45

Tested by

no test coverage detected