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

Function getPROJJSON

plugins/arrow/io/ArrowWriter.cpp:307–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307NL::json getPROJJSON(const pdal::SpatialReference& ref)
308{
309 NL::json column;
310 try
311 {
312 column["crs"] = NL::json::parse(ref.getPROJJSON());
313 } catch (NL::json::parse_error& e)
314 {
315 column["error"] = e.what();
316 }
317 column["edges"] = ref.isGeographic() ? "spherical" : "planar";
318 return column;
319}
320
321
322void ArrowWriter::addArgs(ProgramArgs& args)

Callers 2

toMetadataMethod · 0.85

Calls 4

getPROJJSONMethod · 0.80
isGeographicMethod · 0.80
parseFunction · 0.50
whatMethod · 0.45

Tested by

no test coverage detected