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

Method gatherParquetGeoMetadata

plugins/arrow/io/ArrowWriter.cpp:413–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413void 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
435void ArrowWriter::setupParquet(PointTableRef table)

Callers

nothing calls this directly

Calls 5

getPROJJSONFunction · 0.85
SpatialReferenceClass · 0.50
updateMethod · 0.45
emptyMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected