Class LasFileClass

Namespace
ESRI.ArcGIS.GeoDatabaseExtensions
Assembly
ESRI.Server.GeoDatabaseExtensions.dll
[ClassInterface(ClassInterfaceType.None)]
[Guid("767B20C5-40C4-4875-A3D8-D6DE321C62BF")]
public class LasFileClass : LasFile, IGeoDataset, ILasFile2, ILasFile
Inheritance
LasFileClass
Implements
Inherited Members

Explicit Interface Implementations

EstimatePointCount(IGeometry)

Estimate point count.

virtual double EstimatePointCount(IGeometry pAOI)

Parameters

pAOI IGeometry

Returns

double

EstimatePointSpacing(bool)

Estimate point spacing.

virtual double EstimatePointSpacing(bool bUseStatistics)

Parameters

bUseStatistics bool

Returns

double

Extent

The extent of the GeoDataset.

virtual IEnvelope Extent { get; }

Returns

IEnvelope

Remarks

The IGeoDataset::Extent property returns an envelope representing the maximum extent of data which has been stored in the dataset.

Consider the following scenario. A new feature class has features added to it. The IGeoDataset::Extent is then requested and an envelope is returned. The extents of the envelope returned are represented by the red box in the image below.

The red box represents the IGeoDataset extent

If a portion of the features were then deleted and the extent is again requested an envelope with the exact same extents as during the first request would be returned (see image below). This is because the deletion of features does not shrink the extent. However all additions of features outside the red box would increase the envelope returned to encompass the newly added features.

The red box represents the IGeoDataset extent after some of the features have been deleted

If you would like to update the IGeoDataset::Extent property to reflect the current features in your dataset please see IFeatureClassManage::UpdateExtent (also see IFeatureClassLoad). In the image below the extent has been updated and a new envelope is being returned.

The red box represents the IGeoDataset extent after it has been updated

ESRI's GroupLayer implements this property differently from most other layer coclasses. When you instantiate a new GroupLayer, this property will return a valid envelope with zero height and width. With most other newly instantiated layers (for example FeatureLayer, RasterLayer, TinLayer), this property initally returns Nothing.

 

GetHeaderInfo()

Get LAS file header information.

virtual ILasHeaderInfo GetHeaderInfo()

Returns

ILasHeaderInfo

GetNumberOfPointsByReturn(int)

The number of points in the LAS file based on the specified LiDAR return number.

virtual double GetNumberOfPointsByReturn(int ReturnNumber)

Parameters

ReturnNumber int

Returns

double

GetStatistics()

Get statistics.

virtual ILasStatistics GetStatistics()

Returns

ILasStatistics

GetVersion(out int, out int)

The version of the LAS file.

virtual void GetVersion(out int pMajor, out int pMinor)

Parameters

pMajor int
pMinor int

HasGpsTime

Indicates GPS time is available.

virtual bool HasGpsTime { get; }

Returns

bool

HasPrjFile

Indicates if there is a corresponding PRJ file.

virtual bool HasPrjFile { get; }

Returns

bool

HasRGB

Indicates if RGB is availabe.

virtual bool HasRGB { get; }

Returns

bool

HasStatistics

Indicates if statistics is available.

virtual bool HasStatistics { get; }

Returns

bool

ILasFile2_EstimatePointCount(IGeometry)

virtual double ILasFile2_EstimatePointCount(IGeometry pAOI)

Parameters

pAOI IGeometry

Returns

double

ILasFile2_EstimatePointSpacing(bool)

virtual double ILasFile2_EstimatePointSpacing(bool bUseStatistics)

Parameters

bUseStatistics bool

Returns

double

ILasFile2_Extent

virtual IEnvelope ILasFile2_Extent { get; }

Returns

IEnvelope

ILasFile2_GetHeaderInfo()

virtual ILasHeaderInfo ILasFile2_GetHeaderInfo()

Returns

ILasHeaderInfo

ILasFile2_GetNumberOfPointsByReturn(int)

virtual double ILasFile2_GetNumberOfPointsByReturn(int ReturnNumber)

Parameters

ReturnNumber int

Returns

double

ILasFile2_GetStatistics()

virtual ILasStatistics ILasFile2_GetStatistics()

Returns

ILasStatistics

ILasFile2_GetVersion(out int, out int)

virtual void ILasFile2_GetVersion(out int pMajor, out int pMinor)

Parameters

pMajor int
pMinor int

ILasFile2_HasGpsTime

virtual bool ILasFile2_HasGpsTime { get; }

Returns

bool

ILasFile2_HasPrjFile

virtual bool ILasFile2_HasPrjFile { get; }

Returns

bool

ILasFile2_HasRGB

virtual bool ILasFile2_HasRGB { get; }

Returns

bool

ILasFile2_HasStatistics

virtual bool ILasFile2_HasStatistics { get; }

Returns

bool

ILasFile2_IsFileMissing

virtual bool ILasFile2_IsFileMissing { get; }

Returns

bool

ILasFile2_IsFileValid

virtual bool ILasFile2_IsFileValid { get; }

Returns

bool

ILasFile2_IsStandardGpsTime

virtual bool ILasFile2_IsStandardGpsTime { get; }

Returns

bool

ILasFile2_Name

virtual string ILasFile2_Name { get; }

Returns

string

ILasFile2_NativeSpatialReference

virtual ISpatialReference ILasFile2_NativeSpatialReference { get; }

Returns

ISpatialReference

ILasFile2_NeedsUpdateStatistics

virtual bool ILasFile2_NeedsUpdateStatistics { get; }

Returns

bool

ILasFile2_NumberOfPointRecords

virtual double ILasFile2_NumberOfPointRecords { get; }

Returns

double

ILasFile2_PointDataFormat

virtual int ILasFile2_PointDataFormat { get; }

Returns

int

ILasFile2_SizeInBytes

virtual double ILasFile2_SizeInBytes { get; }

Returns

double

ILasFile2_SpatialReference

virtual ISpatialReference ILasFile2_SpatialReference { get; }

Returns

ISpatialReference

ILasFile_Extent

The XYZ extent of points in the LAS file.

virtual IEnvelope ILasFile_Extent { get; }

Returns

IEnvelope

ILasFile_SpatialReference

The spatial reference of the LAS file.

virtual ISpatialReference ILasFile_SpatialReference { get; }

Returns

ISpatialReference

IsFileMissing

Indicates if the LAS file is missing.

virtual bool IsFileMissing { get; }

Returns

bool

IsFileValid

Indicates if the LAS file exists and is valid.

virtual bool IsFileValid { get; }

Returns

bool

IsRearranged

Indicates if points has been spatially rearranged to iptimize data query.

virtual bool IsRearranged { get; }

Returns

bool

IsStandardGpsTime

Indicates if the GPS time is standard GPS Time.

virtual bool IsStandardGpsTime { get; }

Returns

bool

IsZlas

Indicates if the underline data file is a zLAS file.

virtual bool IsZlas { get; }

Returns

bool

Name

The (full) file name.

virtual string Name { get; }

Returns

string

NativeSpatialReference

The spatial reference defined in the LAS file header.

virtual ISpatialReference NativeSpatialReference { get; }

Returns

ISpatialReference

NeedsUpdateStatistics

Indicates if update is necessary.

virtual bool NeedsUpdateStatistics { get; }

Returns

bool

NumberOfPointRecords

The number of points in the LAS file.

virtual double NumberOfPointRecords { get; }

Returns

double

PointDataFormat

The record format for points in the LAS file

virtual int PointDataFormat { get; }

Returns

int

SizeInBytes

The LAS/zLAS file's size in bytes.

virtual double SizeInBytes { get; }

Returns

double

SpatialReference

The spatial reference of the GeoDataset.

virtual ISpatialReference SpatialReference { get; }

Returns

ISpatialReference

Remarks

This property is read only. For layers, when the first layer is added to ArcMap, its spatial reference is read by this property, and the map is set to this spatial reference.

Instances of the esriCarto.GroupLayer class will return null for this property, as a group layer can contain multiple datasets with different spatial references.

Modifications to a spatial reference returned by this property will not be persisted. To modify the spatial reference of a dataset, the IGeoDatasetSchemaEdit and IGeoDatasetSchemaEdit2 interfaces should be used.

UncompressedSizeInBytes

The LAS file's uncompressed size in bytes.

virtual double UncompressedSizeInBytes { get; }

Returns

double