[GIS] Example of C++ code in Visual Studio initializing a created raster

gdalrastervisual studio

I refer to Sample for MS Visual Studio C++ using GDAL library

I noticed that the answer mentions that when GDAL is built from source there would be a tools folder with examples of how to initialize a created raster. I have GDAL built from source (following the steps specified here: http://crowdsimulation.blogspot.com/2015/07/geospatial-data-abstraction-library.html?showComment=1452035822922#c1369732198978557869) in Visual Studio 2010 and a 32 bit machine.

However, I am not able to locate the tools folder with the examples.
Is there any other source where I can obtain the examples?
Can someone post a simple one?

Best Answer

The GDAL website has a tutorials section. The raster API tutorial has examples for opening and creating GDAL raster datasets.