[gdal-dev] Error while opeing Dataset

NSquare technonsquare at gmail.com
Mon Jun 29 04:38:36 PDT 2020


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 <technonsquare at gmail.com> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200629/ddb5c912/attachment-0001.html>


More information about the gdal-dev mailing list