diff options
Diffstat (limited to 'src/apps/projinfo.cpp')
| -rw-r--r-- | src/apps/projinfo.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/apps/projinfo.cpp b/src/apps/projinfo.cpp index 1760ae29..fd9b2f46 100644 --- a/src/apps/projinfo.cpp +++ b/src/apps/projinfo.cpp @@ -601,37 +601,6 @@ static void outputOperationSummary(const CoordinateOperationNNPtr &op, // --------------------------------------------------------------------------- -static size_t getAxisCount(const CRSNNPtr &crs) { - const auto singleCRS = dynamic_cast<const SingleCRS *>(crs.get()); - if (singleCRS) { - return singleCRS->coordinateSystem()->axisList().size(); - } - const auto compoundCRS = dynamic_cast<const CompoundCRS *>(crs.get()); - if (compoundCRS) { - size_t axisCount = 0; - const auto &components = compoundCRS->componentReferenceSystems(); - for (const auto &subCRS : components) { - axisCount += getAxisCount(subCRS); - } - return axisCount; - } - const auto boundCRS = dynamic_cast<const BoundCRS *>(crs.get()); - if (boundCRS) { - return getAxisCount(boundCRS->baseCRS()); - } - return 0; -} - -// --------------------------------------------------------------------------- - -static bool is2D(const CRSNNPtr &crs) { return getAxisCount(crs) == 2; } - -// --------------------------------------------------------------------------- - -static bool is3D(const CRSNNPtr &crs) { return getAxisCount(crs) == 3; } - -// --------------------------------------------------------------------------- - static void outputOperations( DatabaseContextPtr dbContext, const std::string &sourceCRSStr, const std::string &targetCRSStr, const ExtentPtr &bboxFilter, @@ -666,15 +635,6 @@ static void outputOperations( } auto nnTargetCRS = NN_NO_CHECK(targetCRS); - if (!promoteTo3D && !outputOpt.quiet && - ((is2D(nnSourceCRS) && is3D(nnTargetCRS)) || - (is3D(nnSourceCRS) && is2D(nnTargetCRS)))) { - std::cerr << "Warning: mix of 2D and 3D CRS. Vertical transformations, " - "if available, will not be applied. Consider using 3D " - "version of the CRS, or the --3d switch" - << std::endl; - } - std::vector<CoordinateOperationNNPtr> list; size_t spatialCriterionPartialIntersectionResultCount = 0; try { |
