Esempio n. 1
0
File: osr.go Progetto: kikht/gdal
// Set the user visible geographic CS name
func (sr SpatialReference) SetGeocentricCS(name string) error {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))
	err := C.OSRSetGeocCS(sr.cval, cName)
	if err != 0 {
		return error(err)
	}

	return nil
}
Esempio n. 2
0
File: osr.go Progetto: sn-amber/gdal
// Set the user visible geographic CS name
func (sr SpatialReference) SetGeocentricCS(name string) error {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))
	return C.OSRSetGeocCS(sr.cval, cName).Err()
}