Sha256: d66dd2ee0b9e0fc27d974c22015aab6317f15b1ec1ae20116a0f65bba97bc687
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
module OGR module DataSourceExtensions # @return [Array<OGR::Layer>] def layers l = 0.upto(layer_count - 1).map do |i| layer(i) end @layers = l end # @return [Hash] def as_json { data_source: { driver: driver.name, layer_count: layer_count, layers: layers.map(&:as_json), name: name, style_table: style_table ? style_table.as_json : nil }, metadata: all_metadata } end # @return [String] def to_json as_json.to_json end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.0.0.beta3 | lib/ogr/data_source_extensions.rb |
ffi-gdal-1.0.0.beta1 | lib/ogr/data_source_extensions.rb |