/// <summary> /// Returns a geometry that represents the point set symmetric difference of this Geometry with anotherGeometry. /// </summary> public virtual Geometry SymDifference(Geometry geom) { UpdateSqlGeometry(); SqlGeometry difference = SqlGeometry.STSymDifference(geom.SqlGeometry); Geometry retval = difference.AsSCEGeometryExtention(); return(retval); }
/// <summary> /// Returns a geometry that represents the point set union of this Geometry with anotherGeometry. /// </summary> public virtual Geometry Union(Geometry geom) { UpdateSqlGeometry(); SqlGeometry calcResult = SqlGeometry.STUnion(geom.SqlGeometry); Geometry retval = calcResult.AsSCEGeometryExtention(); return(retval); }
/// <summary> /// Returns a geometry that represents the point set intersection of this Geometry /// with anotherGeometry. /// </summary> public virtual Geometry Intersection(Geometry geom) { UpdateSqlGeometry(); SqlGeometry result = SqlGeometry.STIntersection(geom.SqlGeometry); Geometry retval = result.AsSCEGeometryExtention(); return(retval); }
/// <summary> /// Geometry—Returns a geometry that represents the convex hull of this Geometry. /// </summary> public virtual Geometry ConvexHull() { UpdateSqlGeometry(); SqlGeometry convexHull = SqlGeometry.STConvexHull(); Geometry retval = convexHull.AsSCEGeometryExtention(); return(retval); }
/// <summary> /// Returns a geometry that represents all points whose distance from this Geometry /// is less than or equal to distance. Calculations are in the Spatial Reference /// System of this Geometry. /// </summary> /// <param name="d">Buffer distance</param> public virtual Geometry Buffer(double d) { UpdateSqlGeometry(); SqlGeometry calcResult = SqlGeometry.STBuffer(d); Geometry retval = calcResult.AsSCEGeometryExtention(); return(retval); }
/// <summary> /// Returns the closure of the combinatorial boundary of this <see cref="Geometry"/>. The /// combinatorial boundary is defined as described in section 3.12.3.2 of [1]. Because the result of this function /// is a closure, and hence topologically closed, the resulting boundary can be represented using /// representational geometry primitives /// </summary> public virtual Geometry Boundary() { UpdateSqlGeometry(); SqlGeometry boundary = SqlGeometry.STBoundary(); Geometry retval = boundary.AsSCEGeometryExtention(); return(retval); }