Example #1
0
File: gdal.go Project: kikht/gdal
// Set linear binning information
func (rat RasterAttributeTable) SetLinearBinning(row0min, binsize float64) error {
	err := C.GDALRATSetLinearBinning(rat.cval, C.double(row0min), C.double(binsize))
	if err != 0 {
		return error(err)
	}

	return nil
}
Example #2
0
File: gdal.go Project: colek42/gdal
// Set linear binning information
func (rat RasterAttributeTable) SetLinearBinning(row0min, binsize float64) error {
	return C.GDALRATSetLinearBinning(rat.cval, C.double(row0min), C.double(binsize)).Err()
}