Main Content

hasCRSData

Check if E57 file has CRS data

Since R2023a

    Description

    example

    flag = hasCRSData(e57Reader) returns a logical 1 (true) if the E57 file specified by the e57FileReader object contains coordinate reference system (CRS) data. Otherwise, it returns a logical 0 (false).

    Examples

    collapse all

    Download a ZIP file containing an E57 file, and then unzip the file.

    zipFile = matlab.internal.examples.downloadSupportFile("lidar","data/e57ParkingLot.zip");
    saveFolder = fileparts(zipFile);
    e57FileName = [saveFolder filesep 'parkingLot.e57'];
    if ~exist(e57FileName,"file")
        unzip(zipFile,saveFolder)
    end

    Create an e57FileReader object using the downloaded E57 file.

    e57Reader = e57FileReader(e57FileName);

    Check for CRS data in the E57 file by using the hasCRSData function.

    flag = hasCRSData(e57Reader);
    disp(flag) 
       0
    

    Input Arguments

    collapse all

    E57 file reader, specified as an e57FileReader object.

    Version History

    Introduced in R2023a