|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILasDatasetEdit
Provides access to members of LasDataset.
Method Summary | |
---|---|
void |
addFile(String fileName)
Adds a file to the dataset. |
void |
addFolder(String folderName,
String fileExtension,
boolean bRecursive,
IStringArray[] ppBadFiles)
Adds all the files in the specified a folder, and potentially subfolders, to the dataset. |
void |
addSurfaceConstraint(IFeatureClass pFeatureClass,
IField pHeightField,
IField pTagField,
int type)
Adds surface constraint (e.g., breaklines) to the dataset. |
void |
calculateFileStatistics(ITrackCancel pTrackCancel,
int index)
Calculate statistics of the specified file. |
void |
calculateStatistics(ITrackCancel pTrackCancel,
boolean bForce,
ILongArray[] ppBadFiles)
Calculate statistics of the entire dataset. |
void |
removeFile(int index)
Removes the specified file from the dataset. |
void |
removeFileByName(String fileName)
Removes the specified file from the dataset. |
void |
removeSurfaceConstraint(IFeatureClass pFeatureClass)
Removes the specified surface constraint from the dataset. |
void |
removeSurfaceConstraintByID(IUID pGuid)
Removes the specified surface constraint from the dataset. |
void |
save()
Saves the changes. |
void |
setSpatialReference(ISpatialReference pSpatialReference)
Sets spatial reference. |
void |
setUsesRelativePath(boolean rhs1)
Indicates if the dataset is saved with relative path. |
Method Detail |
---|
void save() throws IOException, AutomationException
Save will persist all edits to the current LasDataset. If you want to preserve the original LasDataset, use ILasDataset.SaveAs.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUsesRelativePath(boolean rhs1) throws IOException, AutomationException
If set to true, all the las files and surface constraints referenced by the las dataset will be stored using relative paths.
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSpatialReference(ISpatialReference pSpatialReference) throws IOException, AutomationException
Assign a spatial reference to the las dataset.
pSpatialReference
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addFile(String fileName) throws IOException, AutomationException
The file name must be the full path of the LAS file location on disk.
fileName
- The fileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addFolder(String folderName, String fileExtension, boolean bRecursive, IStringArray[] ppBadFiles) throws IOException, AutomationException
Use this method to add multiple LAS files at once.
folderName is the full path of the folder.
fileExtension is used to add files of a certain type. Use the extension ‘las’ to add LAS files. This is case-insensitive.
bRecursive, if set to True, would also include LAS files in sub folders.
ppBadFiles is a string array that is populated with the names of the las files that could not be added to the las dataset. That includes files that are corrupt or invalid.
folderName
- The folderName (in)fileExtension
- The fileExtension (in)bRecursive
- The bRecursive (in)ppBadFiles
- A reference to a com.esri.arcgis.system.IStringArray (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeFile(int index) throws IOException, AutomationException
Removes the reference to the LAS file at the specified index. Valid Index values range from 0 .. ILasDataset.FileCount-1.
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeFileByName(String fileName) throws IOException, AutomationException
The fileName string must be a full path or the relative path of the LAS file.
fileName
- The fileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addSurfaceConstraint(IFeatureClass pFeatureClass, IField pHeightField, IField pTagField, int type) throws IOException, AutomationException
This method allows the addition of feature classes as surface constraints. Breaklines and clip polygons can be added in the form of line and polygon feature classes.
pFeatureClass is the feature class to be added.
pHeightField is the field that indicates where the heights for the features come from. If the shape geometry is 3D, and that's what you want to use, pass the Shape field of the feature class. Otherwise, a numeric field can be used. If the heights for the features should be interpolated from the existing state of the surface, pass a NULL pointer ('Nothing' in VB) to indicate the features do not have Z values of their own.
pTagField is a numeric field used to assign tags to corresponding elements in the TIN. Tag values are signed long integers that are assigned to nodes, edges, or triangles. They have user defined meaning (e.g. node accuracy, land cover, etc.). If no tag values are to be used pass a NULL pointer ('Nothing' in VB).
Type indicates how the surface constraint is incorporated into the triangulation.
pFeatureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)pHeightField
- A reference to a com.esri.arcgis.geodatabase.IField (in)pTagField
- A reference to a com.esri.arcgis.geodatabase.IField (in)type
- A com.esri.arcgis.geodatabase.esriTinSurfaceType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeSurfaceConstraint(IFeatureClass pFeatureClass) throws IOException, AutomationException
Removes the surface constraint specified by the input feature class.
pFeatureClass is the input surface constraint to be removed. If the feature class is not available on disk anymore, consider using ILasDatasetEdit.RemoveSurfaceConstraintByID to remove the surface constraint from the las dataset.
pFeatureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeSurfaceConstraintByID(IUID pGuid) throws IOException, AutomationException
Removes the surface constraint specified by the input UID.
pGuid is the UID of the input surface constraint to be removed. This method is handy when the feature class is not available on disk anymore.
pGuid
- A reference to a com.esri.arcgis.system.IUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void calculateStatistics(ITrackCancel pTrackCancel, boolean bForce, ILongArray[] ppBadFiles) throws IOException, AutomationException
Computes the statistics for the las dataset.
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.
bForce, if set to false, statistics are computed only for the las files that have outdated or no statistics. Setting it true forces a re-compute of the statistics for all the las files.
ppBadFiles is the list of files for which the statistics computation has failed.
pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)bForce
- The bForce (in)ppBadFiles
- A reference to a com.esri.arcgis.system.ILongArray (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void calculateFileStatistics(ITrackCancel pTrackCancel, int index) throws IOException, AutomationException
Computes the statistics for the las file referenced by the specified index.
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.
index is the input index of the LAS file for which statistics need to be computed.
pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)index
- The index (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 |