Пример #1
0
// Delete indicated feature from layer
func (layer Layer) Delete(index int) error {
	return C.OGR_L_DeleteFeature(layer.cval, C.GIntBig(index)).Err()
}
Пример #2
0
// Fetch a feature by its index
func (layer Layer) Feature(index int) Feature {
	feature := C.OGR_L_GetFeature(layer.cval, C.GIntBig(index))
	return Feature{feature}
}
Пример #3
0
// Set feature identifier
func (feature Feature) SetFID(fid int) error {
	return C.OGR_F_SetFID(feature.cval, C.GIntBig(fid)).Err()
}
Пример #4
0
// Move read cursor to the provided index
func (layer Layer) SetNextByIndex(index int) error {
	return C.OGR_L_SetNextByIndex(layer.cval, C.GIntBig(index)).Err()
}
Пример #5
0
Файл: gdal.go Проект: kikht/gdal
// Set maximum cache memory
func SetCacheMax(bytes int) {
	C.GDALSetCacheMax64(C.GIntBig(bytes))
}