31 m_projectIdGuidData1(0),
32 m_projectIdGuidData2(0),
33 m_projectIdGuidData3(0),
37 m_fileCreateionYear(0),
39 m_offsetToPointData(0),
40 m_numberOfVariableLengthRecords(0),
41 m_pointDataFormatId(0),
42 m_pointDataRecordLength(0),
43 m_legacyNumberOfPointRecords(0),
56 m_startOfWaveformDataPacket(0),
57 m_startOfExtendedVariableLengthRecords(0),
58 m_numberOfExtendedVariableLengthRecords(0),
59 m_numberOfPointRecords(0)
72 m_fileSourceId(hdr.m_fileSourceId),
73 m_globalEncoding(hdr.m_globalEncoding),
74 m_projectIdGuidData1(hdr.m_projectIdGuidData1),
75 m_projectIdGuidData2(hdr.m_projectIdGuidData2),
76 m_projectIdGuidData3(hdr.m_projectIdGuidData3),
77 m_versionMajor(hdr.m_versionMajor),
78 m_versionMinor(hdr.m_versionMinor),
79 m_fileCreationDay(hdr.m_fileCreationDay),
80 m_fileCreateionYear(hdr.m_fileCreateionYear),
81 m_headerSize(hdr.m_headerSize),
82 m_offsetToPointData(hdr.m_offsetToPointData),
83 m_numberOfVariableLengthRecords(hdr.m_numberOfVariableLengthRecords),
84 m_pointDataFormatId(hdr.m_pointDataFormatId),
85 m_pointDataRecordLength(hdr.m_pointDataRecordLength),
86 m_legacyNumberOfPointRecords(hdr.m_legacyNumberOfPointRecords),
87 m_xScaleFactor(hdr.m_xScaleFactor),
88 m_yScaleFactor(hdr.m_yScaleFactor),
89 m_zScaleFactor(hdr.m_zScaleFactor),
90 m_xOffset(hdr.m_xOffset),
91 m_yOffset(hdr.m_yOffset),
92 m_zOffset(hdr.m_zOffset),
99 m_startOfWaveformDataPacket(hdr.m_startOfWaveformDataPacket),
100 m_startOfExtendedVariableLengthRecords(hdr.m_startOfExtendedVariableLengthRecords),
101 m_numberOfExtendedVariableLengthRecords(hdr.m_numberOfExtendedVariableLengthRecords),
102 m_numberOfPointRecords(hdr.m_numberOfPointRecords)
172 if ( (SIG[0] ==
'L') && (SIG[1] ==
'A') &&
173 (SIG[2] ==
'S') && (SIG[3] ==
'F') )
208 in.read((
char*)&
m_maxX, 8);
209 in.read((
char*)&
m_minX, 8);
210 in.read((
char*)&
m_maxY, 8);
211 in.read((
char*)&
m_minY, 8);
212 in.read((
char*)&
m_maxZ, 8);
213 in.read((
char*)&
m_minZ, 8);
283 out.write((
char*)&
m_maxX, 8);
284 out.write((
char*)&
m_minX, 8);
285 out.write((
char*)&
m_maxY, 8);
286 out.write((
char*)&
m_minY, 8);
287 out.write((
char*)&
m_maxZ, 8);
288 out.write((
char*)&
m_minZ, 8);
320 return hdr.
print(out);
388 os <<
"las.number_of_points_return" << (i+1);
399 os <<
"las.number_of_points_return" << (i+1);
447 for (
int i=0; i<8; ++i)
466 for (
int i=0; i<32; ++i)
477 for (
int i=0; i<32; ++i)
ossim_uint32 getNumberOfVlrs() const
ossim_uint8 m_projectIdGuidData4[8]
std::ostream & print(std::ostream &out) const
print method.
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
ossim_uint16 m_globalEncoding
ossim_uint8 m_versionMajor
Represents serializable keyword/value map.
ossim_uint64 m_numberOfPointRecords
std::string getProjectIdGuid() const
void getKeywordlist(ossimKeywordlist &kwl) const
bool checkSignature(std::istream &in) const
Checks for LASF in first four bytes.
const ossim_float64 & getMaxX() const
std::ostream & operator<<(std::ostream &out, const ossimLasHdr &hdr)
const ossim_float64 & getScaleFactorY() const
ossim_uint32 m_numberOfExtendedVariableLengthRecords
ossim_uint16 m_fileCreationDay
OSSIM_DLL ossimByteOrder byteOrder()
const ossim_float64 & getScaleFactorZ() const
ossim_uint32 getOffsetToPointData() const
const ossim_float64 & getMinX() const
unsigned short ossim_uint16
std::string getGeneratingSoftware() const
void writeStream(std::ostream &out)
Writes header to stream.
ossim_uint16 m_projectIdGuidData3
bool getWaveforDataPacketsInternalBit() const
ossim_uint64 m_startOfWaveformDataPacket
const ossim_float64 & getOffsetX() const
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossim_uint8 m_versionMinor
const ossim_float64 & getOffsetZ() const
bool getGpsTimeTypeBit() const
bool versionGreaterThan(ossim_uint8 major, ossim_uint8 minor) const
Test version.
ossim_uint64 getNumberOfPoints() const
ossim_uint32 m_projectIdGuidData1
bool getWaveforDataPacketsExternalBit() const
void swap()
Performs a swap if system byte order is not little endian.
const ossim_float64 & getScaleFactorX() const
ossim_uint32 m_legacyNumberOfPointRecords
unsigned long long ossim_uint64
void readStream(std::istream &in)
Method to initialize from input stream.
unsigned int ossim_uint32
const ossim_float64 & getMaxY() const
const ossim_float64 & getOffsetY() const
const ossim_float64 & getMinZ() const
ossim_uint8 getPointDataFormatId() const
ossim_uint16 m_fileCreateionYear
const ossimLasHdr & operator=(const ossimLasHdr &hdr)
ossim_uint64 m_startOfExtendedVariableLengthRecords
char m_generatingSoftware[32]
ossim_uint32 m_numberOfVariableLengthRecords
char m_systemIndentifier[32]
std::basic_istream< char > istream
Base class for char input streams.
const ossim_float64 & getMaxZ() const
bool getReturnsSyntheticallyGeneratedBit() const
ossim_uint16 m_fileSourceId
ossim_uint64 m_numberOfPointsByReturn[15]
ossim_float64 m_yScaleFactor
ossim_float64 m_zScaleFactor
ossim_uint16 m_pointDataRecordLength
ossim_uint32 m_offsetToPointData
ossim_uint16 getHeaderSize() const
ossim_uint16 m_headerSize
ossim_uint8 m_pointDataFormatId
std::string getVersion() const
unsigned char ossim_uint8
ossim_uint16 m_projectIdGuidData2
ossim_uint32 m_legacyNumberOfPointsByReturn[5]
std::basic_ostream< char > ostream
Base class for char output streams.
const ossim_float64 & getMinY() const
ossim_float64 m_xScaleFactor
std::string getSystemIndentifier() const