Exemple #1
0
// 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
}
Exemple #2
0
// Set linear binning information
func (rat RasterAttributeTable) SetLinearBinning(row0min, binsize float64) error {
	return C.GDALRATSetLinearBinning(rat.cval, C.double(row0min), C.double(binsize)).Err()
}