// UnmarshalJSON implements the encoding/json Unmarshaler interface. It expects
// to receive a valid GeoJSON Geometry of the type Point, and will assign
// the value of that data to p.
UnmarshalJSON implements the encoding/json Unmarshaler interface. It expects
to receive a valid GeoJSON Geometry of the type Point, and will assign
the value of that data to p.
// UnmarshalJSON implements the encoding / json Unmarshaler interface . It expects // to receive a valid GeoJSON Geometry of the type Point and will assign // the value of that data to p .
func (p *SFPoint) UnmarshalJSON(data []byte) error {
	if p == nil {
		return fmt.Errorf("types.SFPoint: UnmarshalJSON called on nil SFLpointer")
	}
	var gt geom.T
	if err := geojson.Unmarshal(data, &gt); err != nil {
		return err
	}
	p.Point.Swap(gt.(*geom.Point))
	return nil
}
func ( p * SFPoint ) UnmarshalJSON ( data [ ] byte ) error { if p == nil { return fmt . Errorf ( " " ) } var gt geom . T if err := geojson . Unmarshal ( data , & gt ) ; err != nil { return err } p . Point . Swap ( gt . ( * geom . Point ) ) return nil }
UnmarshalJSON implements the encoding/json Unmarshaler interface.
UnmarshalJSON implements the encoding / json Unmarshaler interface .