Export (0) Print
Expand All
Expand Minimize

SqlGeography Methods

The SqlGeography type exposes the following members.

  Name Description
Public method AsBinaryZM Returns the Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation of a SqlGeography instance augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method AsGml Returns the Geography Markup Language (GML) representation of a SqlGeography instance.
Public method AsTextZM Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeography instance augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method BufferWithCurves Returns a SqlGeography instance that represents the set of all points whose distance from the calling SqlGeography instance is less than or equal to the distance parameter.
Public method BufferWithTolerance Returns a geometric object representing the union of all point values whose distance from a SqlGeography instance is less than or equal to a specified value, allowing for a specified tolerance.
Public method CurveToLineWithTolerance Returns a polygonal approximation of a SqlGeography instance that contains circular arc segments.
Public method Static member Deserialize Returns a constructed SqlGeometry from an internal SQL Server format for spatial data. Can be used for sending spatial data over the network or reading them from files.
Public method EnvelopeAngle Returns the maximum angle between the point returned by EnvelopeCenter() and a point in the SqlGeography instance in degrees.
Public method EnvelopeCenter Returns a point that can be used as the center of a bounding circle for the geography instance.
Public method Equals (Inherited from Object.)
Public method Filter Offers a fast, index-only intersection method to determine if a geography instance intersects another SqlGeography instance, assuming an index is available.
Public method Static member GeomFromGml Constructs a SqlGeography instance given a representation in the SQL Server subset of the Geography Markup Language (GML).
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method InstanceOf Tests if the SqlGeography instance is the same as the specified type.
Public method IsValidDetailed Returns a message to help identify validity issues with a spatial object.
Public method MakeValid Converts a geography instance that is not valid into a valid geography instance with a valid Open Geospatial Consortium (OGC) type.
Public method MinDbCompatibilityLevel Returns the minimum database compatibility that accepts the SqlGeography type.
Public method NumRings Returns the total number of rings in a Polygon instance.
Public method Static member Parse Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation.
Public method Static member Point Constructs a SqlGeography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).
Public method Populate(IGeographySink) Obsolete. Applies a geography type call sequence to IGeographySink object. The call sequence is a set of figures, lines, and points for geography types.
Public method Populate(IGeographySink110) Applies a geography type call sequence to IGeographySink object.
Public method Read Reads a binary representation of a geography type into a SqlGeometry object.
Public method Reduce Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.
Public method ReorientObject Returns a geography instance with interchanged interior regions and exterior regions.
Public method RingN Returns the specified ring of the SqlGeography instance: 1 ≤ n ≤ NumRings().
Public method Serialize Used for sending spatial data across the network.
Public method ShortestLineTo Returns the shortest distance between the two SqlGeographyinstances.
Public method STArea Returns the total surface area of a SqlGeography instance.
Public method STAsBinary Returns the Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation of a SqlGeography instance.
Public method STAsText Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeography instance.
Public method STBuffer Returns a geography object that represents the union of all points whose distance from a SqlGeography instance is less than or equal to a specified value.
Public method STContains Specifies whether the calling SqlGeography instance spatially contains the SqlGeography instance passed to the method.
Public method STConvexHull Returns an object that represents the convex hull of a SqlGeography instance.
Public method STCurveN Returns the curve specified from a SqlGeography instance that is a LineString, CircularString, or CompoundCurve.
Public method STCurveToLine Returns a polygonal approximation of a SqlGeography instance that contains circular arc segments.
Public method STDifference Returns an object representing the points from one SqlGeography instance that do not lie within another SqlGeography instance.
Public method STDimension Returns the maximum dimension of a SqlGeography instance
Public method STDisjoint Determines whether the calling SqlGeography instance is spatially disjoint from the specified SqlGeography instance.
Public method STDistance Returns the shortest distance between a point in a SqlGeography instance and a point in another SqlGeography instance.
Public method STEndPoint Returns the end point of a SqlGeography instance.
Public method STEquals Determines whether the specified SqlGeography instance has the same point set as the calling SqlGeography instance.
Public method Static member STGeomCollFromText Returns a geography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation, augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method Static member STGeomCollFromWKB Returns a GeometryCollection instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Public method STGeometryN Returns a specified geography element in a GeometryCollection or one of its subtypes.
Public method STGeometryType Returns the Open Geospatial Consortium (OGC) type name represented by a geography instance.
Public method Static member STGeomFromText Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method Static member STGeomFromWKB Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Public method STIntersection Returns an object representing the points where a SqlGeography instance intersects another SqlGeography instance.
Public method STIntersects Determines whether the current SqlGeography instance intersects with the specified SqlGeography.
Public method STIsClosed Determines whether the calling SqlGeography instance is closed.
Public method STIsEmpty Determines whether the SqlGeography instance is empty.
Public method STIsValid Specifies whether a geography instance is well-formed and recognized as a valid geography object based on its Open Geospatial Consortium (OGC) type.
Public method STLength Returns the total length of the elements in a SqlGeography instance or the SqlGeography instances within a GeometryCollection.
Public method Static member STLineFromText Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation, augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method Static member STLineFromWKB Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation, augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method Static member STMLineFromText Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation, augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method Static member STMLineFromWKB Returns a SqlGeography MultiLineString instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Public method Static member STMPointFromText Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation, augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method Static member STMPointFromWKB Returns a SqlGeography MultiPoint instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Public method Static member STMPolyFromText Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation, augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method Static member STMPolyFromWKB Returns a SqlGeography MultiPolygon instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Public method STNumCurves Returns the number of curves in a one-dimensional SqlGeography instance.
Public method STNumGeometries Returns the number of geometries that make up a SqlGeography instance.
Public method STNumPoints Returns the total number of points in each of the figures in a SqlGeography instance
Public method STOverlaps Returns 1 if a SqlGeography instance spatially overlaps another SqlGeography instance, or 0 if it does not.
Public method Static member STPointFromText Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation, augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method Static member STPointFromWKB Returns a SqlGeography Point instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Public method STPointN Returns the specified point in a SqlGeography instance.
Public method Static member STPolyFromText Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation augmented with any Z (elevation) and M (measure) values carried by the instance.
Public method Static member STPolyFromWKB Returns a SqlGeography Polygon instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Public method STStartPoint Returns the start point of a SqlGeography instance.
Public method STSymDifference Returns an object representing all points that are either in one SqlGeography instance or another SqlGeography instance, but not those points that lie in both instances.
Public method STUnion Returns an object representing the union of a SqlGeography instance with another SqlGeography instance.
Public method STWithin Returns 1 if a SqlGeography instance is spatially within another SqlGeography instance; otherwise, returns 0.
Public method ToString Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeography instance augmented with any Z (elevation) and M (measure) values carried by the instance. (Overrides ObjectToString.)
Public method Write Writes a SqlGeography object to a binary stream.
Top

  Name Description
Explicit interface implemetation Private method ISqlSpatialGridIndexable.BufferForDistanceQuery Returns the buffer for distance query for the SQL Geography.
Explicit interface implemetation Private method ISqlSpatialGridIndexable.GetBoundingBoxCorners Returns a value for the bounding box corners for the SQL Geography.
Explicit interface implemetation Private method ISqlSpatialGridIndexable.GetGridCoverage Returns the grid coverage of the SQL Geography.
Explicit interface implemetation Private method ISqlSpatialGridIndexable.InteriorBufferForDistanceQuery Gets the interior buffer for distance query for the SQL Geography.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft