// Value implements the database/sql/driver Valuer interface. It will return the
// value of p as a driver.Value; specifically a WKB encoded []byte.
Value implements the database/sql/driver Valuer interface. It will return the
value of p as a driver.Value; specifically a WKB encoded []byte.
// Value implements the database / sql / driver Valuer interface . It will return the // value of p as a driver . Value ; specifically a WKB encoded [] byte .
func (p SFPolygon) Value() (driver.Value, error) {
	b := &bytes.Buffer{}
	if err := wkb.Write(b, wkb.NDR, &p.Polygon); err != nil {
		return nil, err
	}
	return b.Bytes(), nil
}
func ( p SFPolygon ) Value ( ) ( driver . Value , error ) { b := & bytes . Buffer { } if err := wkb . Write ( b , wkb . NDR , & p . Polygon ) ; err != nil { return nil , err } return b . Bytes ( ) , nil }
Value implements the database/sql/driver Valuer interface.
Value implements the database / sql / driver Valuer interface .