Sha256: 4f54eabfa89417d5128af6da1c241d000f6ca53d0456f8c63f7f92add9527b12
Contents?: true
Size: 394 Bytes
Versions: 3
Compression:
Stored size: 394 Bytes
Contents
class Armg::WktDeserializer < Armg::WkbDeserializer DEFAULT_OPTIONS = { tag_format: :ewkt, #emit_ewkt_srid: true, } def initialize(factory = nil, options = {}) super(factory, options) options = DEFAULT_OPTIONS.merge(options) @generator = RGeo::WKRep::WKTGenerator.new(options) end def deserialize(wkb) obj = super(wkb) @generator.generate(obj) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
armg-0.5.2 | lib/armg/wkt_deserializer.rb |
armg-0.5.1 | lib/armg/wkt_deserializer.rb |
armg-0.5.0 | lib/armg/wkt_deserializer.rb |