Partager via


Classe SqlGeometry

The SqlGeometry type represents data in a Euclidean (flat) coordinate system.

Hiérarchie d'héritage

System. . :: . .Object
  Microsoft.SqlServer.Types..::..SqlGeometry

Espace de noms :  Microsoft.SqlServer.Types
Assembly :  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
<SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered := False,  _
    MaxByteSize := , IsFixedLength := False)> _
<CLSCompliantAttribute(True)> _
Public NotInheritable Class SqlGeometry _
    Implements INullable, IBinarySerialize
'Utilisation
Dim instance As SqlGeometry
[SerializableAttribute]
[SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered = false, 
    MaxByteSize = , IsFixedLength = false)]
[CLSCompliantAttribute(true)]
public sealed class SqlGeometry : INullable, 
    IBinarySerialize
[SerializableAttribute]
[SqlUserDefinedTypeAttribute(Format::UserDefined, IsByteOrdered = false, 
    MaxByteSize = , IsFixedLength = false)]
[CLSCompliantAttribute(true)]
public ref class SqlGeometry sealed : INullable, 
    IBinarySerialize
[<SealedAttribute>]
[<SerializableAttribute>]
[<SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered = false, 
    MaxByteSize = , IsFixedLength = false)>]
[<CLSCompliantAttribute(true)>]
type SqlGeometry =  
    class
        interface INullable
        interface IBinarySerialize
    end
public final class SqlGeometry implements INullable, IBinarySerialize

Le type SqlGeometry expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique SqlGeometry Initializes a new instance of the SqlGeometry class.

Haut de la page

Propriétés

  Nom Description
Propriété publique IsNull Gets a value that indicates whether the SqlGeometry object is null.
Propriété publique M Gets the M (measure) value of the SqlGeometry instance. The semantics of the measure value are user-defined.
Propriété publiqueMembre statique Null Gets a read-only property providing a null instance of the SqlGeometry type.
Propriété publique STSrid Gets or sets an integer that represents the Spatial Reference Identifier (SRID) of the instance.
Propriété publique STX Gets the X-coordinate property of a Point instance.
Propriété publique STY Gets the Y-coordinate property of a Point instance.
Propriété publique Z Gets the Z (elevation) value of the instance. The semantics of the elevation value are user-defined.

Haut de la page

Méthodes

  Nom Description
Méthode publique AsGml Returns the Geography Markup Language (GML) representation of a SqlGeometry instance.
Méthode publique AsTextZM Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeometry instance, augmented with any Z (elevation) and M (measure) values carried by the instance.
Méthode publique BufferWithTolerance Returns a geometric object that represents the union of all point values whose distance from a SqlGeometry instance is less than or equal to a specified value, allowing for a specified tolerance.
Méthode publique Equals (hérité de Object.)
Méthode publique Filter Offers a fast, index-only intersection method to determine if a SqlGeometry instance intersects another SqlGeometry instance, assuming an index is available.
Méthode protégée Finalize (hérité de Object.)
Méthode publiqueMembre statique GeomFromGml Constructs a SqlGeometry instance given a representation in the SQL Server subset of the Geography Markup Language (GML).
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode publique InstanceOf Tests if the SqlGeometry instance is the same as the specified type.
Méthode publique MakeValid Converts an invalid SqlGeometry instance into a SqlGeometry instance with a valid Open Geospatial Consortium (OGC) type.
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publiqueMembre statique Parse Returns a SqlGeometry instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation.
Méthode publiqueMembre statique Point Constructs a SqlGeometry instance that represents a Point instance from its X and Y values and an SRID.
Méthode publique Populate Applies a geometry type call sequence to an IGeometrySink object. The call sequence is a sequential set of figures, lines, and points. SqlGeometry
Méthode publique Read Reads a binary representation of a geometry type into a SqlGeometry object. SqlGeometry
Méthode publique Reduce Returns an approximation of the given SqlGeometry instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.
Méthode publique STArea Returns the total surface area of a SqlGeometry instance.
Méthode publique STAsBinary Returns the Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation of a SqlGeometry instance. This value will not contain any Z or M values carried by the instance.
Méthode publique STAsText Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeometry instance. This text will not contain any Z (elevation) or M (measure) values carried by the instance.
Méthode publique STBoundary Returns the boundary of a SqlGeometry instance.
Méthode publique STBuffer Returns a geometric object that represents the union of all points whose distance from a SqlGeometry instance is less than or equal to a specified value.
Méthode publique STCentroid Returns the geometric center of a SqlGeometry instance consisting of one or more polygons.
Méthode publique STContains Specifies whether the calling SqlGeometry instance completely contains another SqlGeometry.
Méthode publique STConvexHull Returns an object that represents the convex hull of a SqlGeometry instance.
Méthode publique STCrosses Determines whether the calling SqlGeometry instance crosses the specified SqlGeometry instance.
Méthode publique STDifference Returns an object that represents the points from one SqlGeometry instance that do not lie within another SqlGeometry instance.
Méthode publique STDimension Returns the maximum dimension of a SqlGeometry instance.
Méthode publique STDisjoint Determines whether the calling SqlGeometry instance is disjointed when compared against the specified SqlGeometry.
Méthode publique STDistance Returns the shortest distance between a point in a SqlGeometry instance and a point in the specified SqlGeometry instance.
Méthode publique STEndPoint Returns the end point of a SqlGeometry instance.
Méthode publique STEnvelope Returns the minimum axis-aligned bounding rectangle of the instance.
Méthode publique STEquals Determines whether the specified SqlGeometry has a point set identical to the calling SqlGeometry.
Méthode publique STExteriorRing Returns the exterior ring of a SqlGeometry instance that is a polygon.
Méthode publiqueMembre statique STGeomCollFromText Returns a SqlGeometry 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.
Méthode publiqueMembre statique STGeomCollFromWKB Returns a SqlGeometry collection instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Méthode publique STGeometryN Returns the specified SqlGeometry in a SqlGeometry collection.
Méthode publique STGeometryType Returns the Open Geospatial Consortium (OGC) type name represented by a geometry instance. SqlGeometry
Méthode publiqueMembre statique STGeomFromText Returns a SqlGeometry 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.
Méthode publiqueMembre statique STGeomFromWKB Returns a SqlGeometry instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Méthode publique STInteriorRingN Returns the specified interior ring of a Polygon SqlGeometry instance.
Méthode publique STIntersection Returns an object that represents the points where a SqlGeometry instance intersects another SqlGeometry instance.
Méthode publique STIntersects Determines whether the calling SqlGeometry instance intersects another SqlGeometry.
Méthode publique STIsClosed Determines whether the start and end points of the calling SqlGeometry are the same.
Méthode publique STIsEmpty Indicates whether the calling SqlGeometry instance is empty.
Méthode publique STIsRing Determines whether the calling SqlGeometry instance is a ring.
Méthode publique STIsSimple Determines whether the calling SqlGeometry instance is simple.
Méthode publique STIsValid Determines whether the SqlGeometry instance is well-formed.
Méthode publique STLength Returns the total length of the elements in a SqlGeometry instance.
Méthode publiqueMembre statique STLineFromText Returns a SqlGeometry 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.
Méthode publiqueMembre statique STLineFromWKB Returns a SqlGeometry LineString instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Méthode publiqueMembre statique STMLineFromText Returns a SqlGeometry 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.
Méthode publiqueMembre statique STMLineFromWKB Returns a SqlGeometry MultiLineString instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Méthode publiqueMembre statique STMPointFromText Returns a SqlGeometry 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.
Méthode publiqueMembre statique STMPointFromWKB Returns a SqlGeometry Point instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Méthode publiqueMembre statique STMPolyFromText Returns a SqlGeometry instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation with any Z (elevation) and M (measure) values carried by the instance.
Méthode publiqueMembre statique STMPolyFromWKB Returns a SqlGeometry MultiPolygon instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Méthode publique STNumGeometries Returns the number of SqlGeometry that comprise a SqlGeometry instance.
Méthode publique STNumInteriorRing Returns the number of interior rings of a Polygon SqlGeometry instance.
Méthode publique STNumPoints Returns the sum of the number of points in each of the figures in a SqlGeometry instance.
Méthode publique STOverlaps Determines whether the specified SqlGeometry overlaps the current SqlGeometry.
Méthode publiqueMembre statique STPointFromText Returns a SqlGeometry 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.
Méthode publiqueMembre statique STPointFromWKB Returns a SqlGeometry Point instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Méthode publique STPointN Returns a specified point in a SqlGeometry instance.
Méthode publique STPointOnSurface Returns an arbitrary point located within the interior of a SqlGeometry instance.
Méthode publiqueMembre statique STPolyFromText Returns a SqlGeometry 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.
Méthode publiqueMembre statique STPolyFromWKB Returns a SqlGeometry Polygon instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.
Méthode publique STRelate Determines whether the calling SqlGeometry is related to the specified SqlGeometry.
Méthode publique STStartPoint Returns the start point of a SqlGeometry instance.
Méthode publique STSymDifference Returns an object that represents all points that are either in one SqlGeometry instance or another SqlGeometry instance, but not those points that lie in both instances.
Méthode publique STTouches Determines whether the specified SqlGeometry touches the current SqlGeometry.
Méthode publique STUnion Returns an object that represents the union of a SqlGeometry instance with another SqlGeometry instance.
Méthode publique STWithin Determines whether the current SqlGeometry is completely within the specified SqlGeometry instance.
Méthode publique ToString Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeometry instance augmented with any Z (elevation) and M (measure) values carried by the instance. (remplace Object. . :: . .ToString() () () ().)
Méthode publique Write Writes a SqlGeometry instance to a binary stream. SqlGeometry

Haut de la page

Notes

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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.