Skip to content
Prev 5413 / 29559 Next

convert point and map coordinates UTM to WSG

On Thu, 2 Apr 2009, Marc Mar? Dell'Olmo wrote:

            
In datum transformation, it is hard to be precise without an accurate set 
of transformation parameters. These may also vary across an area of 
interest:

y.wgs <- c(41.4036923115558, 41.38010926480547, 41.41148169051035,
  41.409534433320914)
x.wgs <- c(2.145810127258301, 2.1807003021240234, 2.2183799743652344,
  2.1170568466186523)
x.utm <- c(428727134, 431587743, 434639340, 426268557)
y.utm <- c(4584118048, 4581465377, 4584855001, 4584607449)
orig <- cbind(x.utm, y.utm)/1000
library(rgdal)
out <- spTransform(SP,
  CRS("+proj=utm ?+ellps=intl +zone=31 +towgs84=-84,-107,-120,0,0,0,0,0"))
for (i in 1:nrow(orig)) print(spDistsN1(coordinates(out)[i,,drop=FALSE],
  orig[i, ]))

is:

[1] 164.4001
[1] 156.7712
[1] 167.2330
[1] 44.72934

crds <- cbind(x.wgs, y.wgs)
for (i in 2:nrow(crds)) print(spDistsN1(crds[1:(i-1),,drop=FALSE],
   crds[i,], longlat=TRUE)*1000)

suggests that the points are not too far apart, under 10km, so I would not 
expect differences of this scale. How were the UTM projected and WGS 
geographical coordinates measured - I guess that the ED50 UTM coordinates 
are from a legacy/archive source (manually digitized map?) and the WGS 
geographical coordinates from field measured GPS?

Roger