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

Method ready

io/GDALReader.cpp:159–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158
159void GDALReader::ready(PointTableRef table)
160{
161 m_raster.reset(new gdal::Raster(m_filename));
162 if (m_raster->open(m_options) == gdal::GDALError::CantOpen)
163 throwError("Couldn't open raster file '" + m_filename + "'.");
164
165 if (m_useMemoryCopy)
166 {
167 gdal::Raster *r = m_raster->memoryCopy();
168 if (r)
169 m_raster.reset(r);
170 else
171 log()->get(LogLevel::Warning) << "Couldn't create raster memory "
172 "copy. Using standard interface.";
173 }
174
175 m_blockReader.initialize();
176}
177
178point_count_t GDALReader::read(PointViewPtr view, point_count_t numPts)
179{

Callers

nothing calls this directly

Calls 6

memoryCopyMethod · 0.80
logFunction · 0.50
resetMethod · 0.45
openMethod · 0.45
getMethod · 0.45
initializeMethod · 0.45

Tested by

no test coverage detected