共用方式為


SqlGeography 類別

The SqlGeography type represents data in a geodetic (round earth) coordinate system.

繼承階層

System.Object
  Microsoft.SqlServer.Types.SqlGeography

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

'宣告
<SerializableAttribute> _
<SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered := False,  _
    MaxByteSize := , IsFixedLength := False)> _
<CLSCompliantAttribute(True)> _
Public NotInheritable Class SqlGeography _
    Implements INullable, IBinarySerialize, ISqlSpatialGridIndexable
'用途
Dim instance As SqlGeography
[SerializableAttribute]
[SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered = false, 
    MaxByteSize = , IsFixedLength = false)]
[CLSCompliantAttribute(true)]
public sealed class SqlGeography : INullable, 
    IBinarySerialize, ISqlSpatialGridIndexable
[SerializableAttribute]
[SqlUserDefinedTypeAttribute(Format::UserDefined, IsByteOrdered = false, 
    MaxByteSize = , IsFixedLength = false)]
[CLSCompliantAttribute(true)]
public ref class SqlGeography sealed : INullable, 
    IBinarySerialize, ISqlSpatialGridIndexable
[<SealedAttribute>]
[<SerializableAttribute>]
[<SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered = false, 
    MaxByteSize = , IsFixedLength = false)>]
[<CLSCompliantAttribute(true)>]
type SqlGeography =  
    class 
        interface INullable 
        interface IBinarySerialize 
        interface ISqlSpatialGridIndexable 
    end
public final class SqlGeography implements INullable, IBinarySerialize, ISqlSpatialGridIndexable

SqlGeography 型別公開下列成員。

建構函式

  名稱 說明
公用方法 SqlGeography Initializes a new instance of the SqlGeography class.

上層

屬性

  名稱 說明
公用屬性 HasM Returns true if at least one point in a spatial object contains value M; otherwise returns false. This property is read-only.
公用屬性 HasZ Returns true if at least one point in a spatial object contains value Z; otherwise returns false. This property is read-only.
公用屬性 IsNull Determines whether the SqlGeography instance is null.
公用屬性 Lat Returns the latitude property of the geography instance.
公用屬性 Long Returns the longitude property of the geography instance.
公用屬性 M Returns the M (measure) value of the geography instance.
公用屬性靜態成員 Null Returns a read-only property providing a null instance of the SqlGeography type.
公用屬性 STSrid Gets or sets id is an integer representing the Spatial Reference Identifier (SRID) of the instance.
公用屬性 Z Gets the Z (elevation) value of the instance. The semantics of the elevation value are user-defined.

上層

方法

  名稱 說明
公用方法 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.
公用方法 AsGml Returns the Geography Markup Language (GML) representation of a SqlGeography instance.
公用方法 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.
公用方法 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.
公用方法 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.
公用方法 CurveToLineWithTolerance Returns a polygonal approximation of a SqlGeography instance that contains circular arc segments.
公用方法靜態成員 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.
公用方法 EnvelopeAngle Returns the maximum angle between the point returned by EnvelopeCenter() and a point in the SqlGeography instance in degrees.
公用方法 EnvelopeCenter Returns a point that can be used as the center of a bounding circle for the geography instance.
公用方法 Equals (繼承自 Object。)
公用方法 Filter Offers a fast, index-only intersection method to determine if a geography instance intersects another SqlGeography instance, assuming an index is available.
公用方法靜態成員 GeomFromGml Constructs a SqlGeography instance given a representation in the SQL Server subset of the Geography Markup Language (GML).
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
公用方法 InstanceOf Tests if the SqlGeography instance is the same as the specified type.
公用方法 IsValidDetailed Returns a message to help identify validity issues with a spatial object.
公用方法 MakeValid Converts a geography instance that is not valid into a valid geography instance with a valid Open Geospatial Consortium (OGC) type.
公用方法 MinDbCompatibilityLevel Returns the minimum database compatibility that accepts the SqlGeography type.
公用方法 NumRings Returns the total number of rings in a Polygon instance.
公用方法靜態成員 Parse Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation.
公用方法靜態成員 Point Constructs a SqlGeography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).
公用方法 Populate(IGeographySink) 已經過時。Applies a geography type call sequence to IGeographySink object. The call sequence is a set of figures, lines, and points for geography types.
公用方法 Populate(IGeographySink110) Applies a geography type call sequence to IGeographySink object.
公用方法 Read Reads a binary representation of a geography type into a SqlGeometry object.
公用方法 Reduce Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.
公用方法 ReorientObject Returns a geography instance with interchanged interior regions and exterior regions.
公用方法 RingN Returns the specified ring of the SqlGeography instance: 1 ≤ n ≤ NumRings().
公用方法 Serialize Used for sending spatial data across the network.
公用方法 ShortestLineTo Returns the shortest distance between the two SqlGeographyinstances.
公用方法 STArea Returns the total surface area of a SqlGeography instance.
公用方法 STAsBinary Returns the Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation of a SqlGeography instance.
公用方法 STAsText Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeography instance.
公用方法 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.
公用方法 STContains Specifies whether the calling SqlGeography instance spatially contains the SqlGeography instance passed to the method.
公用方法 STConvexHull Returns an object that represents the convex hull of a SqlGeography instance.
公用方法 STCurveN Returns the curve specified from a SqlGeography instance that is a LineString, CircularString, or CompoundCurve.
公用方法 STCurveToLine Returns a polygonal approximation of a SqlGeography instance that contains circular arc segments.
公用方法 STDifference Returns an object representing the points from one SqlGeography instance that do not lie within another SqlGeography instance.
公用方法 STDimension Returns the maximum dimension of a SqlGeography instance
公用方法 STDisjoint Determines whether the calling SqlGeography instance is spatially disjoint from the specified SqlGeography instance.
公用方法 STDistance Returns the shortest distance between a point in a SqlGeography instance and a point in another SqlGeography instance.
公用方法 STEndPoint Returns the end point of a SqlGeography instance.
公用方法 STEquals Determines whether the specified SqlGeography instance has the same point set as the calling SqlGeography instance.
公用方法靜態成員 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.
公用方法靜態成員 STGeomCollFromWKB Returns a GeometryCollection instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
公用方法 STGeometryN Returns a specified geography element in a GeometryCollection or one of its subtypes.
公用方法 STGeometryType Returns the Open Geospatial Consortium (OGC) type name represented by a geography instance.
公用方法靜態成員 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.
公用方法靜態成員 STGeomFromWKB Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
公用方法 STIntersection Returns an object representing the points where a SqlGeography instance intersects another SqlGeography instance.
公用方法 STIntersects Determines whether the current SqlGeography instance intersects with the specified SqlGeography.
公用方法 STIsClosed Determines whether the calling SqlGeography instance is closed.
公用方法 STIsEmpty Determines whether the SqlGeography instance is empty.
公用方法 STIsValid Specifies whether a geography instance is well-formed and recognized as a valid geography object based on its Open Geospatial Consortium (OGC) type.
公用方法 STLength Returns the total length of the elements in a SqlGeography instance or the SqlGeography instances within a GeometryCollection.
公用方法靜態成員 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.
公用方法靜態成員 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.
公用方法靜態成員 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.
公用方法靜態成員 STMLineFromWKB Returns a SqlGeography MultiLineString instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
公用方法靜態成員 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.
公用方法靜態成員 STMPointFromWKB Returns a SqlGeography MultiPoint instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
公用方法靜態成員 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.
公用方法靜態成員 STMPolyFromWKB Returns a SqlGeography MultiPolygon instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
公用方法 STNumCurves Returns the number of curves in a one-dimensional SqlGeography instance.
公用方法 STNumGeometries Returns the number of geometries that make up a SqlGeography instance.
公用方法 STNumPoints Returns the total number of points in each of the figures in a SqlGeography instance
公用方法 STOverlaps Returns 1 if a SqlGeography instance spatially overlaps another SqlGeography instance, or 0 if it does not.
公用方法靜態成員 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.
公用方法靜態成員 STPointFromWKB Returns a SqlGeography Point instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
公用方法 STPointN Returns the specified point in a SqlGeography instance.
公用方法靜態成員 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.
公用方法靜態成員 STPolyFromWKB Returns a SqlGeography Polygon instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
公用方法 STStartPoint Returns the start point of a SqlGeography instance.
公用方法 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.
公用方法 STUnion Returns an object representing the union of a SqlGeography instance with another SqlGeography instance.
公用方法 STWithin Returns 1 if a SqlGeography instance is spatially within another SqlGeography instance; otherwise, returns 0.
公用方法 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. (覆寫 Object.ToString()。)
公用方法 Write Writes a SqlGeography object to a binary stream.

上層

明確 繼承 實作

  名稱 說明
明確介面實作私用方法 ISqlSpatialGridIndexable.BufferForDistanceQuery Returns the buffer for distance query for the SQL Geography.
明確介面實作私用方法 ISqlSpatialGridIndexable.GetBoundingBoxCorners Returns a value for the bounding box corners for the SQL Geography.
明確介面實作私用方法 ISqlSpatialGridIndexable.GetGridCoverage Returns the grid coverage of the SQL Geography.
明確介面實作私用方法 ISqlSpatialGridIndexable.InteriorBufferForDistanceQuery Gets the interior buffer for distance query for the SQL Geography.

上層

備註

SQL Server supports a set of methods for the geography spatial data type. These methods include methods on geography that are defined by the Open Geospatial Consortium (OGC) standard and a set of Microsoft extensions to that standard.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Types 命名空間