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

Method wkt

pdal/private/gdal/SpatialRef.cpp:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88std::string SpatialRef::wkt() const
89{
90 std::string output;
91
92 if (m_ref.get())
93 {
94 char *pszWKT = NULL;
95 OSRExportToWkt(m_ref.get(), &pszWKT);
96 bool valid = (bool)*pszWKT;
97 output = pszWKT;
98 CPLFree(pszWKT);
99 }
100 return output;
101}
102
103
104bool SpatialRef::empty() const

Callers 1

getPolygonsFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected