Module: OGR::LayerMixins::OGRSQLMethods

Included in:
OGR::Layer
Defined in:
lib/ogr/layer_mixins/ogr_sql_methods.rb

Instance Method Summary collapse

Instance Method Details

#commit_transactionObject

Raises:



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_columnString

The name of the underlying database column or “” if not supported.

Returns:



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_columnString

The name of the underlying database column being used as the geometry column. Returns “” if not supported.

Returns:



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

#rollback_transactionObject

Raises:



17
18
19
# File 'lib/ogr/layer_mixins/ogr_sql_methods.rb', line 17

def rollback_transaction
  transact { FFI::OGR::API.OGR_L_RollbackTransaction(@c_pointer) }
end

#start_transactionObject

Raises:



7
8
9
# File 'lib/ogr/layer_mixins/ogr_sql_methods.rb', line 7

def start_transaction
  transact { FFI::OGR::API.OGR_L_StartTransaction(@c_pointer) }
end