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 Class Methods
new(factory)click to toggle source
# File lib/geo_ruby/simple_features/ewkb_parser.rb, line 150definitialize(factory)
super(factory)
end
Public Instance Methods
decode_hex(hexewkb)click to toggle source
transforms a HexEWKB string into an EWKB string
# File lib/geo_ruby/simple_features/ewkb_parser.rb, line 158defdecode_hex(hexewkb)
result=""num_bytes = (hexewkb.size+1) /20.upto(num_bytes-1) do|i|result<<hexewkb[i*2,2].hexendresultend
parse(hexewkb)click to toggle source
parses an HexEWKB string
# File lib/geo_ruby/simple_features/ewkb_parser.rb, line 154defparse(hexewkb)
super(decode_hex(hexewkb))
end