| 411 | } |
| 412 | |
| 413 | void ArrowWriter::gatherParquetGeoMetadata(std::shared_ptr<arrow::KeyValueMetadata>& input, |
| 414 | const SpatialReference& ref) |
| 415 | { |
| 416 | NL::json column = { |
| 417 | { "encoding", "WKB" }, |
| 418 | { "geometry_types", { "Point" } } |
| 419 | }; |
| 420 | column.update(getPROJJSON(ref.empty() ? SpatialReference("EPSG:4326") : ref)); |
| 421 | |
| 422 | NL::json wkb; |
| 423 | wkb["wkb"] = column; |
| 424 | |
| 425 | NL::json geo { |
| 426 | { "version", m_geoParquetVersion }, |
| 427 | { "primary_column", "wkb" }, |
| 428 | { "columns", wkb } |
| 429 | }; |
| 430 | |
| 431 | input->Append("geo", geo.dump(-1)); |
| 432 | } |
| 433 | |
| 434 | |
| 435 | void ArrowWriter::setupParquet(PointTableRef table) |
nothing calls this directly
no test coverage detected