Beispiel #1
0
func setDescription(object unsafe.Pointer, desc string) {
	cDesc := C.CString(desc)
	defer C.free(unsafe.Pointer(cDesc))
	C.GDALSetDescription((C.GDALMajorObjectH)(object), cDesc)
}
Beispiel #2
0
// 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)
}