В R легко прочитать GeoTiff и извлечь значение GeoTiff в определенном месте с помощью terra пакет:
Код: Выделить всё
library(terra)
# Load GeoTiff
# * This is a map of the seabed depth off the west coast of Scotland
f dimensions : 264, 190, 1 (nrow, ncol, nlyr)
#> resolution : 100, 100 (x, y)
#> extent : 695492.1, 714492.1, 6246657, 6273057 (xmin, xmax, ymin, ymax)
#> coord. ref. : WGS 84 / UTM zone 29N (EPSG:32629)
#> source : dat_gebco.tif
#> name : map_value
#> min value : 0.1994156
#> max value : 201.8856354
# Extract value (depth) at (x, y)
# (Coordinates are in metres, matching GeoTiff)
terra::extract(r, cbind(707087.7, 6266045))
#> map_value
#> 1 191.285
*См. https://github.com/rspatial. /terra/blob/master/src/extract.cpp

Подробнее здесь: https://stackoverflow.com/questions/792 ... nates-in-c
Мобильная версия