Exemple #1
0
// Set UTM projection definition
func (sr SpatialReference) SetUTM(zone int, north bool) error {
	err := C.OSRSetUTM(sr.cval, C.int(zone), BoolToCInt(north))
	if err != 0 {
		return error(err)
	}

	return nil
}
Exemple #2
0
// Set UTM projection definition
func (sr SpatialReference) SetUTM(zone int, north bool) error {
	return C.OSRSetUTM(sr.cval, C.int(zone), BoolToCInt(north)).Err()
}