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

Method prettyWkt

pdal/SpatialReference.cpp:530–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528
529
530std::string SpatialReference::prettyWkt(const std::string& wkt)
531{
532 std::string outWkt;
533
534 OGRScopedSpatialReference srs = ogrCreateSrs(wkt);
535 if (!srs)
536 return outWkt;
537
538 outWkt = exportToWkt(srs.get(), {"MULTILINE=YES"}); // equivalent to exportToPrettyWkt
539 return outWkt;
540}
541
542std::string SpatialReference::getWKT1() const
543{

Callers

nothing calls this directly

Calls 3

ogrCreateSrsFunction · 0.85
exportToWktFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected