Class: GDAL::Utils::VectorTranslate
- Inherits:
-
Object
- Object
- GDAL::Utils::VectorTranslate
- Defined in:
- lib/gdal/utils/vector_translate.rb,
lib/gdal/utils/vector_translate/options.rb
Overview
Wrapper for ogr2ogr using GDALVectorTranslate C API.
Defined Under Namespace
Classes: Options
Class Method Summary collapse
-
.perform(dst_dataset: nil, dst_dataset_path: nil, src_datasets: [], options: Options.new) {|OGR::DataSource| ... } ⇒ OGR::DataSource
Perform the ogr2ogr (GDALVectorTranslate) operation.
Class Method Details
.perform(dst_dataset: nil, dst_dataset_path: nil, src_datasets: [], options: Options.new) {|OGR::DataSource| ... } ⇒ OGR::DataSource
Perform the ogr2ogr (GDALVectorTranslate) operation.
87 88 89 90 91 92 93 |
# File 'lib/gdal/utils/vector_translate.rb', line 87 def self.perform(dst_dataset: nil, dst_dataset_path: nil, src_datasets: [], options: Options.new, &block) if dst_dataset for_dataset(dst_dataset: dst_dataset, src_datasets: src_datasets, options: ) else for_dataset_path(dst_dataset_path: dst_dataset_path, src_datasets: src_datasets, options: , &block) end end |