<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I was afraid that this was just me
being stupid again.<br>
Thanks so much for the explanation!<br>
<br>
<br>
On 02/22/2013 07:57 PM, Martin Feuchtwanger wrote:<br>
</div>
<blockquote cite="mid:5127BF8D.5030401@shaw.ca" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Things behave as you'd expect going
north/south because meridians of longitude are great circles
(shortest paths on globe).<br>
However, when you go east/west, parallels of latitude and great
circles (shortest paths) are <b>not</b> the same. Parallels are
convenient lines representing the graticule and represent <i>orthodromes</i>
(lines of constant azimuth) but are not true great circles
(which, presumably, st_project is following).<br>
(FYI, if you were to follow an orthodrome in any other azimuth
but the four cardinal directions, you'd spiral towards a pole!)<br>
Spherical trigonometry's not always simple ;-)<br>
<pre class="moz-signature" cols="72">Martin Feuchtwanger <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:feumar@shaw.ca">feumar@shaw.ca</a> 604-254-0361
Vancouver, BC V5N 1J6
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://members.shaw.ca/geomatics.developer">http://members.shaw.ca/geomatics.developer</a>
</pre>
On 21/02/2013 12:15 AM, News and Such wrote:<br>
</div>
<blockquote cite="mid:5125D7BC.7010009@lavabit.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div class="post-text" itemprop="description"> Hello
postgis'ers,<br>
<br>
somehow I can't understand the results of ST_Project, but
maybe this problem is just me being stupid (again):<br>
I just want to project a point in North, East, South and West
direction.<br>
<br>
Note:<br>
I use geography-type here, but the results are the same for
geometry.<br>
I use a rather long distance, because I need it, at least in
one direction, for my application. Because of this I found the
"problem" in the first place.<br>
<br>
With the direction north, everything is as I expect it:<br>
<br>
<code>SELECT ST_AsText(ST_Project('POINT(-30
-0.5)'::geography, 1e7, radians(0))); <br>
st_astext ----------------------------- <br>
POINT(-30 89.4874128664049) </code><br>
<br>
But in the other directions, here for example East, I get
this:<br>
<br>
<code>SELECT ST_AsText(ST_Project('POINT(-30
-0.5)'::geography, 1e7, radians(90))); <br>
st_astext --------------------------------------------- <br>
POINT(59.8315233716443 0.00116689648502556) </code><br>
<br>
Shouldn't this be <code>POINT(59.8315233716443 -0.5)</code> ?
Why are both coordinates changing?<br>
<br>
This behaviour occurs in all directions save north. <br>
<br>
I'm new to the whole earth coordinate system-stuff so maybe I
missed something, but I thought that when one walks directly
west (or south) one would, by definition, not leave the
current longitude (or latitude)-line but only change the
other.<br>
<br>
Any help would be appreciated! <br>
Thank you.<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
postgis-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a>
</pre>
</blockquote>
<br>
<div style="display: block; text-transform: none; text-indent:
0px; letter-spacing: normal; line-height: normal; text-align:
left; white-space: normal; height: auto; visibility: visible;
border-bottom: 1px solid black; border-collapse: collapse;
width: 50em; font-size: 12px; color: black; font-family:
sans-serif; padding: 0px 0px 4px 0px; clear: both;
text-decoration: none; background: white; border-top: 1px solid
black; margin: 20px 2px 10px 2px; font-weight: normal;"> Your
personal email. Anytime, anywhere.<br>
Ridiculously affordable at $19.95. No contracts.<br>
<a moz-do-not-send="true" style="font-size: 12px; font-family:
sans-serif; color: blue; background: white; text-decoration:
underline; font-weight: normal;"
href="http://www.getpeek.com/lavabit.html">http://www.getpeek.com/lavabit.html</a>
</div>
</blockquote>
<br>
</body>
</html>