// NewSFPolygon constructs and returns a new SFPolygon object based on the given
// types.SFPolygon p. If p is nil, the new SFPolygon will be null.
// Otherwise a new, valid SFPolygon will be initialized with a copy of p.
NewSFPolygon constructs and returns a new SFPolygon object based on the given
types.SFPolygon p. If p is nil, the new SFPolygon will be null.
Otherwise a new, valid SFPolygon will be initialized with a copy of p.
// NewSFPolygon constructs and returns a new SFPolygon object based on the given // types . SFPolygon p . If p is nil the new SFPolygon will be null . // Otherwise a new valid SFPolygon will be initialized with a copy of p .
func NewSFPolygon(p types.SFPolygon) SFPolygon {
	if p.IsNil() {
		return NullSFPolygon()
	}
	return SFPolygon{
		Polygon: types.NewSFPolygon(p.Polygon),
		Valid:   true,
	}
}
func NewSFPolygon ( p types . SFPolygon ) SFPolygon { if p . IsNil ( ) { return NullSFPolygon ( ) } return SFPolygon { Polygon : types . NewSFPolygon ( p . Polygon ) , Valid : true , } }
NewSFPolygon constructs and returns a new SFPolygon object based on the given
types.SFPolygon p. If p is nil, the new SFPolygon will be null.
NewSFPolygon constructs and returns a new SFPolygon object based on the given types . SFPolygon p . If p is nil the new SFPolygon will be null .