Пример #1
0
Файл: osr.go Проект: kikht/gdal
// Set geographic CS based on well known name
func (sr SpatialReference) SetWellKnownGeographicCS(name string) error {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))
	err := C.OSRSetWellKnownGeogCS(sr.cval, cName)
	if err != 0 {
		return error(err)
	}

	return nil
}
Пример #2
0
// Set geographic CS based on well known name
func (sr SpatialReference) SetWellKnownGeographicCS(name string) error {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))
	return C.OSRSetWellKnownGeogCS(sr.cval, cName).Err()
}