AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

¡Nueva funcionalidad de WINDEV, WEBDEV y WINDEV Mobile 2024!
Ayuda / WLanguage / Administrar bases de datos / HFSQL / 
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns a corrected version of the specified geometry.
Remark: Some problems can be automatically corrected, such as misaligned points in a polygon.
Example
// Correct a triangle whose exterior ring is oriented 
// counterclockwise
triangle is Polygon2D
Linestring2DAddPoint(triangle.Outline, -3.00, 1.00)
Linestring2DAddPoint(triangle.Outline, 1.00, -2.00)
Linestring2DAddPoint(triangle.Outline, 2.00, 2.00)
Linestring2DAddPoint(triangle.Outline, -3.00, 1.00)
Trace("GeometryIsValid(triangle) = " + GeometryIsValid(triangle)) // False

// Correction
corrected_triangle is Polygon2D
corrected_triangle = GeometryCorrect(triangle)
Trace("GeometryIsValid(corrected_triangle) = " + GeometryIsValid(corrected_triangle)) // True
Trace("GeometryIsValid(triangle) = " + GeometryIsValid(triangle)) 
// Still False: the geometry passed as a parameter is not modified
Syntax
<Result> = GeometryCorrect(<Geometry>)
<Result>: Variable corresponding to the geometry
Corrected geometry.
<Geometry>: Variable containing spatial data
Potentially incorrect geometry to be corrected. This parameter is not modified by the function. This geometry can correspond to one of the following variable types:
Business / UI classification: Business Logic
Component: wd290hf.dll
Versión mínima requerida
  • Versión 2024
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/05/2024

Señalar un error o enviar una sugerencia | Ayuda local