Example #1
0
File: osr.go Project: kikht/gdal
// 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
}
Example #2
0
File: osr.go Project: sn-amber/gdal
// Set UTM projection definition
func (sr SpatialReference) SetUTM(zone int, north bool) error {
	return C.OSRSetUTM(sr.cval, C.int(zone), BoolToCInt(north)).Err()
}