| 157 | |
| 158 | |
| 159 | void 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 | |
| 178 | point_count_t GDALReader::read(PointViewPtr view, point_count_t numPts) |
| 179 | { |
nothing calls this directly
no test coverage detected