| 57 | std::unique_ptr<OGRSpatialReference>; |
| 58 | |
| 59 | OGRScopedSpatialReference ogrCreateSrs(std::string s = "", double epoch=0.0) |
| 60 | { |
| 61 | OGRScopedSpatialReference r( |
| 62 | new OGRSpatialReference(s.size() ? s.c_str() : nullptr)); |
| 63 | if (!pdal::Utils::compare_approx(epoch, 0.0f, 0.00001f)) |
| 64 | { |
| 65 | #if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,4,0) |
| 66 | r->SetCoordinateEpoch(epoch); |
| 67 | #endif |
| 68 | } |
| 69 | |
| 70 | return r; |
| 71 | } |
| 72 | |
| 73 | std::string exportToWkt(OGRSpatialReference* srs, const std::vector<std::string>& options = {}) |
| 74 | { |
no test coverage detected