Sha256: bbae894bbf342c05256480a0cc8d51b5c985180e03e504180ac33e659f90ef06
Contents?: true
Size: 895 Bytes
Versions: 4
Compression:
Stored size: 895 Bytes
Contents
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
4 entries across 4 versions & 1 rubygems