Class: GDAL::Utils::Rasterize
- Inherits:
-
Object
- Object
- GDAL::Utils::Rasterize
- Defined in:
- lib/gdal/utils/rasterize.rb,
lib/gdal/utils/rasterize/options.rb
Overview
Wrapper for gdal_rasterize using GDALRasterize C API.
Defined Under Namespace
Classes: Options
Class Method Summary collapse
-
.perform(src_dataset:, dst_dataset: nil, dst_dataset_path: nil, options: Options.new) {|GDAL::Dataset| ... } ⇒ GDAL::Dataset
Perform the gdal_rasterize (GDALRasterize) operation.
Class Method Details
.perform(src_dataset:, dst_dataset: nil, dst_dataset_path: nil, options: Options.new) {|GDAL::Dataset| ... } ⇒ GDAL::Dataset
Perform the gdal_rasterize (GDALRasterize) operation.
65 66 67 68 69 70 71 |
# File 'lib/gdal/utils/rasterize.rb', line 65 def self.perform(src_dataset:, dst_dataset: nil, dst_dataset_path: nil, options: Options.new, &block) if dst_dataset for_dataset(dst_dataset: dst_dataset, src_dataset: src_dataset, options: ) else for_dataset_path(dst_dataset_path: dst_dataset_path, src_dataset: src_dataset, options: , &block) end end |