You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 that geojson.UnmarshalGeometry will fail. But that is not happening.
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]
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?
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?
The text was updated successfully, but these errors were encountered: