Log I/O
LasVersion Class Reference

Class representing the possible versions of the LAS standard. More...

Public Member Functions

string GetDescription ()
 Return the description of the version as it would appear in a parameter record of a LAS file. More...
 
int GetSequenceNumber ()
 Return the version sequence number which makes it possible to compare versions. More...
 
string GetVersion ()
 Return the version text of this version. More...
 
override string ToString ()
 

Static Public Attributes

static readonly LasVersion VERSION_1_2 = new LasVersion(1, "1.2", "CWLS LAS ASCII Standard - Version 1.2")
 LAS version 1.2. More...
 
static readonly LasVersion VERSION_2_0 = new LasVersion(2, "2.0", "CWLS LAS ASCII Standard - Version 2.0")
 LAS version 2.0. More...
 
static readonly LasVersion VERSION_3_0 = new LasVersion(3, "3.0", "CWLS LAS ASCII Standard - Version 3.0")
 LAS version 3.0. More...
 

Detailed Description

Class representing the possible versions of the LAS standard.

Author
Petroware AS

Member Function Documentation

string GetDescription ( )

Return the description of the version as it would appear in a parameter record of a LAS file.

Returns
Description of this version. Never null.
int GetSequenceNumber ( )

Return the version sequence number which makes it possible to compare versions.

The actual sequence numbers may be arbitrary, but a newer LAS version will always have a higher sequence number than an older one.

Example: To check that a certain version is later than 2.0:

    if (version.GetSequenceNumber() > LasVersion.VERSION_2_0.GetSequenceNumber())
      ...
  
Returns
Sequence number of this version.
string GetVersion ( )

Return the version text of this version.

Returns
Version text of this version. Never null.

Member Data Documentation

readonly LasVersion VERSION_1_2 = new LasVersion(1, "1.2", "CWLS LAS ASCII Standard - Version 1.2")
static

LAS version 1.2.

readonly LasVersion VERSION_2_0 = new LasVersion(2, "2.0", "CWLS LAS ASCII Standard - Version 2.0")
static

LAS version 2.0.

readonly LasVersion VERSION_3_0 = new LasVersion(3, "3.0", "CWLS LAS ASCII Standard - Version 3.0")
static

LAS version 3.0.


The documentation for this class was generated from the following file: