module OGR::StyleTable::Extensions

Public Instance Methods

styles() click to toggle source

Gets all of the styles as Hash. Note that this calls reset_style_string_reading.

@return [Hash{name => style}]

# File lib/ogr/extensions/style_table/extensions.rb, line 12
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