<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
April 17, 2020</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
Greetings,</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
I have used the destPointRhumb function in the package geosphere to generate a set of geographic coordinates.</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
If I understand correctly, the returned coordinates were derived on a sphere with defined radius r=6378137.</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
My desire is to transform the destPointRhumb coordinates to WGS84.</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
I expected the transformation would result in slightly different coordinates on the WGS84 ellipsoid.</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
My transformation attempt, however, did not change the coordinates at all -- which puzzles me.</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
Can someone show me what I'm doing wrong, or misunderstanding?</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
Thank you in advance.</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
David Douglas</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<span style="font-family:"Courier New",monospace">###########################################################</span></div>
<div style="font-family:Arial,Helvetica,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<span style="font-family:"Courier New",monospace">require(tidyverse)</span><span><br>
</span>
<div><span style="font-family:"Courier New",monospace">require(sf)</span><br>
</div>
<div><span style="font-family:"Courier New",monospace">require(geosphere)</span><br>
</div>
<div><span style="font-family:"Courier New",monospace"># request 5 coordinates along a rhumb line, 3000 km apart spanning south of equator to northern Greenland...</span><br>
</div>
<div><span style="font-family:"Courier New",monospace">d <- (1:5 * 3000000)</span><br>
</div>
<div><span style="font-family:"Courier New",monospace">gs <- d %>% geosphere::destPointRhumb(p = c(-110,-45), b = 20, r = 6378137) %>% tbl_df()</span><br>
</div>
<div><span style="font-family:"Courier New",monospace"># apply CRS as sphere...</span><br>
</div>
<div><span style="font-family:"Courier New",monospace">geospherePoints <- gs %>%  st_as_sf(coords = c("lon", "lat"), crs = "+proj=longlat +ellps=sphere +no_defs")</span><br>
</div>
<div><span style="font-family:"Courier New",monospace">geospherePoints</span><br>
</div>
<div><span style="font-family:"Courier New",monospace"># transform coordinates to WGS84 spheroid...</span><br>
</div>
<div><span style="font-family:"Courier New",monospace">geospherePointsWGS84 <- geospherePoints %>% st_transform("+init=epsg:4326")</span><br>
</div>
<div><span style="font-family:"Courier New",monospace">geospherePointsWGS84</span><br>
</div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace"># Result: the two sets of coordinates are qualitatively identical...  why?</span><br>
</div>
<div><span style="font-family:"Courier New",monospace">geospherePointsWGS84 == geospherePoints</span><br>
</div>
<div>
<div style="margin:0px; font-size:10pt; font-family:Arial,Helvetica,sans-serif"><span style="font-family:"Courier New",monospace">###########################################################</span></div>
<br>
</div>
</div>
<div>
<div id="Signature">
<div></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-size:10pt">David C Douglas</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-size:10pt">USGS Alaska Science Center</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-size:10pt">250 Egan Drive</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-size:10pt">Juneau AK 99801</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-size:10pt">(907) 364-1576 office</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-size:10pt">ddouglas@usgs.gov</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
</div>
</div>
</body>
</html>