Skip to content

Commit

Permalink
DatabaseContext::lookForGridInfo(): deal with special 'null' grid
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored and github-actions[bot] committed Apr 19, 2023
1 parent adb8ca1 commit fa6dbdd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/iso19111/factory.cpp
Expand Up @@ -3250,6 +3250,17 @@ bool DatabaseContext::lookForGridInfo(
bool &directDownload, bool &openLicense, bool &gridAvailable) const {
Private::GridInfoCache info;

if (projFilename == "null") {
// Special case for implicit "null" grid.
fullFilename.clear();
packageName.clear();
url.clear();
directDownload = false;
openLicense = true;
gridAvailable = true;
return true;
}

auto ctxt = d->pjCtxt();
if (ctxt == nullptr) {
ctxt = pj_get_default_ctx();
Expand Down

0 comments on commit fa6dbdd

Please sign in to comment.