diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-04-14 23:59:26 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-04-15 00:06:54 +0200 |
| commit | 953ff68cbd444046f2aa2f8b305c1d7cb258cc8a (patch) | |
| tree | dc2cfda15a2849261c07b8cfe6b7b58465fa0a9f /src/iso19111/factory.cpp | |
| parent | 5078ce353450fc8746f508e1285d047d0ed6c31e (diff) | |
| download | PROJ-953ff68cbd444046f2aa2f8b305c1d7cb258cc8a.tar.gz PROJ-953ff68cbd444046f2aa2f8b305c1d7cb258cc8a.zip | |
lookForGridAlternative(): fix bug with Dutch 2008 grids
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 b60ce9f9..f6650055 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; |
