Module: OGR::DataSourceMixins::CapabilityMethods

Included in:
OGR::DataSource
Defined in:
lib/ogr/extensions/data_source/capability_methods.rb

Overview

Helper methods for determining the current DataSource’s capabilities.

Instance Method Summary collapse

Instance Method Details

#can_create_geometry_field_after_create_layer?Boolean

Returns true if the DataSource supports creating a GeometryField after a Layer has been created.

Returns:

  • (Boolean)

    true if the DataSource supports creating a GeometryField after a Layer has been created.



19
20
21
# File 'lib/ogr/extensions/data_source/capability_methods.rb', line 19

def can_create_geometry_field_after_create_layer?
  test_capability("CreateGeomFieldAfterCreateLayer")
end

#can_create_layer?Boolean

Returns true if the DataSource can create existing Layers.

Returns:

  • (Boolean)

    true if the DataSource can create existing Layers.



8
9
10
# File 'lib/ogr/extensions/data_source/capability_methods.rb', line 8

def can_create_layer?
  test_capability("CreateLayer")
end

#can_delete_layer?Boolean

Returns true if the DataSource can delete existing Layers.

Returns:

  • (Boolean)

    true if the DataSource can delete existing Layers.



13
14
15
# File 'lib/ogr/extensions/data_source/capability_methods.rb', line 13

def can_delete_layer?
  test_capability("DeleteLayer")
end

#supports_curve_geometries?Boolean

Returns true if the DataSource supports curve geometries.

Returns:

  • (Boolean)

    true if the DataSource supports curve geometries.



24
25
26
# File 'lib/ogr/extensions/data_source/capability_methods.rb', line 24

def supports_curve_geometries?
  test_capability("CurveGeometries")
end