Sha256: 3d0cb618cb4e3b70e6d255172bdb21c102c3ee81057d2c2d576eafe4079674ab
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
require 'json' module OGR module StyleTableExtensions # 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 while style = next_style styles[last_style_name] = style end reset_style_string_reading styles end # @return [Hash] def as_json(_options = nil) styles end # @return [String] def to_json(options = nil) as_json(options).to_json end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.0.0.beta5 | lib/ogr/style_table_extensions.rb |
ffi-gdal-1.0.0.beta4 | lib/ogr/style_table_extensions.rb |