pylas/lasreader.py
def _read_points(self, vlrs):
        """ private function to handle reading of the points record parts
        of the las file.

        the header is needed for the point format and number of points
        the vlrs are need to get the potential laszip vlr as well as the extra bytes vlr
        """
        try:
            extra_dims = vlrs.get("ExtraBytesVlr")[0].type_of_extra_dims()
        except IndexError:
            extra_dims = None

        point_format = PointFormat(self.header.point_format_id, extra_dims=extra_dims)
        if self.header.are_points_compressed:
            laszip_vlr = vlrs.pop(vlrs.index("LasZipVlr"))
            points = self._read_compressed_points_data(laszip_vlr, point_format)
        else:
            points = record.PackedPointRecord.from_stream(
                self.stream, point_format, self.header.point_count
            )
        return points
def _read_points(self, vlrs):
        try:
            extra_dims = vlrs.get("ExtraBytesVlr")[0].type_of_extra_dims()
        except IndexError:
            extra_dims = None

        point_format = PointFormat(self.header.point_format_id, extra_dims=extra_dims)
        if self.header.are_points_compressed:
            laszip_vlr = vlrs.pop(vlrs.index("LasZipVlr"))
            points = self._read_compressed_points_data(laszip_vlr, point_format)
        else:
            points = record.PackedPointRecord.from_stream(
                self.stream, point_format, self.header.point_count
            )
        return points
def _read_points ( self , vlrs ) : try : extra_dims = vlrs . get ( "ExtraBytesVlr" ) [ 0 ] . type_of_extra_dims ( ) except IndexError : extra_dims = None point_format = PointFormat ( self . header . point_format_id , extra_dims = extra_dims ) if self . header . are_points_compressed : laszip_vlr = vlrs . pop ( vlrs . index ( "LasZipVlr" ) ) points = self . _read_compressed_points_data ( laszip_vlr , point_format ) else : points = record . PackedPointRecord . from_stream ( self . stream , point_format , self . header . point_count ) return points
private function to handle reading of the points record parts
        of the las file.

        the header is needed for the point format and number of points
        the vlrs are need to get the potential laszip vlr as well as the extra bytes vlr
private function to handle reading of the points record parts of the las file .