I have a set of GPS points in decimal degrees for 120 samples from 13 sampling sites (data below are the centroids)
data.frame(x=c(122.4978, 122.1819, 113.7757, 123.0335, 113.0614, 116.8117, 113.6997, 118.8820, 116.8047, 114.0167, 115.0560, 118.6114, 113.3973), y=c(-16.90613, -17.89392, -23.10492, -16.57618, -25.63859, -20.56915, -25.76536, -19.02967, -19.79827, -21.91585, -21.62384, -20.28056, -26.03371))
I now need to calculate the shortest distance between each pair of points (in km). This part is clear and I've successfully reprojected points in a different project where all points were in the same UTM zone and then using gdistance::shortestPath
with a raster and transition matrix. These points here, however, span 3 UTM zones (49 - 51).
I'm unfortunately not very experienced in these matters so I'd appreciate if someone could point me towards a resource that, ideally, explains how to do a projection over multiple zones on a step by step basis. Or, if this is not the right approach, give me a hint on how to proceed.