You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
char*gridname="stlrnc";
setenv( "PROJ_DEBUG", "4", 1);
PJ_GRID_INFOinfo=proj_grid_info(gridname);
if (strcmp(info.format,"gtiff")==0) {
printf("Not using TIFF");
}
Meanwhile with grid name above set to us_noaa_stlrnc.tif (which is the mapped file), the full data is presented.
Problem description
proj_grid_info no longer returns full information on grids that were coerced using the LUT in proj.db. In this case, the problem was triggered when running some automated tests we had based on using older proj formats. The result is that anything entries such as stlrnc, which can be resolved into a grid set (us_noaa_stlrnc.tif) by using the LUT in proj.db were returning only .name because pj_find_file() does not perform the same lookup as is done by NS_PROJ::HorizontalShiftGridSet::open(). At the time of the call to fillGridInfo(), the gridset contains the full path for these types of grids, available in gridset->name(), but isn't passed in.
Before the call to fillGridInfo(), the gridset contains:
In master, FileManager::open_resource_file() (called by HorizontalShiftGridSet::open(()) now calls pj_find_file() by disabling networking, so the scope of the bug in master was reduced to querying information on remote known grids, compared to the 9.0 branch.
Example of problem
Meanwhile with
grid name
above set tous_noaa_stlrnc.tif
(which is the mapped file), the full data is presented.Problem description
proj_grid_info
no longer returns full information on grids that were coerced using the LUT in proj.db. In this case, the problem was triggered when running some automated tests we had based on using older proj formats. The result is that anything entries such asstlrnc
, which can be resolved into a grid set (us_noaa_stlrnc.tif
) by using the LUT inproj.db
were returning only.name
becausepj_find_file()
does not perform the same lookup as is done byNS_PROJ::HorizontalShiftGridSet::open()
. At the time of the call tofillGridInfo()
, thegridset
contains the full path for these types of grids, available ingridset->name()
, but isn't passed in.Before the call to
fillGridInfo()
, thegridset
contains:However, the returned data is:
Expected Output
Prior to the changes in bc34a84, the data structure was complete.
Existing tests in
gie_self_tests.cpp
do not test for the situation where the grid is mapped from an old proj string.There seems to be minimal use outside of
gie
, and the tests there are specifically for either directly-named grids.Environment Information
Installation method
The text was updated successfully, but these errors were encountered: