| 305 | } |
| 306 | |
| 307 | NL::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 | |
| 322 | void ArrowWriter::addArgs(ProgramArgs& args) |
no test coverage detected