gdal下载地址:https://trac.osgeo.org/gdal/wiki/DownloadSource
windows下编译:
链接:https://blog.youkuaiyun.com/lyandgh/article/details/81079570
linux下编译:
GDAL可通过configure来实现一些自定义配置,可通过./configure –h命令来查看。–prefix=path表示设置GDAL的make install后的build目录,里面有生成的头文件和动态库。输入如下命令:
./configure --prefix=/root/Test/gdalbuild
这时可以发现目录中新生成了GDALmake.opt文件,该文件被包含在GNUmakefile中进行编译。输入命令:
make
make install
官网参考链接:https://gdal.org/index.html
博客参考链接:https://headfirst-gdal.readthedocs.io/en/latest/gdal-warp-api-tutorial.html