InteriorPoint

Namespace: Digi21.DigiNG.Entities
Assembly: Digi21.DigiNG

Returns a coordinate inside the area enclosed by the entity. Property of ICloseable.

Point3D InteriorPoint { get; }

Property value

A Point3D inside the enclosed area in the XY plane. Useful, for example, for placing a parcel label. Unlike Center (the center of the minimum and maximum coordinates), this point lies inside the enclosed area even for concave areas.

Type Calculation
ReadOnlyLine, Line If the center of the minimum and maximum coordinates is inside the line, returns that center. Otherwise, finds a point on a horizontal line that passes through no vertices.
ReadOnlyPolygon, Polygon Finds the point considering the outer boundary and holes: the returned point is not inside any hole.

Exceptions

Exception When
InvalidOperationException The entity is a line not closed in X and Y (Closed is false) or has fewer than 2 vertices.