-
Notifications
You must be signed in to change notification settings - Fork 1
/
GeometryTypeInfo.ts
79 lines (68 loc) · 1.32 KB
/
GeometryTypeInfo.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import { GeometryType } from "@ngageoint/simple-features-js";
/**
* Geometry type info
*/
export class GeometryTypeInfo {
/**
* Geometry type code
*/
private readonly _geometryTypeCode: number;
/**
* Geometry type
*/
private readonly _geometryType: GeometryType;
/**
* Has Z values flag
*/
private readonly _hasZ: boolean;
/**
* Has M values flag
*/
private readonly _hasM: boolean;
/**
* Constructor
*
* @param geometryTypeCode geometry type code
* @param geometryType geometry type
* @param hasZ has z
* @param hasM has m
*/
public constructor(geometryTypeCode: number, geometryType: GeometryType, hasZ: boolean, hasM: boolean) {
this._geometryTypeCode = geometryTypeCode;
this._geometryType = geometryType;
this._hasZ = hasZ;
this._hasM = hasM;
}
/**
* Get the geometry type code
*
* @return geometry type code
*/
public get geometryTypeCode(): number {
return this._geometryTypeCode;
}
/**
* Get the geometry type
*
* @return geometry type
*/
public get geometryType(): GeometryType {
return this._geometryType;
}
/**
* Has z values
*
* @return true if has z values
*/
public get hasZ(): boolean {
return this._hasZ;
}
/**
* Has m values
*
* @return true if has m values
*/
public get hasM(): boolean {
return this._hasM;
}
}