Class: Gdal::Ogr::DataSource

Inherits:
Object
  • Object
show all
Defined in:
lib/rgdal/overrides/data_source.rb

Instance Method Summary collapse

Instance Method Details

#driver_nameObject



12
13
14
# File 'lib/rgdal/overrides/data_source.rb', line 12

def driver_name
  get_driver.get_name
end

#layersObject



8
9
10
# File 'lib/rgdal/overrides/data_source.rb', line 8

def layers
  get_layer_count.times.map { |i| get_layer(i) }
end

#to_sObject



4
5
6
# File 'lib/rgdal/overrides/data_source.rb', line 4

def to_s
  "<#Gdal::Ogr::DataSource name='#{get_name}' layer_count='#{get_layer_count}' driver='#{driver_name}'>"
end