|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILasDataset
Provides access to members of LasDataset.
Method Summary | |
---|---|
ILasSurface |
createDynamicSurface()
Returns an implicit surface. |
void |
export(ITrackCancel pTrackCancel,
int fileIndex,
ILasPointFilter pFilter,
String newFileName,
ISpatialReference pNewSpatialReference,
boolean bProject,
boolean bDropVLRs)
Returns an implicit surface. |
IEnvelope |
getExtent()
The xyz extent of the dataset. |
ILasFile |
getFile(int index)
Returns the LAS file specified by the index. |
int |
getFileCount()
The number of LAS files contained in the dataset. |
String |
getName()
The name of the dataset. |
double |
getPointCount()
The number of points in the dataset. |
double |
getSizeInBytes()
The size of all the LAS files in bytes. |
ISpatialReference |
getSpatialReference()
The spatial reference of the dataset. |
ILasStatistics |
getStatistics()
Get statistics. |
void |
getSurfaceConstraint(int index,
IFeatureClass[] ppClass,
IField[] ppHeightField,
IField[] ppTagField,
int[] pType)
Gets surface constraint specified by the index. |
int |
getSurfaceConstraintCount()
The number of surface constraints contained in the dataset. |
void |
getSurfaceConstraintID(int index,
IUID[] ppGuid)
Gets surface constraint specified by the index. |
void |
getSurfaceConstraintIndexFromID(IUID pGuid,
int[] pIndex)
Gets surface constraint's index identified by the ID. |
void |
getSurfaceConstraintName(int index,
IFeatureClassName[] ppName,
String[] pHeightField,
String[] pTagField,
int[] pType)
Gets surface constraint specified by the index. |
void |
init(String name)
Opens the specified dataset. |
boolean |
isDirty()
Indicates if the dataset has been changed since last save. |
boolean |
isHasStatistics()
Indicates if statistics is available. |
boolean |
isNeedsUpdateStatistics()
Indicates if update is necessary. |
boolean |
isUsesRelativePath()
Indicates if the dataset is saved with relative path. |
void |
saveAs(String name,
boolean bOverWrite)
Saves the dataset to disk using the specified name. |
void |
setEmpty()
Empty the object. |
Method Detail |
---|
void setEmpty() throws IOException, AutomationException
Brings the LasDataset object to the state that exists immediately after it is co-created (i.e., with 'New'). It references no LasDataset on disk, has no las files, surface constraints etc.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void init(String name) throws IOException, AutomationException
Initializes the object by pointing to a las dataset on disk at the specified location.
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void saveAs(String name, boolean bOverWrite) throws IOException, AutomationException
The interface pointer will reference the newly saved las dataset after the call is made.
Name is the full path (including the name) of the location to which the las dataset is to be saved.
bOverWrite, if set to True, the output las dataset will be replaced if it already exists.
name
- The name (in)bOverWrite
- The bOverWrite (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getName() throws IOException, AutomationException
The name of the las dataset is the full path pointing to the location of the dataset on the file system.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUsesRelativePath() throws IOException, AutomationException
Indicates whether the las files in the las dataset are stored using relative paths.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isDirty() throws IOException, AutomationException
Indicates whether the las dataset has been changed since the last time it was saved. Changes to the las dataset's schema (adding or removing files, computing statistics etc.) result in the las dataset becoming dirty. When a las dataset is dirty, consider using ILasDatasetEdit.Save after all the edits to avoid losing the changes.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISpatialReference getSpatialReference() throws IOException, AutomationException
The spatial reference of the las dataset. Ideally, this should match the spatial reference of the LAS files within the las dataset. LAS files that have a different spatial reference will be projected on the fly to the spatial reference of the las dataset. LAS files with missing geo referencing information will inherit the spatial reference of the las dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnvelope getExtent() throws IOException, AutomationException
The extent of the las dataset represents the cumulative extent of all the LAS files participating in the las dataset. This can be thought of as the minimum bounding box for the LAS files in a given las dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getFileCount() throws IOException, AutomationException
The total number of LAS files referenced by the las dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILasFile getFile(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSurfaceConstraintCount() throws IOException, AutomationException
The total number of surface constraints referenced by the las dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getSurfaceConstraint(int index, IFeatureClass[] ppClass, IField[] ppHeightField, IField[] ppTagField, int[] pType) throws IOException, AutomationException
Returns the surface constraint specified by the index.
index is the input index.
ppClass is the feature class specified by the index.
ppHeightField is the field being used as the source of height value.
ppTagField is the field being used as the source of tag values.
pType indicates how the surface constraint is incorporated into the triangulation.
index
- The index (in)ppClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (out: use single element array)ppHeightField
- A reference to a com.esri.arcgis.geodatabase.IField (out: use single element array)ppTagField
- A reference to a com.esri.arcgis.geodatabase.IField (out: use single element array)pType
- A com.esri.arcgis.geodatabase.esriTinSurfaceType constant (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getSurfaceConstraintName(int index, IFeatureClassName[] ppName, String[] pHeightField, String[] pTagField, int[] pType) throws IOException, AutomationException
Returns the feature class name object of the surface constraint specified by the index.
index is the input index.
ppName is the feature class name of surface constraint specified by the index.
ppHeightField is the name of the field being used as the source of height value.
ppTagField is the name of the field being used as the source of tag values.
pType indicates how the surface constraint is incorporated into the triangulation.
index
- The index (in)ppName
- A reference to a com.esri.arcgis.geodatabase.IFeatureClassName (out: use single element array)pHeightField
- The pHeightField (out: use single element array)pTagField
- The pTagField (out: use single element array)pType
- A com.esri.arcgis.geodatabase.esriTinSurfaceType constant (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getSurfaceConstraintID(int index, IUID[] ppGuid) throws IOException, AutomationException
Returns the UID of the surface constraint specified by the index.
index is the input index.
ppGuid is the UID of the surface constraint.
index
- The index (in)ppGuid
- A reference to a com.esri.arcgis.system.IUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getSurfaceConstraintIndexFromID(IUID pGuid, int[] pIndex) throws IOException, AutomationException
Returns the index of the surface constraint specified by the input UID.
pGuid is the input UID of the surface constraint.
index is the index of the surface constraint.
pGuid
- A reference to a com.esri.arcgis.system.IUID (in)pIndex
- The pIndex (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getPointCount() throws IOException, AutomationException
Returns the number of points in the las dataset. This count includes the points that are flagged as 'withheld' (if any).
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getSizeInBytes() throws IOException, AutomationException
Represents the cumulative size in bytes of all the las files participating in the las dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isHasStatistics() throws IOException, AutomationException
Indicates if statistics are available for the las dataset. Use this property in conjunction with ILasDataset.NeedsUpdateStatistics to know whether the statistics available with the las dataset are up-to-date or not.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isNeedsUpdateStatistics() throws IOException, AutomationException
An update to statistics may be necessary if the class code values of points have been modified in the LAS files or if LAS files are added or removed from the las dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILasStatistics getStatistics() throws IOException, AutomationException
Returns the LasStatistics object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILasSurface createDynamicSurface() throws IOException, AutomationException
Returns an implicit surface from which TINs and rasters are derived.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void export(ITrackCancel pTrackCancel, int fileIndex, ILasPointFilter pFilter, String newFileName, ISpatialReference pNewSpatialReference, boolean bProject, boolean bDropVLRs) throws IOException, AutomationException
Export allows you to create a new LAS file with a subset of points that match a desired criteria. This method can also be used to rectify geo referencing errors in LAS files.
pTrackCancel is a reference to a cancel tracker object that can be used to monitor progress and/or cancel the process. This can be set to a NULL pointer ('Nothing' in VB) if desired.
FileIndex is the input index of the LAS file.
pFilter is point filter that allows you to select the desired points. If set to NULL, all the points in the input LAS file will be written to the output file.
newFileName is the name of the output LAS file.
pNewSpatialReference is the new spatial reference object.
bProject indicates whether the input point records are to be projected to the new spatial reference.
bDropVLRs indicates if the variable length records are written to the output las file or whether they are to be ignored.
pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)fileIndex
- The fileIndex (in)pFilter
- A reference to a com.esri.arcgis.geodatabaseextensions.ILasPointFilter (in)newFileName
- The newFileName (in)pNewSpatialReference
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)bProject
- The bProject (in)bDropVLRs
- The bDropVLRs (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 |