Exemplo n.º 1
0
Arquivo: osr.go Projeto: sn-amber/gdal
// Setup a compound coordinate system
func (sr SpatialReference) SetCompoundCS(
	name string,
	horizontal, vertical SpatialReference,
) error {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))
	return C.OSRSetCompoundCS(sr.cval, cName, horizontal.cval, vertical.cval).Err()
}
Exemplo n.º 2
0
Arquivo: osr.go Projeto: kikht/gdal
// Setup a compound coordinate system
func (sr SpatialReference) SetCompoundCS(
	name string,
	horizontal, vertical SpatialReference,
) error {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))
	err := C.OSRSetCompoundCS(sr.cval, cName, horizontal.cval, vertical.cval)
	if err != 0 {
		return error(err)
	}

	return nil
}