Exemplo n.º 1
0
Arquivo: osr.go Projeto: 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
}
Exemplo n.º 2
0
Arquivo: osr.go Projeto: 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()
}