Class: Gdal::Ogr::DataSource
- Inherits:
-
Object
- Object
- Gdal::Ogr::DataSource
- Defined in:
- lib/rgdal/overrides/data_source.rb
Instance Method Summary collapse
Instance Method Details
#driver_name ⇒ Object
12 13 14 |
# File 'lib/rgdal/overrides/data_source.rb', line 12 def driver_name get_driver.get_name end |
#layers ⇒ Object
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_s ⇒ Object
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 |