Show / Hide Table of Contents

Property IsSketchValid

IsSketchValid

Gets a value indicating whether this builder contains sufficient points to show a valid graphical sketch.

Declaration
public virtual bool IsSketchValid { get; }
Property Value
Type Description
System.Boolean

true if the geometry builder contains sufficient points to show a valid graphical sketch, false otherwise.

Remarks

This can be used as an initial lightweight check to see if the current state of a builder produces a non-empty geometry. For example, it may be used to enable or disable functionality in an editing user interface. The exact requirements vary depending on the type of geometry produced by the builder:

  • A MapPointBuilder must contain non-NaN x,y coordinates.
  • A MultipointBuilder must contain at least one valid MapPoint.
  • A PolylineBuilder must contain at least one Part. Each Part it contains must have: at least two valid points, or at least one Segment where IsCurve is true.
  • A PolygonBuilder must contain at least one Part. Each Part it contains must have: at least three valid points, or at least one Segment where IsCurve is true.
  • EnvelopeBuilder must contain non-NaN minimum and maximum x and y values.

Note that this is not equivalent to topological simplicity, which is enforced by Simplify(Geometry) and checked using IsSimple(Geometry). Geometries must be topologically simple to be successfully saved in a geodatabase or used in some service operations.

Does not check the SpatialReference.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.