pylas/lasreader.py
def _read_compressed_points_data(self, laszip_vlr, point_format):
        """ reads the compressed point record
        """
        offset_to_chunk_table = struct.unpack("<q", self.stream.read(8))[0]
        size_of_point_data = offset_to_chunk_table - self.stream.tell()

        if offset_to_chunk_table <= 0:
            logger.warning(
                "Strange offset to chunk table: {}, ignoring it..".format(
                    offset_to_chunk_table
                )
            )
            size_of_point_data = -1  # Read everything

        points = record.PackedPointRecord.from_compressed_buffer(
            self.stream.read(size_of_point_data),
            point_format,
            self.header.point_count,
            laszip_vlr,
        )
        return points
def _read_compressed_points_data(self, laszip_vlr, point_format):
        offset_to_chunk_table = struct.unpack("<q", self.stream.read(8))[0]
        size_of_point_data = offset_to_chunk_table - self.stream.tell()

        if offset_to_chunk_table <= 0:
            logger.warning(
                "Strange offset to chunk table: {}, ignoring it..".format(
                    offset_to_chunk_table
                )
            )
            size_of_point_data = -1  # Read everything

        points = record.PackedPointRecord.from_compressed_buffer(
            self.stream.read(size_of_point_data),
            point_format,
            self.header.point_count,
            laszip_vlr,
        )
        return points
def _read_compressed_points_data ( self , laszip_vlr , point_format ) : offset_to_chunk_table = struct . unpack ( "<q" , self . stream . read ( 8 ) ) [ 0 ] size_of_point_data = offset_to_chunk_table - self . stream . tell ( ) if offset_to_chunk_table <= 0 : logger . warning ( "Strange offset to chunk table: {}, ignoring it.." . format ( offset_to_chunk_table ) ) size_of_point_data = - 1 # Read everything points = record . PackedPointRecord . from_compressed_buffer ( self . stream . read ( size_of_point_data ) , point_format , self . header . point_count , laszip_vlr , ) return points
reads the compressed point record
reads the compressed point record