Class: GDAL::VirtualDataset
- Inherits:
-
Object
- Object
- GDAL::VirtualDataset
- Includes:
- MajorObject
- Defined in:
- lib/gdal/virtual_dataset.rb
Instance Attribute Summary collapse
-
#c_pointer ⇒ Object
readonly
Returns the value of attribute c_pointer.
Instance Method Summary collapse
- #add_band(data_type, **options) ⇒ Boolean
- #add_complex_source(vrt_band, source_band, no_data_value, src_x_offset: 0, src_y_offset: 0, src_x_size: nil, src_y_size: nil, dst_x_offset: 0, dst_y_offset: 0, dst_x_size: nil, dst_y_size: nil, scale_offset: 0.0, scale_ratio: 0.0) ⇒ Boolean
- #add_func_source(vrt_band, read_function, data, no_data_value) ⇒ Boolean
-
#add_simple_source(vrt_band, source_band, no_data_value, src_x_offset: 0, src_y_offset: 0, src_x_size: nil, src_y_size: nil, dst_x_offset: 0, dst_y_offset: 0, dst_x_size: nil, dst_y_size: nil, resampling: "") ⇒ Boolean
rubocop:disable Metrics/ParameterLists.
-
#add_source(vrt_band, new_source) ⇒ Boolean
[description].
- #flush_cache ⇒ Object
-
#initialize(x_size, y_size) ⇒ VirtualDataset
constructor
A new instance of VirtualDataset.
-
#to_xml(path = "") ⇒ Object
TODO: Build the xml string.
Methods included from MajorObject
#all_metadata, #description, #description=, #metadata, #metadata_domain_list, #metadata_item, #null?, #set_metadata_item
Constructor Details
Instance Attribute Details
#c_pointer ⇒ Object (readonly)
Returns the value of attribute c_pointer.
10 11 12 |
# File 'lib/gdal/virtual_dataset.rb', line 10 def c_pointer @c_pointer end |
Instance Method Details
#add_band(data_type, **options) ⇒ Boolean
31 32 33 34 35 |
# File 'lib/gdal/virtual_dataset.rb', line 31 def add_band(data_type, **) = GDAL::Options.pointer() FFI::GDAL::VRT.VRTAddBand(@c_pointer, data_type, ) end |
#add_complex_source(vrt_band, source_band, no_data_value, src_x_offset: 0, src_y_offset: 0, src_x_size: nil, src_y_size: nil, dst_x_offset: 0, dst_y_offset: 0, dst_x_size: nil, dst_y_size: nil, scale_offset: 0.0, scale_ratio: 0.0) ⇒ Boolean
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/gdal/virtual_dataset.rb', line 67 def add_complex_source(vrt_band, source_band, no_data_value, src_x_offset: 0, src_y_offset: 0, src_x_size: nil, src_y_size: nil, dst_x_offset: 0, dst_y_offset: 0, dst_x_size: nil, dst_y_size: nil, scale_offset: 0.0, scale_ratio: 0.0) FFI::GDAL::VRT.VRTAddComplexSource( vrt_band, source_band, # hSrcBand src_x_offset, # hSrcBand src_y_offset, # hSrcBand src_x_size, # hSrcBand src_y_size, # hSrcBand dst_x_offset, # hSrcBand dst_y_offset, # hSrcBand dst_x_size, # hSrcBand dst_y_size, # hSrcBand scale_offset, # dfScaleOff scale_ratio, # dfScaleRatio no_data_value # dfNoDataValue ) end |
#add_func_source(vrt_band, read_function, data, no_data_value) ⇒ Boolean
94 95 96 |
# File 'lib/gdal/virtual_dataset.rb', line 94 def add_func_source(vrt_band, read_function, data, no_data_value) FFI::GDAL::VRT.VRTAddFuncSource(vrt_band, read_function, data, no_data_value) end |
#add_simple_source(vrt_band, source_band, no_data_value, src_x_offset: 0, src_y_offset: 0, src_x_size: nil, src_y_size: nil, dst_x_offset: 0, dst_y_offset: 0, dst_x_size: nil, dst_y_size: nil, resampling: "") ⇒ Boolean
rubocop:disable Metrics/ParameterLists
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/gdal/virtual_dataset.rb', line 46 def add_simple_source(vrt_band, source_band, no_data_value, src_x_offset: 0, src_y_offset: 0, src_x_size: nil, src_y_size: nil, dst_x_offset: 0, dst_y_offset: 0, dst_x_size: nil, dst_y_size: nil, resampling: "") FFI::GDAL::VRT.VRTAddSimpleSource( vrt_band, source_band, # hSrcBand src_x_offset, # hSrcBand src_y_offset, # hSrcBand src_x_size, # hSrcBand src_y_size, # hSrcBand dst_x_offset, # hSrcBand dst_y_offset, # hSrcBand dst_x_size, # hSrcBand dst_y_size, # hSrcBand resampling, # pszResampling, no_data_value # dfNoDataValue ) end |
#add_source(vrt_band, new_source) ⇒ Boolean
40 41 42 |
# File 'lib/gdal/virtual_dataset.rb', line 40 def add_source(vrt_band, new_source) FFI::GDAL::VRT.VRTAddSource(vrt_band, new_source) end |