Sha256: 0ab45be6add52d69aff3a5fff2c9b612f2a6d2902ee4124c8c4f0d30b062e451
Contents?: true
Size: 993 Bytes
Versions: 3
Compression:
Stored size: 993 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 OGR::DataSource.include(OGR::DataSourceMixins::CapabilityMethods)
Version data entries
3 entries across 3 versions & 1 rubygems