This project is read-only.

Sample code that demonstrates how to open a raster and get the maximum value for the raster cells.

Be sure to install the GDAL extension if you want to view different types of files.
using DotSpatial.Data;

 private void button1_Click(object sender, EventArgs e)
            IRaster r = Raster.Open(@"C:\[Your File Path]\O44121a1.bgd");
            double value = r.Maximum;

Last edited May 20, 2015 at 6:56 PM by mbayles, version 4