SqlSpatialFunctions Class
Collapse the table of content
Expand the table of content

SqlSpatialFunctions Class

.NET Framework (current version)
 

Represents the SQL spatial functions for the SQL client.

Namespace:   System.Data.Objects.SqlClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

System.Object
  System.Data.Objects.SqlClient.SqlSpatialFunctions

public static class SqlSpatialFunctions

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAsTextZM(DbGeography)

Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a geography instance augmented with any Z (elevation) and M (measure) values carried by the instance.

System_CAPS_pubmethodSystem_CAPS_staticAsTextZM(DbGeometry)

Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a geography instance augmented with any Z (elevation) and M (measure) values carried by the instance.

System_CAPS_pubmethodSystem_CAPS_staticBufferWithTolerance(DbGeography, Nullable<Double>, Nullable<Double>, Nullable<Boolean>)

Returns a geometric object representing the union of all point values whose distance from a geography instance is less than or equal to a specified value, allowing for a specified tolerance.

System_CAPS_pubmethodSystem_CAPS_staticBufferWithTolerance(DbGeometry, Nullable<Double>, Nullable<Double>, Nullable<Boolean>)

Returns a geometric object representing the union of all point values whose distance from a geometry instance is less than or equal to a specified value, allowing for a specified tolerance.

System_CAPS_pubmethodSystem_CAPS_staticEnvelopeAngle(DbGeography)

Returns the maximum angle between the point returned by EnvelopeCenter() and a point in the geography instance in degrees.

System_CAPS_pubmethodSystem_CAPS_staticEnvelopeCenter(DbGeography)

Returns a point that can be used as the center of a bounding circle for the geography instance.

System_CAPS_pubmethodSystem_CAPS_staticFilter(DbGeography, DbGeography)

Offers a fast, index-only intersection method to determine if a geography instance intersects another SqlGeography instance, assuming an index is available.

System_CAPS_pubmethodSystem_CAPS_staticFilter(DbGeometry, DbGeometry)

Offers a fast, index-only intersection method to determine if a geography instance intersects another SqlGeometry instance, assuming an index is available.

System_CAPS_pubmethodSystem_CAPS_staticInstanceOf(DbGeography, String)

Tests if the SqlGeography instance is the same as the specified type.

System_CAPS_pubmethodSystem_CAPS_staticInstanceOf(DbGeometry, String)

Tests if the SqlGeometry instance is the same as the specified type.

System_CAPS_pubmethodSystem_CAPS_staticMakeValid(DbGeometry)

Converts an invalid geometry instance into a geometry instance with a valid Open Geospatial Consortium (OGC) type.

System_CAPS_pubmethodSystem_CAPS_staticNumRings(DbGeography)

Returns the total number of rings in a Polygon instance.

System_CAPS_pubmethodSystem_CAPS_staticPointGeography(Nullable<Double>, Nullable<Double>, Nullable<Int32>)

Constructs a geography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).

System_CAPS_pubmethodSystem_CAPS_staticPointGeometry(Nullable<Double>, Nullable<Double>, Nullable<Int32>)

Constructs a geometry instance representing a Point instance from its x and y values and a spatial reference ID (SRID).

System_CAPS_pubmethodSystem_CAPS_staticReduce(DbGeography, Nullable<Double>)

Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.

System_CAPS_pubmethodSystem_CAPS_staticReduce(DbGeometry, Nullable<Double>)

Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.

System_CAPS_pubmethodSystem_CAPS_staticRingN(DbGeography, Nullable<Int32>)

Returns the specified ring of the SqlGeography instance: 1 ≤ n ≤ NumRings().

.NET Framework
Available since 4.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft