class Armg::WkbDeserializer DEFAULT_OPTIONS = { support_ewkb: true, } def initialize(factory: nil, **options) options = DEFAULT_OPTIONS.merge(options) @wkb_parser = RGeo::WKRep::WKBParser.new(factory, options) end def deserialize(mysql_geometry) wkb = Armg::Utils.mysql_geometry_to_wkb(mysql_geometry) @wkb_parser.parse(wkb) end end