Поделиться через


Метод SqlGeometry.MakeValid

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

Пространство имен:  Microsoft.SqlServer.Types
Сборка:  Microsoft.SqlServer.Types (в Microsoft.SqlServer.Types.dll)

Синтаксис

'Декларация
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function MakeValid As SqlGeometry
'Применение
Dim instance As SqlGeometry 
Dim returnValue As SqlGeometry 

returnValue = instance.MakeValid()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry MakeValid()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlGeometry^ MakeValid()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member MakeValid : unit -> SqlGeometry
public function MakeValid() : SqlGeometry

Возвращаемое значение

Тип: Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry value with a valid OGC type.

Замечания

This method may cause a change in the type of the SqlGeometry instance, as well as cause the points of a SqlGeometry instance to shift slightly.

См. также

Справочник

SqlGeometry Класс

Пространство имен Microsoft.SqlServer.Types