MCPcopy Create free account
hub / github.com/OSGeo/PROJ / getCSDatabaseType

Function getCSDatabaseType

src/iso19111/factory.cpp:1712–1721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1710// ---------------------------------------------------------------------------
1711
1712static const char *getCSDatabaseType(const cs::CoordinateSystemNNPtr &obj) {
1713 if (dynamic_cast<const cs::EllipsoidalCS *>(obj.get())) {
1714 return CS_TYPE_ELLIPSOIDAL;
1715 } else if (dynamic_cast<const cs::CartesianCS *>(obj.get())) {
1716 return CS_TYPE_CARTESIAN;
1717 } else if (dynamic_cast<const cs::VerticalCS *>(obj.get())) {
1718 return CS_TYPE_VERTICAL;
1719 }
1720 return nullptr;
1721}
1722
1723// ---------------------------------------------------------------------------
1724

Callers 2

identifyMethod · 0.85
identifyOrInsertMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected