Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
V0.6.0 backport (#1)
Browse files Browse the repository at this point in the history
* backporting to 0.6.0

* Fixed typo
  • Loading branch information
chrisjwu authored May 8, 2019
1 parent 4223d08 commit 9162baa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rgeo/geos/capi_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,11 @@ def parse_wkb(str_)
if (wkb_parser_ = _wkb_parser)
wkb_parser_.parse(str_)
else
_parse_wkb_impl(str_)
if str_[0, 1] =~ /[0-9a-fA-F]/
_parse_wkb_impl([str_].pack("H*") )
else
_parse_wkb_impl(str_)
end
end
end

Expand Down

0 comments on commit 9162baa

Please sign in to comment.