diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-12-17 22:56:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-17 22:56:19 +0100 |
| commit | c3851c28b3e5749880a552695b3379e18b878acc (patch) | |
| tree | d729ac149de57f1821b771c694138768d6f7c478 /src/projinfo.cpp | |
| parent | db8b08bededbd18a64f27a4715c8eab94f433197 (diff) | |
| parent | f4a5ec557f034f8648f75db9165bd3d4fcbf26f2 (diff) | |
| download | PROJ-c3851c28b3e5749880a552695b3379e18b878acc.tar.gz PROJ-c3851c28b3e5749880a552695b3379e18b878acc.zip | |
Merge pull request #1201 from kbevers/fix-duplicate-expr
Fix duplicate expressions in projinfo options parsing
Diffstat (limited to 'src/projinfo.cpp')
| -rw-r--r-- | src/projinfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/projinfo.cpp b/src/projinfo.cpp index cf666b4d..89b42e12 100644 --- a/src/projinfo.cpp +++ b/src/projinfo.cpp @@ -664,12 +664,12 @@ int main(int argc, char **argv) { } else if (ci_equal(format, "-PROJ")) { outputOpt.PROJ5 = false; } else if (ci_equal(format, "WKT_ALL") || - ci_equal(format, "WKT_ALL")) { + ci_equal(format, "WKT-ALL")) { outputOpt.WKT2_2018 = true; outputOpt.WKT2_2015 = true; outputOpt.WKT1_GDAL = true; } else if (ci_equal(format, "-WKT_ALL") || - ci_equal(format, "-WKT_ALL")) { + ci_equal(format, "-WKT-ALL")) { outputOpt.WKT2_2018 = false; outputOpt.WKT2_2015 = false; outputOpt.WKT1_GDAL = false; @@ -784,7 +784,7 @@ int main(int argc, char **argv) { spatialCriterion = CoordinateOperationContext:: SpatialCriterion::PARTIAL_INTERSECTION; } else { - std::cerr << "Unrecognized value for option --patial-test: " + std::cerr << "Unrecognized value for option --spatial-test: " << value << std::endl; usage(); } |
