Skip to content

Commit 39718af

Browse files
committed
- fixed Polygon to Polygonal geometry types
1 parent 3ab35e0 commit 39718af

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Torben Steinhardt
3+
Copyright (c) 2023 Torben Steinhardt
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

index.d.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import {Feature as GeoJsonFeature, Geometry, LineString, Point, Polygon} from "geojson"
1+
import {Feature as GeoJsonFeature, Geometry, LineString, Point, Polygon, MultiPolygon} from "geojson"
2+
3+
export type Polygonal = Polygon | MultiPolygon
24

35
export interface Door {
46
type: DOOR_TYPE | null,
@@ -194,7 +196,7 @@ export interface Detail extends Feature {
194196
export interface Fixture extends LabeledFeature {
195197
id: FixtureId,
196198
feature_type: FeatureType.fixture,
197-
geometry: Polygon,
199+
geometry: Polygonal,
198200
properties: FeatureProperties & {
199201
category: FIXTURE_CATEGORY,
200202
name: Labels | null,
@@ -212,7 +214,7 @@ export interface Fixture extends LabeledFeature {
212214
export interface Footprint {
213215
id: FootprintId,
214216
feature_type: FeatureType.footprint,
215-
geometry: Polygon,
217+
geometry: Polygonal,
216218
properties: FeatureProperties & {
217219
category: FOOTPRINT_CATEGORY,
218220
name: Labels | null,
@@ -227,7 +229,7 @@ export interface Footprint {
227229
export interface Geofence extends Feature {
228230
id: GeofenceId,
229231
feature_type: FeatureType.geofence,
230-
geometry: Polygon,
232+
geometry: Polygonal,
231233
properties: FeatureProperties & {
232234
category: GEOFENCE_CATEGORY
233235
}
@@ -248,7 +250,7 @@ export interface KioskProperties extends NamedFeatureProperties {
248250
export interface Kiosk extends NamedFeature<LevelProperties> {
249251
id: KioskId,
250252
feature_type: FeatureType.kiosk,
251-
geometry: Polygon,
253+
geometry: Polygonal,
252254
properties: KioskProperties
253255
}
254256

@@ -271,7 +273,7 @@ export interface LevelProperties extends NamedFeatureProperties {
271273
export interface Level extends NamedFeature<LevelProperties> {
272274
id: LevelId,
273275
feature_type: FeatureType.level,
274-
geometry: Polygon,
276+
geometry: Polygonal,
275277
properties: LevelProperties
276278
}
277279

@@ -340,7 +342,7 @@ export interface Relationship extends Feature {
340342
export interface Section extends LabeledFeature {
341343
id: SectionId,
342344
feature_type: FeatureType.section,
343-
geometry: Polygon,
345+
geometry: Polygonal,
344346
properties: LabeledFeatureProperties & {
345347
category: SECTION_CATEGORY,
346348
restriction: RESTRICTION_CATEGORY | null,
@@ -372,7 +374,7 @@ export interface UnitProperties extends LabeledFeatureProperties {
372374
export interface Unit extends LabeledFeature<UnitProperties> {
373375
id: UnitId,
374376
feature_type: FeatureType.unit,
375-
geometry: Polygon,
377+
geometry: Polygonal,
376378
properties: UnitProperties
377379
}
378380

@@ -383,7 +385,7 @@ export interface Unit extends LabeledFeature<UnitProperties> {
383385
export interface Venue extends LabeledFeature {
384386
id: VenueId,
385387
feature_type: FeatureType.venue,
386-
geometry: Polygon,
388+
geometry: Polygonal,
387389
properties: FeatureProperties & {
388390
category: VENUE_CATEGORY,
389391
restriction: RESTRICTION_CATEGORY | null,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imdf-typescript",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Typescript definitions for IMDF https://docs.ogc.org/cs/20-094/index.html",
55
"main": "index.d.ts",
66
"scripts": {

0 commit comments

Comments
 (0)