You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/ForeFlightKML/CoreElements/LinearRing.swift
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
import GeodesySpherical
2
2
3
-
/// Defines a closed line string, typically the outer boundary of a Polygon. Optionally, a LinearRing can also be used as the inner boundary of a Polygon to create holes in the Polygon. A Polygon can contain multiple <LinearRing> elements used as inner boundaries.
3
+
/// Defines a closed line string, typically the outer boundary of a Polygon.
4
+
/// Optionally, a LinearRing can also be used as the inner boundary of a Polygon to create holes in the Polygon.
5
+
/// A Polygon can contain multiple <LinearRing> elements used as inner boundaries.
4
6
/// Note: LinearRing does NOT support altitudeMode - that is specified at the Polygon level.
5
7
/// However, individual coordinates can still have altitude values.
6
8
publicstructLinearRing:CoordinateContainer{
@@ -9,7 +11,7 @@ public struct LinearRing: CoordinateContainer {
9
11
publicvaraltitude:Double?
10
12
/// LinearRing doesn't define altitude mode (handled by parent Polygon)
11
13
publicvaraltitudeMode:AltitudeMode?{nil}
12
-
publicvartessellate:Bool?=nil
14
+
publicvartessellate:Bool?
13
15
14
16
/// Create a new linear ring.
15
17
/// - Parameters:
@@ -21,8 +23,7 @@ public struct LinearRing: CoordinateContainer {
21
23
22
24
// Auto-close the ring if needed
23
25
iflet first = coordinates.first,let last = coordinates.last,
0 commit comments