paulmach / orb

Types and utilities for working with 2d geometry in Golang
MIT License
910 stars 103 forks source link

wkb scanner: support hex encoded data from go-pg #37

Closed paulmach closed 5 years ago

paulmach commented 5 years ago

@arthurgustin

go-pg returns some(?) binary data as \xHexvalues vs. the binary that the library expected. PR adds some code to check for the \x prefix and does the hex -> binary conversion for the rest of the data.

I tested this with local postgis table, but only for Point data. More testing would be helpful.