-
Notifications
You must be signed in to change notification settings - Fork 432
/
Dimension.hpp
770 lines (738 loc) · 21.8 KB
/
Dimension.hpp
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
/******************************************************************************
* Copyright (c) 2014, Hobu Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided
* with the distribution.
* * Neither the name of the Martin Isenburg or Iowa Department
* of Natural Resources nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
****************************************************************************/
#pragma once
#include <sstream>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <pdal/pdal_internal.hpp>
//NOTE: How to add a predefined dimension.
//
// A dimension is easily added to PDAL by doing the following:
// 1) Add an entry to the enumeration pdal::Dimension::Id::Enum with an
// appropriate name.
// 2) Add an appropriate entry to the switch statement in the function
// pdal::Dimension::name() to supply the string name of the dimension.
// 3) Add an appropriate entry to the switch statement in the function
// pdal::Dimension::id() to return the dimension ID given a matching
// name. Make sure that names don't map to more than one dimension.
// 4) Add an appropriate entry to the switch statement in the function
// pdal::Dimension::description() to return a description of the dimension.
// 5) Add an appropriate entry to the switch statement in the function
// pdal::Dimension::defaultType() to return a type sufficiently
// large to hold values of the dimension for all relevant formats.
//This should be generated from another format - JSON?
namespace pdal
{
namespace Dimension
{
namespace BaseType
{
enum Enum
{
Signed = 0x100,
Unsigned = 0x200,
Floating = 0x400
};
}
inline BaseType::Enum fromName(std::string name)
{
if (name == "signed")
return BaseType::Signed;
else if (name == "unsigned")
return BaseType::Unsigned;
else if (name == "floating")
return BaseType::Floating;
else
throw pdal_error("Invalid BaseType name");
}
inline std::string toName(BaseType::Enum b)
{
switch (b)
{
case BaseType::Signed:
return "signed";
case BaseType::Unsigned:
return "unsigned";
case BaseType::Floating:
return "floating";
default:
return "";
}
}
namespace Type
{
enum Enum
{
None = 0,
Unsigned8 = BaseType::Unsigned | 1,
Signed8 = BaseType::Signed | 1,
Unsigned16 = BaseType::Unsigned | 2,
Signed16 = BaseType::Signed | 2,
Unsigned32 = BaseType::Unsigned | 4,
Signed32 = BaseType::Signed | 4,
Unsigned64 = BaseType::Unsigned | 8,
Signed64 = BaseType::Signed | 8,
Float = BaseType::Floating | 4,
Double = BaseType::Floating | 8
};
}
inline size_t size(Type::Enum t)
{
return t & 0xFF;
}
inline BaseType::Enum base(Type::Enum t)
{
return BaseType::Enum(t & 0xFF00);
}
struct Detail
{
Detail() : m_offset(-1), m_type(Type::None)
{}
int m_offset;
Type::Enum m_type;
int offset() const
{ return m_offset; }
Type::Enum type() const
{ return m_type; }
size_t size() const
{ return Dimension::size(m_type); }
BaseType::Enum base() const
{ return Dimension::base(m_type); }
};
namespace Id
{
enum Enum
{
Unknown,
X,
Y,
Z,
Intensity,
Amplitude,
Reflectance,
ReturnNumber,
NumberOfReturns,
ScanDirectionFlag,
EdgeOfFlightLine,
Classification,
ScanAngleRank,
UserData,
PointSourceId,
Red,
Green,
Blue,
GpsTime,
InternalTime,
OffsetTime,
IsPpsLocked,
StartPulse,
ReflectedPulse,
Pdop,
Pitch,
Roll,
PulseWidth,
Deviation,
PassiveSignal,
BackgroundRadiation,
PassiveX,
PassiveY,
PassiveZ,
XVelocity,
YVelocity,
ZVelocity,
PlatformHeading,
WanderAngle,
XBodyAccel,
YBodyAccel,
ZBodyAccel,
XBodyAngRate,
YBodyAngRate,
ZBodyAngRate,
Flag,
Mark,
Alpha,
EchoRange,
ScanChannel,
Infrared
};
} // namespace Id
typedef std::vector<Id::Enum> IdList;
static const int COUNT = std::numeric_limits<uint16_t>::max();
static const int PROPRIETARY = 0xFF00;
/// Get a description of a predefined dimension.
/// \param[in] id Dimension ID.
/// \return Dimension description.
inline std::string description(Id::Enum id)
{
switch (id)
{
case Id::X:
return "X coordinate";
case Id::Y:
return "Y coordinate";
case Id::Z:
return "Z coordinate";
case Id::Intensity:
return "Representation of the pulse return magnitude";
case Id::Amplitude:
return "This is the ratio of the received power to the "
"power received at the detection limit expressed in dB";
case Id::Reflectance:
return "This is the ratio of the received power to the "
"power that would be received from a white diffuse target "
"at the same distance expressed in dB. The reflectance "
"represents a range independent property of the target. "
"The surface normal of this target is assumed to be in "
"parallel to the laser beam direction.";
case Id::ReturnNumber:
return "Pulse return number for a given output pulse. A given output "
"laser pulse can have many returns, and they must be marked in "
"order, starting with 1";
case Id::NumberOfReturns:
return "Total number of returns for a given pulse.";
case Id::ScanDirectionFlag:
return "Direction at which the scanner mirror was traveling at the "
"time of the output pulse. A value of 1 is a positive scan "
"direction, and a bit value of 0 is a negative scan direction, "
"where positive scan direction is a scan moving from the left "
"side of the in-track direction to the right side and negative "
"the opposite";
case Id::EdgeOfFlightLine:
return "Indicates the end of scanline before a direction change "
"with a value of 1 - 0 otherwise";
case Id::Classification:
return "ASPRS classification. 0 for no classification. See "
"LAS specification for details";
case Id::ScanAngleRank:
return "Angle degree at which the laster point was output from "
"the system, including the roll of the aircraft. The scan "
"angle is based on being nadir, and -90 the left side of the "
"aircraft in the direction of flight";
case Id::UserData:
return "Unspecified user data";
case Id::PointSourceId:
return "File source ID from which the point originated. Zero "
"indicates that the point originated in the current file";
case Id::GpsTime:
return "GPS time that the point was acquired";
case Id::InternalTime:
return "Scanner's internal time when the point was aquired, in seconds";
case Id::OffsetTime:
return "Milliseconds from first acquired point";
case Id::IsPpsLocked:
return "The external PPS signal was found to be synchronized at the "
"time of the current laser shot.";
case Id::Red:
return "Red image channel value";
case Id::Green:
return "Green image channel value";
case Id::Blue:
return "Blue image channel value";
case Id::Alpha:
return "Alpha image channel value";
case Id::StartPulse:
return "Relative pulse signal strength";
case Id::ReflectedPulse:
return "Relative reflected pulse signal strength";
case Id::Pitch:
return "Pitch in degrees";
case Id::Roll:
return "Roll in degrees";
case Id::Pdop:
return "GPS PDOP (dilution of precision)";
case Id::PulseWidth:
return "Laser received pulse width (digitizer samples)";
case Id::Deviation:
return "A larger value for deviation indicates larger distortion.";
case Id::PassiveSignal:
return "Relative passive signal";
case Id::BackgroundRadiation:
return "A measure of background radiation.";
case Id::PassiveX:
return "Passive X footprint";
case Id::PassiveY:
return "Passive Y footprint";
case Id::PassiveZ:
return "Passive Z footprint";
case Id::XVelocity:
return "X Velocity";
case Id::YVelocity:
return "Y Velocity";
case Id::ZVelocity:
return "Z Velocity";
case Id::PlatformHeading:
return "Platform Heading";
case Id::WanderAngle:
return "Wander Angle";
case Id::XBodyAccel:
return "X Body Acceleration";
case Id::YBodyAccel:
return "Y Body Acceleration";
case Id::ZBodyAccel:
return "Z Body Acceleration";
case Id::XBodyAngRate:
return "X Body Angle Rate";
case Id::YBodyAngRate:
return "Y Body Angle Rate";
case Id::ZBodyAngRate:
return "Z Body Angle Rate";
case Id::Mark:
return "Mark";
case Id::Flag:
return "Flag";
case Id::EchoRange:
return "The distance from the laser origin to the target.";
case Id::ScanChannel:
return "Scan Channel";
case Id::Infrared:
return "Near Infrared";
case Id::Unknown:
return "";
}
return "";
}
/// Get a predefined dimension ID given a dimension name. Multiple names
/// may map to the same dimension for convenience. Names are case-insensitive.
/// \param[in] s Name of dimension.
/// \return Dimension ID associated with the name. Id::Unknown is returned
/// if the name doesn't map to a predefined dimension.
inline Id::Enum id(std::string s)
{
boost::to_upper(s);
if (s == "X")
return Id::X;
else if (s == "Y")
return Id::Y;
else if (s == "Z")
return Id::Z;
else if (s == "INTENSITY")
return Id::Intensity;
else if (s == "AMPLITUDE")
return Id::Amplitude;
else if (s == "REFLECTANCE")
return Id::Reflectance;
else if (s == "RETURNNUMBER")
return Id::ReturnNumber;
else if (s == "NUMBEROFRETURNS")
return Id::NumberOfReturns;
else if (s == "SCANDIRECTIONFLAG")
return Id::ScanDirectionFlag;
else if (s == "EDGEOFFLIGHTLINE")
return Id::EdgeOfFlightLine;
else if (s == "CLASSIFICATION")
return Id::Classification;
else if (s == "SCANANGLERANK")
return Id::ScanAngleRank;
else if (s == "USERDATA")
return Id::UserData;
else if (s == "POINTSOURCEID")
return Id::PointSourceId;
else if (s == "RED")
return Id::Red;
else if (s == "GREEN")
return Id::Green;
else if (s == "BLUE")
return Id::Blue;
else if (s == "ALPHA")
return Id::Alpha;
else if (s == "GPSTIME")
return Id::GpsTime;
else if (s == "INTERNALTIME")
return Id::InternalTime;
else if (s == "TIME" || s == "OFFSETTIME")
return Id::OffsetTime;
else if (s == "ISPPSLOCKED")
return Id::IsPpsLocked;
else if (s == "STARTPULSE")
return Id::StartPulse;
else if (s == "RELFECTEDPULSE")
return Id::ReflectedPulse;
else if (s == "PITCH")
return Id::Pitch;
else if (s == "ROLL")
return Id::Roll;
else if (s == "PDOP")
return Id::Pdop;
else if (s == "PULSEWIDTH")
return Id::PulseWidth;
else if (s == "DEVIATION")
return Id::Deviation;
else if (s == "PASSIVESIGNAL")
return Id::PassiveSignal;
else if (s == "BACKGROUNDRADIATION")
return Id::BackgroundRadiation;
else if (s == "PASSIVEX")
return Id::PassiveX;
else if (s == "PASSIVEY")
return Id::PassiveY;
else if (s == "PASSIVEZ")
return Id::PassiveZ;
else if (s == "XVELOCITY")
return Id::XVelocity;
else if (s == "YVELOCITY")
return Id::YVelocity;
else if (s == "ZVELOCITY")
return Id::ZVelocity;
else if (s == "PLATFORMHEADING")
return Id::PlatformHeading;
else if (s == "WANDERANGLE")
return Id::WanderAngle;
else if (s == "XBODYACCEL")
return Id::XBodyAccel;
else if (s == "YBODYACCEL")
return Id::YBodyAccel;
else if (s == "ZBODYACCEL")
return Id::ZBodyAccel;
else if (s == "XBODYANGRATE")
return Id::XBodyAngRate;
else if (s == "YBODYANGRATE")
return Id::YBodyAngRate;
else if (s == "ZBODYANGRATE")
return Id::ZBodyAngRate;
else if (s == "MARK")
return Id::Mark;
else if (s == "FLAG")
return Id::Flag;
else if (s == "ECHORANGE")
return Id::EchoRange;
else if (s == "SCANCHANNEL")
return Id::ScanChannel;
else if (s == "INFRARED" || s == "NEARINFRARED")
return Id::Infrared;
return Id::Unknown;
}
/// Get the name of a predefined dimension.
/// \param[in] id Dimension ID
/// \return Dimension name.
inline std::string name(Id::Enum id)
{
switch (id)
{
case Id::X:
return "X";
case Id::Y:
return "Y";
case Id::Z:
return "Z";
case Id::Intensity:
return "Intensity";
case Id::Amplitude:
return "Amplitude";
case Id::Reflectance:
return "Reflectance";
case Id::ReturnNumber:
return "ReturnNumber";
case Id::NumberOfReturns:
return "NumberOfReturns";
case Id::ScanDirectionFlag:
return "ScanDirectionFlag";
case Id::EdgeOfFlightLine:
return "EdgeOfFlightLine";
case Id::Classification:
return "Classification";
case Id::ScanAngleRank:
return "ScanAngleRank";
case Id::UserData:
return "UserData";
case Id::PointSourceId:
return "PointSourceId";
case Id::Red:
return "Red";
case Id::Green:
return "Green";
case Id::Blue:
return "Blue";
case Id::Alpha:
return "Alpha";
case Id::GpsTime:
return "GpsTime";
case Id::InternalTime:
return "InternalTime";
case Id::OffsetTime:
return "OffsetTime";
case Id::IsPpsLocked:
return "IsPpsLocked";
case Id::StartPulse:
return "StartPulse";
case Id::ReflectedPulse:
return "ReflectedPulse";
case Id::Pitch:
return "Pitch";
case Id::Roll:
return "Roll";
case Id::Pdop:
return "Pdop";
case Id::PulseWidth:
return "PulseWidth";
case Id::Deviation:
return "Deviation";
case Id::PassiveSignal:
return "PassiveSignal";
case Id::BackgroundRadiation:
return "BackgroundRadiation";
case Id::PassiveX:
return "PassiveX";
case Id::PassiveY:
return "PassiveY";
case Id::PassiveZ:
return "PassiveZ";
case Id::XVelocity:
return "XVelocity";
case Id::YVelocity:
return "YVelocity";
case Id::ZVelocity:
return "ZVelocity";
case Id::PlatformHeading:
return "PlatformHeading";
case Id::WanderAngle:
return "WanderAngle";
case Id::XBodyAccel:
return "XBodyAccel";
case Id::YBodyAccel:
return "YBodyAccel";
case Id::ZBodyAccel:
return "ZBodyAccel";
case Id::XBodyAngRate:
return "XBodyAngRate";
case Id::YBodyAngRate:
return "YBodyAngRate";
case Id::ZBodyAngRate:
return "ZBodyAngRate";
case Id::Mark:
return "Mark";
case Id::Flag:
return "Flag";
case Id::EchoRange:
return "EchoRange";
case Id::ScanChannel:
return "ScanChannel";
case Id::Infrared:
return "Infrared";
case Id::Unknown:
return "";
}
return "";
}
/// Get the default storage type of a predefined dimension.
/// \param[in] id ID of the predefined dimension.
/// \return The dimension's default storage type. An exception is thrown if
/// the id doesn't represent a predefined dimension.
inline Type::Enum defaultType(Id::Enum id)
{
using namespace Type;
switch (id)
{
case Id::X:
return Double;
case Id::Y:
return Double;
case Id::Z:
return Double;
case Id::Intensity:
return Unsigned16;
case Id::Amplitude:
return Float;
case Id::Reflectance:
return Float;
case Id::ReturnNumber:
return Unsigned8;
case Id::NumberOfReturns:
return Unsigned8;
case Id::ScanDirectionFlag:
return Unsigned8;
case Id::EdgeOfFlightLine:
return Unsigned8;
case Id::Classification:
return Unsigned8;
case Id::ScanAngleRank:
return Float;
case Id::UserData:
return Unsigned8;
case Id::PointSourceId:
return Unsigned16;
case Id::GpsTime:
return Double;
case Id::InternalTime:
return Double;
case Id::OffsetTime:
return Unsigned32;
case Id::IsPpsLocked:
return Unsigned8;
case Id::Red:
return Unsigned16;
case Id::Green:
return Unsigned16;
case Id::Blue:
return Unsigned16;
case Id::Alpha:
return Unsigned16;
case Id::StartPulse:
return Signed32;
case Id::ReflectedPulse:
return Signed32;
case Id::Pitch:
return Float;
case Id::Roll:
return Float;
case Id::Pdop:
return Float;
case Id::PulseWidth:
return Float;
case Id::Deviation:
return Float;
case Id::PassiveSignal:
return Signed32;
case Id::BackgroundRadiation:
return Float;
case Id::PassiveX:
return Double;
case Id::PassiveY:
return Double;
case Id::PassiveZ:
return Double;
case Id::XVelocity:
return Double;
case Id::YVelocity:
return Double;
case Id::ZVelocity:
return Double;
case Id::PlatformHeading:
return Double;
case Id::WanderAngle:
return Double;
case Id::XBodyAccel:
return Double;
case Id::YBodyAccel:
return Double;
case Id::ZBodyAccel:
return Double;
case Id::XBodyAngRate:
return Double;
case Id::YBodyAngRate:
return Double;
case Id::ZBodyAngRate:
return Double;
case Id::Mark:
return Unsigned8;
case Id::Flag:
return Unsigned8;
case Id::EchoRange:
return Double;
case Id::ScanChannel:
return Unsigned8;
case Id::Infrared:
return Unsigned16;
case Id::Unknown:
throw pdal_error("No type for undefined dimension ID.");
}
throw pdal_error("No type for undefined dimension ID.");
}
/// Get a string reresentation of a datatype.
/// \param[in] dimtype Dimension type.
/// \return String representation of dimension type.
inline std::string interpretationName(Type::Enum dimtype)
{
switch (dimtype)
{
case Type::None:
return "unknown";
case Type::Signed8:
return "int8_t";
case Type::Signed16:
return "int16_t";
case Type::Signed32:
return "int32_t";
case Type::Signed64:
return "int64_t";
case Type::Unsigned8:
return "uint8_t";
case Type::Unsigned16:
return "uint16_t";
case Type::Unsigned32:
return "uint32_t";
case Type::Unsigned64:
return "uint64_t";
case Type::Float:
return "float";
case Type::Double:
return "double";
}
return "unknown";
}
/// Get the type corresponding to a type name.
/// \param[in] s Name of type.
/// \return Corresponding type enumeration value.
inline Type::Enum type(std::string s)
{
boost::to_lower(s);
if (s == "int8_t" || s == "int8")
return Type::Signed8;
if (s == "int16_t" || s == "int16")
return Type::Signed16;
if (s == "int32_t" || s == "int32")
return Type::Signed32;
if (s == "int64_t" || s == "int64")
return Type::Signed64;
if (s == "uint8_t" || s == "uint8")
return Type::Unsigned8;
if (s == "uint16_t" || s == "uint16")
return Type::Unsigned16;
if (s == "uint32_t" || s == "uint32")
return Type::Unsigned32;
if (s == "uint64_t" || s == "uint64")
return Type::Unsigned64;
if (s == "float")
return Type::Float;
if (s == "double")
return Type::Double;
throw pdal_error("Unrecognized dimension type");
}
} // namespace Dimension
struct DimType
{
DimType() : m_id(Dimension::Id::Unknown), m_type(Dimension::Type::None)
{}
DimType(Dimension::Id::Enum id, Dimension::Type::Enum type) :
m_id(id), m_type(type)
{}
DimType(Dimension::Id::Enum id, Dimension::Type::Enum type, XForm xform) :
m_id(id), m_type(type), m_xform(xform)
{}
Dimension::Id::Enum m_id;
Dimension::Type::Enum m_type;
XForm m_xform; // Only useful when converting to/from XML.
};
typedef std::vector<DimType> DimTypeList;
} // namespace pdal