Closed aneeskA closed 3 years ago
I haven't looked into the underlying reason but this seems to be how the standard encoding/json
works. It just fills that coordinate location with the zero values which would be [0,0]
https://play.golang.org/p/oZdzCxh5V4t
I guess you'd have to manually unmarshal into something like []*orb.Point
and see if there are any null values?
Yes, I did this experiment independently to arrive at the same conclusion :) Then I thought I was missing something obvious. What I need is something like Postgis' ST_IsValid()
function. Do you have any recommendation for me?
geojson validation is being discussed https://github.com/paulmach/orb/issues/45
I have this geojson,
which has a
null
in it. When I try to use the following code check if the above is good or not, my expectation is thatgeojson.UnmarshalGeometry
will fail. But that is not happening.What am I missing?