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-14 23:59:26 +0200 |
| commit | eadbb9d6201f27e5f92cef599b7baed680c86e22 (patch) | |
| tree | 2c3f9f6299a09300e5132522410a0afa4c8dbd5a /src | |
| parent | 1409b0031709598204d5d81cf9eb7d433545025d (diff) | |
| download | PROJ-eadbb9d6201f27e5f92cef599b7baed680c86e22.tar.gz PROJ-eadbb9d6201f27e5f92cef599b7baed680c86e22.zip | |
lookForGridAlternative(): fix bug with Dutch 2008 grids
Diffstat (limited to 'src')
| -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; |
