Re: [gdal-dev] Adding driver in run time
Le dimanche 08 décembre 2013 17:31:43, Victor Fine a écrit : > Hello, > > I'm trying to write a driver , inside my program that uses GDAL (C++). > > After the call to GDALAllRegister(); I call GDALRegister_MYDEM(), > which is much like in the example in > http://www.gdal.org/gdal_drivertut.html > > After that, I try to call GDALOpen on some file and the breakpoint in > the .. *MYDEMDataset::Open(...) function is not even hit. > (And , of course, I get a message that this is not a recognized format). > > It seems that I have some beginners mistake here - why does GDAL > ignores my driver? If the application compiles, links and runs, nothing immediately strikes me as a potential error, but perhaps you could enumerate all the registered drivers and check if yours is listed ? for(i=0;ihttp://even.rouault.free.fr/services.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] Adding driver in run time
On 12/08/2013 05:31 PM, Victor Fine wrote: Hello, I'm trying to write a driver , inside my program that uses GDAL (C++). After the call to GDALAllRegister(); I call GDALRegister_MYDEM(), which is much like in the example in http://www.gdal.org/gdal_drivertut.html After that, I try to call GDALOpen on some file and the breakpoint in the .. *MYDEMDataset::Open(...) function is not even hit. (And , of course, I get a message that this is not a recognized format). It seems that I have some beginners mistake here - why does GDAL ignores my driver? Regards, Victor. Hi Victor, did you add your driver to the GDAL tree (i.e. in gdal/gcore/gdal_frmts.h and frmts/gdalallregister.cpp) like described in the tutorial you mention? Volker ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] Adding driver in run time
Hello, I'm trying to write a driver , inside my program that uses GDAL (C++). After the call to GDALAllRegister(); I call GDALRegister_MYDEM(), which is much like in the example in http://www.gdal.org/gdal_drivertut.html After that, I try to call GDALOpen on some file and the breakpoint in the .. *MYDEMDataset::Open(...) function is not even hit. (And , of course, I get a message that this is not a recognized format). It seems that I have some beginners mistake here - why does GDAL ignores my driver? Regards, Victor. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev