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

Method toMetadata

pdal/SpatialReference.cpp:596–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594
595
596MetadataNode SpatialReference::toMetadata() const
597{
598 MetadataNode root("srs");
599 root.add("horizontal", getHorizontal());
600 root.add("vertical", getVertical());
601 root.add("isgeographic", isGeographic());
602 root.add("isgeocentric", isGeocentric());
603 root.add("proj4", getProj4());
604 root.add("prettywkt", prettyWkt(getHorizontal()));
605 root.add("wkt", getHorizontal());
606 root.addWithType("json", getPROJJSON(), "json", "PROJJSON");
607 root.add("compoundwkt", getWKT());
608 root.add("prettycompoundwkt", prettyWkt(m_wkt));
609
610 MetadataNode units = root.add("units");
611 units.add("vertical", getVerticalUnits());
612 units.add("horizontal", getHorizontalUnits());
613
614 return root;
615}
616
617
618void SpatialReference::dump() const

Callers

nothing calls this directly

Calls 3

getPROJJSONFunction · 0.85
getWKTFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected