Module: OGR::DriverMixins::CapabilityMethods

Included in:
OGR::Driver
Defined in:
lib/ogr/extensions/driver/capability_methods.rb

Overview

Helper methods for testing capabilities of the current driver.

Instance Method Summary collapse

Instance Method Details

#can_create_data_source?Boolean

Returns true if this driver supports creating data sources.

Returns:

  • (Boolean)

    true if this driver supports creating data sources.



10
11
12
# File 'lib/ogr/extensions/driver/capability_methods.rb', line 10

def can_create_data_source?
  test_capability("CreateDataSource")
end

#can_delete_data_source?Boolean

Returns true if this driver supports deleting data sources.

Returns:

  • (Boolean)

    true if this driver supports deleting data sources.



15
16
17
# File 'lib/ogr/extensions/driver/capability_methods.rb', line 15

def can_delete_data_source?
  test_capability("DeleteDataSource")
end