Sha256: 1dc05cc40609e5a22b0c7d1fd7261c6d5f426dca62cba99cf4c1b4707a8daa1a
Contents?: true
Size: 926 Bytes
Versions: 9
Compression:
Stored size: 926 Bytes
Contents
# frozen_string_literal: true module OGR module DataSourceMixins # Helper methods for determining the current DataSource's capabilities. module CapabilityMethods # @return [Boolean] +true+ if the DataSource can create existing Layers. def can_create_layer? test_capability('CreateLayer') end # @return [Boolean] +true+ if the DataSource can delete existing Layers. def can_delete_layer? test_capability('DeleteLayer') end # @return [Boolean] +true+ if the DataSource supports creating a # GeometryField after a Layer has been created. def can_create_geometry_field_after_create_layer? test_capability('CreateGeomFieldAfterCreateLayer') end # @return [Boolean] +true+ if the DataSource supports curve geometries. def supports_curve_geometries? test_capability('CurveGeometries') end end end end
Version data entries
9 entries across 9 versions & 1 rubygems