Sha256: 6face31f46b77406ff82fc61aa690d811fb5d5ac330a56ae12740d606e6d404a
Contents?: true
Size: 591 Bytes
Versions: 3
Compression:
Stored size: 591 Bytes
Contents
# frozen_string_literal: true require "ogr/style_table" module OGR class StyleTable module Extensions # Gets all of the styles as Hash. Note that this calls # #reset_style_string_reading. # # @return [Hash{name => style}] def styles styles = {} reset_style_string_reading loop do style = next_style break unless style styles[last_style_name] = style end reset_style_string_reading styles end end end end OGR::StyleTable.include(OGR::StyleTable::Extensions)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.1.0 | lib/ogr/extensions/style_table/extensions.rb |
ffi-gdal-1.0.4 | lib/ogr/extensions/style_table/extensions.rb |
ffi-gdal-1.0.3 | lib/ogr/extensions/style_table/extensions.rb |