Ejemplo n.º 1
0
Archivo: ogr.go Proyecto: colek42/gdal
// Delete indicated feature from layer
func (layer Layer) Delete(index int) error {
	return C.OGR_L_DeleteFeature(layer.cval, C.GIntBig(index)).Err()
}
Ejemplo n.º 2
0
Archivo: ogr.go Proyecto: colek42/gdal
// 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}
}
Ejemplo n.º 3
0
Archivo: ogr.go Proyecto: colek42/gdal
// Set feature identifier
func (feature Feature) SetFID(fid int) error {
	return C.OGR_F_SetFID(feature.cval, C.GIntBig(fid)).Err()
}
Ejemplo n.º 4
0
Archivo: ogr.go Proyecto: colek42/gdal
// 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()
}
Ejemplo n.º 5
0
Archivo: gdal.go Proyecto: kikht/gdal
// Set maximum cache memory
func SetCacheMax(bytes int) {
	C.GDALSetCacheMax64(C.GIntBig(bytes))
}