Looks like this is some kind of warning. I got the same warning after running gdalinfo tool for the sample file. I added some more code to get the general file information and it worked fine.
On Mon, Jun 29, 2020 at 4:15 PM NSquare <[email protected]> wrote: > Hi Folks, > > I am trying to explore GDAL raster APIs for reading i_3001a.ntf. I have > installed GDAL using miniconda on Ubuntu 18.04 and referring to the Raster > API tutorial open sample file downloaded from here > <https://www.gwg.nga.mil/ntb/baseline/software/testfile/Nitfv2_1/scen_2_1.html> > . > > Below is the code snippet I have written to open the file, > > GDALDataset *poDataset; > > GDALAllRegister(); > > poDataset = > static_cast<GDALDataset*>(GDALOpen("../i_3001a_reader/images/i_3001a.ntf", > GA_ReadOnly)); > > if (poDataset == nullptr) > > { > > cout << "Couldn't open i_3001a.ntf file" << endl; > > } > > > On running this code getting below error, > > *proj_context_get_database_path: Open of > /home/nishant/miniconda3/share/proj failed* > > > Am I missing any step? Please suggest. > > Kind Regards, > Nishant > >
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
