Пример #1
0
Файл: gdal.go Проект: 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
}
Пример #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()
}