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

Function ogrCreateSrs

pdal/SpatialReference.cpp:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 std::unique_ptr<OGRSpatialReference>;
58
59OGRScopedSpatialReference 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
73std::string exportToWkt(OGRSpatialReference* srs, const std::vector<std::string>& options = {})
74{

Callers 15

identifyVerticalEPSGMethod · 0.85
getPROJJSONMethod · 0.85
setMethod · 0.85
getVerticalMethod · 0.85
getVerticalUnitsMethod · 0.85
getHorizontalMethod · 0.85
getHorizontalUnitsMethod · 0.85
equalsMethod · 0.85
isGeographicMethod · 0.85
isGeocentricMethod · 0.85
isProjectedMethod · 0.85

Calls 2

compare_approxFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected