diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-04-16 00:44:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-16 00:44:39 +0200 |
| commit | 000fa21d070e64200bc877b9d14444262e1a14b5 (patch) | |
| tree | 6d5dd2c3841bb87ec0816e6c9e9593b5091731a3 /src/iso19111/factory.cpp | |
| parent | c91966953d9ad327cbb3b9d80842cc0d3957df42 (diff) | |
| parent | 4be093e9d23b53915ed88a1c0da06f6833456a69 (diff) | |
| download | PROJ-000fa21d070e64200bc877b9d14444262e1a14b5.tar.gz PROJ-000fa21d070e64200bc877b9d14444262e1a14b5.zip | |
Merge pull request #2155 from rouault/fix_2143
createOperations(): do not remove ballpark transformation if there are only grid based operations, even if they cover the whole area of use (fixes #2143)
Diffstat (limited to 'src/iso19111/factory.cpp')
| -rw-r--r-- | src/iso19111/factory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index 32ed6abb..aa3cd6cf 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -926,7 +926,8 @@ bool DatabaseContext::lookForGridAlternative(const std::string &officialName, bool &inverse) const { auto res = d->run( "SELECT proj_grid_name, proj_grid_format, inverse_direction FROM " - "grid_alternatives WHERE original_grid_name = ?", + "grid_alternatives WHERE original_grid_name = ? AND " + "proj_grid_name <> ''", {officialName}); if (res.empty()) { return false; |
