This method closes the E3DLidar for writing and converts it to read-only, DIRECT_READ mode (see E3De::OpenLidar for details). After calling Save, the E3DLidar object is still available for accessing data by GetPointsInCircle, GetPointsInPolygon, GetPointsInRange, E3DLidar::GetPointsInRect, and E3DLidar::GetPointsInTile.
Note: You must call Save when you are finished writing data to the new lidar file, or the resulting E3DLidar object will be left in an incomplete state (you cannot retrieve data from it).
This method has been deprecated. Use ENVIPointCloud::Save instead.
Example
e = E3De(/HEADLESS)
file = FILEPATH('DataSample.las', ROOT_DIR=e.ROOT_DIR, $
SUBDIRECTORY = ['DataSample'])
lidar = e.OpenLidar(file, AUXILIARY_URI='C:\lidar\DataSample')
points = lidar.GetPointsInRect(593742.0d, 5289519.0d, 593800.0d, 5289650.0d, $
ALL_ATTRIBS=allAttribs)
File_Mkdir, 'C:\CreatedLasFiles'
writer = E3DLidar('C:\CreatedLasFiles\DataSampleSubset.las')
writer.WritePoints, points, ALL_ATTRIBS=allAttribs, ERROR=error
writer.Save,ERROR=error
e.Close
Syntax
E3DLidar.Save [, ERROR=variable]
Keywords
ERROR
Set this keyword to a named variable that will contain any error message issued during execution of this routine. If no error occurs, the ERROR variable will be set to a null string (''). If an error occurs and the routine is a function, then the function result will be undefined.
When this keyword is not set and an error occurs, ENVI returns to the caller and execution halts. In this case, the error message is contained within !ERROR_STATE and can be caught using IDL's CATCH routine. See IDL Help for more information on !ERROR_STATE and CATCH.
See Manage Errors for more information on error handling in ENVI programming.
Version History
3.2 |
Introduced |
ENVI 5.3 |
Obsolete |
See Also
E3DLidar, E3De::OpenLidar