SqlSpatialFunctions.MakeValid(DbGeometry) Method

Definition

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

[System.Data.Entity.DbFunction("SqlServer", "MAKEVALID")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="geometryValue")]
public static System.Data.Entity.Spatial.DbGeometry MakeValid (System.Data.Entity.Spatial.DbGeometry geometryValue);
static member MakeValid : System.Data.Entity.Spatial.DbGeometry -> System.Data.Entity.Spatial.DbGeometry
Public Shared Function MakeValid (geometryValue As DbGeometry) As DbGeometry

Parameters

geometryValue
DbGeometry

The geometry value.

Returns

The converted geometry instance.

Attributes

Applies to