11/**
22 * Base types for CSAPI GeoJSON features
3- *
3+ *
44 * CSAPI uses GeoJSON (RFC 7946) as one of its primary formats for resource representation.
55 * All resources except Observations and Commands are represented as GeoJSON features.
6- *
6+ *
77 * @see https://docs.ogc.org/is/23-001r2/23-001r2.html (Part 1: Feature Resources)
88 * @see https://tools.ietf.org/html/rfc7946 (GeoJSON Specification)
99 */
@@ -24,7 +24,7 @@ export interface TimeExtent {
2424 * Start of time period (ISO 8601)
2525 */
2626 start ?: ISODateTime ;
27-
27+
2828 /**
2929 * End of time period (ISO 8601)
3030 */
@@ -50,22 +50,22 @@ export interface Link {
5050 * Link relation type
5151 */
5252 rel : string ;
53-
53+
5454 /**
5555 * Target URI
5656 */
5757 href : string ;
58-
58+
5959 /**
6060 * MIME type of the linked resource
6161 */
6262 type ?: string ;
63-
63+
6464 /**
6565 * Human-readable title
6666 */
6767 title ?: string ;
68-
68+
6969 /**
7070 * Language of the linked resource (RFC 5646)
7171 */
@@ -74,7 +74,7 @@ export interface Link {
7474
7575/**
7676 * Common properties shared by all CSAPI feature types
77- *
77+ *
7878 * @see https://docs.ogc.org/is/23-001r2/23-001r2.html#_common_properties
7979 */
8080export interface CSAPIFeatureProperties {
@@ -83,28 +83,28 @@ export interface CSAPIFeatureProperties {
8383 * Examples: 'System', 'Deployment', 'Procedure', 'SamplingFeature', etc.
8484 */
8585 featureType : string ;
86-
86+
8787 /**
8888 * Unique identifier for this resource
8989 * Required by CSAPI specification
9090 */
9191 uid : UniqueID ;
92-
92+
9393 /**
9494 * Human-readable name
9595 */
9696 name ?: string ;
97-
97+
9898 /**
9999 * Detailed description
100100 */
101101 description ?: string ;
102-
102+
103103 /**
104104 * Time period during which this resource is/was valid
105105 */
106106 validTime ?: TimeExtent ;
107-
107+
108108 /**
109109 * Links to related resources (self, alternate, collection, etc.)
110110 */
@@ -113,7 +113,7 @@ export interface CSAPIFeatureProperties {
113113
114114/**
115115 * Base type for all CSAPI GeoJSON features
116- *
116+ *
117117 * @template P - Properties type extending CSAPIFeatureProperties
118118 * @template G - Geometry type (defaults to any GeoJSON geometry)
119119 */
@@ -125,17 +125,17 @@ export interface CSAPIFeature<
125125 * Always 'Feature' for GeoJSON features
126126 */
127127 type : 'Feature' ;
128-
128+
129129 /**
130130 * Feature ID (may differ from properties.uid)
131131 */
132132 id ?: string | number ;
133-
133+
134134 /**
135135 * Geometry (can be null for features without location)
136136 */
137137 geometry : G ;
138-
138+
139139 /**
140140 * CSAPI-specific properties
141141 */
@@ -144,7 +144,7 @@ export interface CSAPIFeature<
144144
145145/**
146146 * Base type for CSAPI GeoJSON feature collections
147- *
147+ *
148148 * @template F - Feature type extending CSAPIFeature
149149 */
150150export interface CSAPIFeatureCollection < F extends CSAPIFeature = CSAPIFeature >
@@ -153,27 +153,27 @@ export interface CSAPIFeatureCollection<F extends CSAPIFeature = CSAPIFeature>
153153 * Always 'FeatureCollection'
154154 */
155155 type : 'FeatureCollection' ;
156-
156+
157157 /**
158158 * Array of features
159159 */
160160 features : F [ ] ;
161-
161+
162162 /**
163163 * Optional links for pagination and related resources
164164 */
165165 links ?: Link [ ] ;
166-
166+
167167 /**
168168 * Number of features returned (may be less than total)
169169 */
170170 numberReturned ?: number ;
171-
171+
172172 /**
173173 * Total number of features available (if known)
174174 */
175175 numberMatched ?: number ;
176-
176+
177177 /**
178178 * Timestamp when collection was generated
179179 */
@@ -200,7 +200,9 @@ export function isCSAPIFeature(obj: unknown): obj is CSAPIFeature {
200200/**
201201 * Type guard to check if object is a CSAPI feature collection
202202 */
203- export function isCSAPIFeatureCollection ( obj : unknown ) : obj is CSAPIFeatureCollection {
203+ export function isCSAPIFeatureCollection (
204+ obj : unknown
205+ ) : obj is CSAPIFeatureCollection {
204206 return (
205207 typeof obj === 'object' &&
206208 obj !== null &&
0 commit comments