|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILasFile
Provides access to members of LasFile.
Method Summary | |
---|---|
double |
estimatePointCount(IGeometry pAOI)
Estimate point count. |
double |
estimatePointSpacing(boolean bUseStatistics)
Estimate point spacing. |
IEnvelope |
getExtent()
The XYZ extent of points in the LAS file. |
ILasHeaderInfo |
getHeaderInfo()
Get LAS file header information. |
String |
getName()
The (full) file name. |
ISpatialReference |
getNativeSpatialReference()
The spatial reference defined in the LAS file header. |
double |
getNumberOfPointRecords()
The number of points in the LAS file. |
double |
getNumberOfPointsByReturn(int returnNumber)
The number of points in the LAS file based on the specified LiDAR return number. |
int |
getPointDataFormat()
The record format for points in the LAS file |
double |
getSizeInBytes()
The LAS file's size in bytes. |
ISpatialReference |
getSpatialReference()
The spatial reference of the LAS file. |
ILasStatistics |
getStatistics()
Get statistics. |
void |
getVersion(int[] pMajor,
int[] pMinor)
The version of the LAS file. |
boolean |
isFileMissing()
Indicates if the LAS file is missing. |
boolean |
isFileValid()
Indicates if the LAS file exists and is valid. |
boolean |
isHasGpsTime()
Indicates GPS time is available. |
boolean |
isHasPrjFile()
Indicates if there is a corresponding PRJ file. |
boolean |
isHasRGB()
Indicates if RGB is availabe. |
boolean |
isHasStatistics()
Indicates if statistics is available. |
boolean |
isNeedsUpdateStatistics()
Indicates if update is necessary. |
boolean |
isStandardGpsTime()
Indicates if the GPS time is standard GPS Time. |
Method Detail |
---|
String getName() throws IOException, AutomationException
The full name of the las file including the path.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getVersion(int[] pMajor, int[] pMinor) throws IOException, AutomationException
Outputs the version of the las file to pMajor and pMinor. The version is based on the standard as defined in the LAS specification.
pMajor
- The pMajor (out: use single element array)pMinor
- The pMinor (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getPointDataFormat() throws IOException, AutomationException
The point record format used in the las file, as based on the LAS specification.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getNumberOfPointRecords() throws IOException, AutomationException
The total number of point records in the las file regardless of return type or classification.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getNumberOfPointsByReturn(int returnNumber) throws IOException, AutomationException
The number of points in the las file with the specified return.
returnNumber is the return for which you want to get a count. The valid range is 1-5.
returnNumber
- The returnNumber (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getSizeInBytes() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isHasRGB() throws IOException, AutomationException
Indicates whether the las file contains RGB values for all points.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isHasGpsTime() throws IOException, AutomationException
Indicates whether the las file contains GPS time stamps for all points.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isStandardGpsTime() throws IOException, AutomationException
Assumming the las file contains GPS time stamps (see ILasFile.HasGpsTime) a return value of FALSE means the values are in GPS weekly time. A return value of TRUE means standard GPS time (satellite GPS Time) minus 1 x 10 to the 9th (Adjusted Standard GPS Time). The offset moves the time back to near zero to improve floating point resolution.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnvelope getExtent() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISpatialReference getSpatialReference() throws IOException, AutomationException
The spatial reference used by ArcGIS for the LAS file. This may come from the LAS file itself, or, if present, a prj file that sits next to the LAS file. A NULL pointer is return if no spatial reference information exists. See also ILasFile.NativeSpatialReference and ILasFile.HasPrjFile.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISpatialReference getNativeSpatialReference() throws IOException, AutomationException
Returns the spatial reference as defined by the contents of the referenced LAS file. A NULL pointer is returned if no spatial reference is defined. Note, it's possible through the use of a prj file to define, or override, the spatial reference of a LAS file. The NativeSpatialReference only tells you what's in the LAS file, not what spatial reference ArcGIS is using for it. To determine that call ILasFile.SpatialReference.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isFileMissing() throws IOException, AutomationException
Returns TRUE if the referenced LAS file can't be found on disk.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isFileValid() throws IOException, AutomationException
Returns TRUE if the referenced file can be found on disk and a scan of its header indicates it's a valid LAS file.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isHasPrjFile() throws IOException, AutomationException
Returns TRUE if the referenced LAS file has a corrseponding prj file. This is an ArcGIS file, placed next to the LAS file, that uses the same base name as the LAS file but has the extension '.prj'. Prj files contain spatial reference information. If ArcGIS looks to a LAS file and finds a prj next to it, the spatial reference from the prj will take precedence over what's in the LAS file.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isHasStatistics() throws IOException, AutomationException
Indicates whether the las dataset has calculated statistics for the las file. Check ILasFile.NeedsUpdateStatistics to see if the statistics are current or outdated because of edits made to the las file.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isNeedsUpdateStatistics() throws IOException, AutomationException
NeedsUpdateStatistics returns TRUE if statistics have yet to be calculated for the las file or if the statistics are outdated due to edits made on the file. Whether or not the file has been edited is determined by two things: either the las dataset knows it made an edit because it was called to do it (via a ILasPointEdit method) or the las dataset has detected the timestamp of the file has changed relative to what it was when added to the las dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILasStatistics getStatistics() throws IOException, AutomationException
Returns the statistics for the las file. NULL is returned if statistics haven't been calculated. You can also check for statistics using ILasFile.HasStatistics.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILasHeaderInfo getHeaderInfo() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double estimatePointSpacing(boolean bUseStatistics) throws IOException, AutomationException
Returns the approximate horizontal post spacing of the points in the las file. The unit of the returned value is based on the XY coordinate system of the file.
bUseStatistics is used to specify which way to calculate the estimate. When set to FALSE a simple approximation is made using the total points in the las file against the XY extent declared in the header. This approach's accuracy is relative to how evenly distributed the points are over the entire extent. The more evenly distributed, the more accurate. When bUseStatistics is set to TRUE statistics are used for the estimate. This will generally be more accurate but requires that statistics have already been generated (see ILasDatasetEdit.CalculateFileStatistics and ILasDatasetEdit.CalculateStatistics) which requires a scan of the data. An error will result if this property is set to TRUE and statistics have not been made.
bUseStatistics
- The bUseStatistics (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double estimatePointCount(IGeometry pAOI) throws IOException, AutomationException
pAOI
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |