Closed selam closed 7 years ago
type H struct {
Id int json:"id"
Point postgis.Point json:"point"
}
... h := H{} rows.Scan(&h.Id, &h.Point) ; json.Marshall(h) .... If I remove Point from select cause and Scan interface everything works fine
Hi @selam - that's bizarre! The point struct is just a couple of float64.
Can you print out your result while it's still in Go to ensure it's being read correctly?
Sorry for bad bug report, I just use "select point from gis_table" as select statement and i get this error after scan, after looking your test files i realize i was just mis use your library.
Ah no worries. Glad it's working now!
I need to convert as json of Point but json.Marshall returns error with "json: unsupported value: NaN"
How can i solve this?