class GeoRuby::SimpleFeatures::HexEWKBParser
Parses HexEWKB strings. In reality, it just transforms the HexEWKB string into the equivalent EWKB string and lets the EWKBParser
do the actual parsing.
Public Instance Methods
decode_hex(hexewkb)
click to toggle source
transforms a HexEWKB string into an EWKB string
# File lib/geo_ruby/ewk/ewkb_parser.rb, line 149 def decode_hex(hexewkb) [hexewkb].pack('H*') end
parse(hexewkb)
click to toggle source
parses an HexEWKB string
Calls superclass method
GeoRuby::SimpleFeatures::EWKBParser#parse
# File lib/geo_ruby/ewk/ewkb_parser.rb, line 144 def parse(hexewkb) super(decode_hex(hexewkb)) end