I am trying to query data from a GeoTIFF file by latitude and longitude. I have a dataset that has ~1 million data points in the U.S., and for each point, I need to query the CDL data by lat/lon programmatically in python.
I tried converting the GeoTIFF file into XYZ in QGIS, however, it was taking an extremely long time and failed.
After researching, it looks like GDAL might be an option. However, I am still unsure how to go about this.
I'm looking for the fastest way to query a large amount of data from the GeoTIFF file by lat/lon.
I am a complete beginner.