Class: Armg::WkbSerializer
- Inherits:
-
Object
- Object
- Armg::WkbSerializer
- Defined in:
- lib/armg/wkb_serializer.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ type_format: :ewkb, little_endian: true }.freeze
Instance Method Summary collapse
-
#initialize(**options) ⇒ WkbSerializer
constructor
A new instance of WkbSerializer.
- #serialize(obj) ⇒ Object
Constructor Details
#initialize(**options) ⇒ WkbSerializer
Returns a new instance of WkbSerializer.
10 11 12 13 |
# File 'lib/armg/wkb_serializer.rb', line 10 def initialize(**) = DEFAULT_OPTIONS.merge() @wkb_generator = RGeo::WKRep::WKBGenerator.new() end |