SqlSpatialFunctions.MakeValid(DbGeometry) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework