| 594 | |
| 595 | |
| 596 | MetadataNode 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 | |
| 618 | void SpatialReference::dump() const |
nothing calls this directly
no test coverage detected