TransWikia.com

Runtime error GDALWarp command in C++ programme

Geographic Information Systems Asked by Kunal Khosla on March 3, 2021

I am trying to use GDALWarp in VS2019: A snapshot of the code is

#include <gdal_utils.h>
#include <gda_priv.h>
#include <cpl_string.h>

int main()  { GDALDataSetH* Dataset=GDALOpen(); char ** argv= NULL;
argv = CSLAddString(argv,"-r"); argv = CSLAddString(argv,
"cubicspline"); //I have added more options ...

GDALWarp("output.tif",NULL,1,Dataset,opt,NULL);

}

I am getting an error on the GDALWarp command, the error states that "exception thrown at (gdal301.dll) in GDALWarp". The programme builds correctly.

Can you help me fix this?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP