Module: OGR::LayerMixins::OGRSQLMethods
- Included in:
- OGR::Layer
- Defined in:
- lib/ogr/layer_mixins/ogr_sql_methods.rb
Instance Method Summary collapse
- #commit_transaction ⇒ Object
-
#fid_column ⇒ String
The name of the underlying database column or “” if not supported.
-
#geometry_column ⇒ String
The name of the underlying database column being used as the geometry column.
- #rollback_transaction ⇒ Object
- #start_transaction ⇒ Object
Instance Method Details
#commit_transaction ⇒ Object
12 13 14 |
# File 'lib/ogr/layer_mixins/ogr_sql_methods.rb', line 12 def commit_transaction transact { FFI::OGR::API.OGR_L_CommitTransaction(@c_pointer) } end |
#fid_column ⇒ String
The name of the underlying database column or “” if not supported.
24 25 26 27 28 29 |
# File 'lib/ogr/layer_mixins/ogr_sql_methods.rb', line 24 def fid_column name, ptr = FFI::OGR::API.OGR_L_GetFIDColumn(@c_pointer) ptr.autorelease = false name end |
#geometry_column ⇒ String
The name of the underlying database column being used as the geometry column. Returns “” if not supported.
35 36 37 38 39 40 |
# File 'lib/ogr/layer_mixins/ogr_sql_methods.rb', line 35 def geometry_column name, ptr = FFI::OGR::API.OGR_L_GetGeometryColumn(@c_pointer) ptr.autorelease = false name end |