I have a gpkg file where I have the coordinates of the 1x1 km grid. See the below sample picture.
I am trying to extract the coordinates (latitude & longitude) of all the 1x1 grid cells from my gpkg file.
Any hints here?
It depends on what you are trying to achieve. If you are looking for the coordinates of each corner of every cell, that is different than looking for the central coordinate of each cell.
I am going to assume you meant the central coordinate of each cell. In which case, one possible solution is as follows:
Important point to remember, the gpkg layer must be in a geographic CRS (in degrees), not projected, or your resulting x and y coordinates will not be lat/lon but Northings and Eastings.