def iter_data(self):
        """ Iterate over layer data

        Yields X, Y, GID tuples for each tile in the layer

        :return: Generator
        """
        for y, row in enumerate(self.data):
            for x, gid in enumerate(row):
                yield x, y, gid
Iterate over layer data

        Yields X, Y, GID tuples for each tile in the layer

        :return: Generator