Esempio n. 1
0
File: gdal.go Progetto: kikht/gdal
func setDescription(object unsafe.Pointer, desc string) {
	cDesc := C.CString(desc)
	defer C.free(unsafe.Pointer(cDesc))
	C.GDALSetDescription((C.GDALMajorObjectH)(object), cDesc)
}
Esempio n. 2
0
File: gdal.go Progetto: colek42/gdal
// Set object description
func (object MajorObject) SetDescription(desc string) {
	cObject := object.cval
	cDesc := C.CString(desc)
	defer C.free(unsafe.Pointer(cDesc))
	C.GDALSetDescription(cObject, cDesc)
}