\brief Return a Ellipsoid object where some parameters are better * identified. * * @return a new Ellipsoid. */
| 984 | * @return a new Ellipsoid. |
| 985 | */ |
| 986 | EllipsoidNNPtr Ellipsoid::identify() const { |
| 987 | auto newEllipsoid = Ellipsoid::nn_make_shared<Ellipsoid>(*this); |
| 988 | newEllipsoid->assignSelf( |
| 989 | util::nn_static_pointer_cast<util::BaseObject>(newEllipsoid)); |
| 990 | |
| 991 | if (name()->description()->empty() || nameStr() == "unknown") { |
| 992 | std::string projEllpsName; |
| 993 | std::string ellpsName; |
| 994 | if (lookForProjWellKnownEllps(projEllpsName, ellpsName)) { |
| 995 | newEllipsoid->setProperties( |
| 996 | util::PropertyMap().set(IdentifiedObject::NAME_KEY, ellpsName)); |
| 997 | } |
| 998 | } |
| 999 | |
| 1000 | return newEllipsoid; |
| 1001 | } |
| 1002 | |
| 1003 | // --------------------------------------------------------------------------- |
| 1004 |
nothing calls this directly
no test coverage detected