| 291 | |
| 292 | |
| 293 | bool ArrowWriter::processOne(PointRef& point) |
| 294 | { |
| 295 | for (auto& handler : m_dimHandlers) |
| 296 | { |
| 297 | auto ok = handler->append(point); |
| 298 | if (!ok) |
| 299 | throwError("Unable to append point data to arrow array: " + ok.what() + "."); |
| 300 | } |
| 301 | |
| 302 | if (++m_batchIndex == (point_count_t)m_batchSize) |
| 303 | flushBatch(); |
| 304 | return true; |
| 305 | } |
| 306 | |
| 307 | NL::json getPROJJSON(const pdal::SpatialReference& ref) |
| 308 | { |