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.


; Create a headless instance
; Open existing data
file = FILEPATH('DataSample.las', ROOT_DIR=e.ROOT_DIR, $
  SUBDIRECTORY = ['DataSample'])
lidar = e.OpenLidar(file, AUXILIARY_URI='C:\lidar\DataSample')
; Get the points to be written to file along with all point attributes
points = lidar.GetPointsInRect(593742.0d, 5289519.0d, 593800.0d, 5289650.0d, $
; Create the writer object
File_Mkdir, 'C:\CreatedLasFiles'
writer = E3DLidar('C:\CreatedLasFiles\DataSampleSubset.las')
; write points to the file (requires Administrative privileges for this location)
writer.WritePoints, points, ALL_ATTRIBS=allAttribs, ERROR=error
; Save the file
; Close any open lidar objects


E3DLidar.Save [, ERROR=variable]



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



ENVI 5.3 Obsolete

See Also

E3DLidar, E3De::OpenLidar