<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for Talk Nerdy To Me - Java, C#, .Net</title>
	<link>http://www.gavaghan.org/blog</link>
	<description>Mike Gavaghan blogs on Java, C#, .Net, and the software industry</description>
	<pubDate>Wed, 10 Mar 2010 13:34:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>Comment on Java, GPS Receivers, and Geocaching: Vincenty’s Formula by Michael</title>
		<link>http://www.gavaghan.org/blog/2007/11/16/java-gps-receivers-and-geocaching-vincentys-formula/#comment-254</link>
		<author>Michael</author>
		<pubDate>Tue, 16 Feb 2010 20:04:25 +0000</pubDate>
		<guid>http://www.gavaghan.org/blog/2007/11/16/java-gps-receivers-and-geocaching-vincentys-formula/#comment-254</guid>
					<description>I tried the GeodeticCalculator for use with Nasa's open source WorldWindJava and after a quick set of tests that converted WorldWind Java's LatLon, Position and Angle to the correct input required by the GeodeticCalculator  the results were very accurate.</description>
		<content:encoded><![CDATA[<p>I tried the GeodeticCalculator for use with Nasa&#8217;s open source WorldWindJava and after a quick set of tests that converted WorldWind Java&#8217;s LatLon, Position and Angle to the correct input required by the GeodeticCalculator  the results were very accurate.</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on C#, GPS Receivers, and Geocaching: Vincenty&#8217;s Formula by Markus</title>
		<link>http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/#comment-247</link>
		<author>Markus</author>
		<pubDate>Thu, 21 Jan 2010 04:42:21 +0000</pubDate>
		<guid>http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/#comment-247</guid>
					<description>Hello Mike,

Thanks for sharing your information. I found it very intriguing, but too much for my simple question. I was wondering if you could shed some light on my problem.

I need to generate a bounding box of min and max latitude and longitude values so I can return addresses within a given radius.

I have two func's below to return the range I need to +/- to the lon lat coordinates to establish the bounding box. However I don't think the math is 100%

I am using the Haversine formula to generate my distance calculations and that seems to be working accurately. I investigated the Vincenty formula for distance as well but for my needs that was overkill.

My problem is that I would like my search results to be as accurate as Haversine in that the range I +/- to the lon lat coordinates takes into account the ellipsoidal curvature or the earth.

Ok, here are my func's...please note I am not a Math professor :o)

static Func GetLatitudeRange = (latitude, distance) =&#62; (180.0 / Math.PI) * (distance / EARTH_RADIUS_IN_KM);


static Func GetLongitudeRange = (longitude, latitude, distance) =&#62;
            (
                Math.Asin(
                    Math.Sin(distance / EARTH_RADIUS_IN_KM) / Math.Cos(latitude)
                    )
            );

Many Thanks,
Markus</description>
		<content:encoded><![CDATA[<p>Hello Mike,</p>
<p>Thanks for sharing your information. I found it very intriguing, but too much for my simple question. I was wondering if you could shed some light on my problem.</p>
<p>I need to generate a bounding box of min and max latitude and longitude values so I can return addresses within a given radius.</p>
<p>I have two func&#8217;s below to return the range I need to +/- to the lon lat coordinates to establish the bounding box. However I don&#8217;t think the math is 100%</p>
<p>I am using the Haversine formula to generate my distance calculations and that seems to be working accurately. I investigated the Vincenty formula for distance as well but for my needs that was overkill.</p>
<p>My problem is that I would like my search results to be as accurate as Haversine in that the range I +/- to the lon lat coordinates takes into account the ellipsoidal curvature or the earth.</p>
<p>Ok, here are my func&#8217;s&#8230;please note I am not a Math professor :o)</p>
<p>static Func GetLatitudeRange = (latitude, distance) =&gt; (180.0 / Math.PI) * (distance / EARTH_RADIUS_IN_KM);</p>
<p>static Func GetLongitudeRange = (longitude, latitude, distance) =&gt;<br />
            (<br />
                Math.Asin(<br />
                    Math.Sin(distance / EARTH_RADIUS_IN_KM) / Math.Cos(latitude)<br />
                    )<br />
            );</p>
<p>Many Thanks,<br />
Markus</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on C#, GPS Receivers, and Geocaching: Vincenty&#8217;s Formula by Daniel</title>
		<link>http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/#comment-246</link>
		<author>Daniel</author>
		<pubDate>Thu, 14 Jan 2010 10:38:03 +0000</pubDate>
		<guid>http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/#comment-246</guid>
					<description>Hi Mike,
Thanks for sharing this. It is a great help and timesaver for my little freeware project: Generation of airspace boundaries to be uploaded to an Variometer/GPS unit for Paraglider and Hanglider pilots.
Many thanks &#38; Regards from Switzerland
Daniel</description>
		<content:encoded><![CDATA[<p>Hi Mike,<br />
Thanks for sharing this. It is a great help and timesaver for my little freeware project: Generation of airspace boundaries to be uploaded to an Variometer/GPS unit for Paraglider and Hanglider pilots.<br />
Many thanks &amp; Regards from Switzerland<br />
Daniel</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on C#, GPS Receivers, and Geocaching: Vincenty&#8217;s Formula by ramesh</title>
		<link>http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/#comment-243</link>
		<author>ramesh</author>
		<pubDate>Wed, 11 Nov 2009 17:12:26 +0000</pubDate>
		<guid>http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/#comment-243</guid>
					<description>excellent stuff for beginners... Thanks a lot...</description>
		<content:encoded><![CDATA[<p>excellent stuff for beginners&#8230; Thanks a lot&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Java, GPS Receivers, and Geocaching: Vincenty’s Formula by Jacky</title>
		<link>http://www.gavaghan.org/blog/2007/11/16/java-gps-receivers-and-geocaching-vincentys-formula/#comment-234</link>
		<author>Jacky</author>
		<pubDate>Fri, 02 Oct 2009 07:10:10 +0000</pubDate>
		<guid>http://www.gavaghan.org/blog/2007/11/16/java-gps-receivers-and-geocaching-vincentys-formula/#comment-234</guid>
					<description>This API is awesome. Very useful for me. Can I include this API in my system? Does any license I need follow?</description>
		<content:encoded><![CDATA[<p>This API is awesome. Very useful for me. Can I include this API in my system? Does any license I need follow?</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Java, GPS Receivers, and Geocaching: Vincenty’s Formula by Peter</title>
		<link>http://www.gavaghan.org/blog/2007/11/16/java-gps-receivers-and-geocaching-vincentys-formula/#comment-231</link>
		<author>Peter</author>
		<pubDate>Thu, 20 Aug 2009 14:38:06 +0000</pubDate>
		<guid>http://www.gavaghan.org/blog/2007/11/16/java-gps-receivers-and-geocaching-vincentys-formula/#comment-231</guid>
					<description>Can I use this code to add a certain distance to a coordinate? So calculating a coordinate that is e.g. 100miles north of a given coordinate?</description>
		<content:encoded><![CDATA[<p>Can I use this code to add a certain distance to a coordinate? So calculating a coordinate that is e.g. 100miles north of a given coordinate?</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on NHibernate in a Medium Trust Environment by dev</title>
		<link>http://www.gavaghan.org/blog/2007/08/21/nhibernate-in-a-medium-trust-environment/#comment-230</link>
		<author>dev</author>
		<pubDate>Sat, 04 Jul 2009 04:08:59 +0000</pubDate>
		<guid>http://www.gavaghan.org/blog/2007/08/21/nhibernate-in-a-medium-trust-environment/#comment-230</guid>
					<description>To use NH in Medium Trust use Proxy Generators (of NHContrib)
http://nhforge.org/wikis/proxygenerators10/introduction.aspx</description>
		<content:encoded><![CDATA[<p>To use NH in Medium Trust use Proxy Generators (of NHContrib)<br />
<a href="http://nhforge.org/wikis/proxygenerators10/introduction.aspx" rel="nofollow">http://nhforge.org/wikis/proxygenerators10/introduction.aspx</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on C#, GPS Receivers, and Geocaching: Vincenty&#8217;s Formula by Stephen</title>
		<link>http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/#comment-228</link>
		<author>Stephen</author>
		<pubDate>Sat, 06 Jun 2009 17:50:25 +0000</pubDate>
		<guid>http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/#comment-228</guid>
					<description>Hi Mike - this looks like a great implementation, with excellent documentation. I'm looking to incorporate some inverse 3D geodetic calcs into a sunrise/sunset type app for photographers. Specifically, I need to be able to calculate the elevation angle (or altitude - I think there's a subtle difference depending on if you're an astronomer or a surveyor, but I don't know what it is...) between two points.

Taking your Pike's Peak example in the source code, if you were standing on the plane east of Pike's Peak and wanted to determine when the run might set behind it, I need the elevation angle between the two points.

My question is: is it possible to use your implementation to return the zenith distance from which elevation angle/altitude can be derived? I can see the ElevationChange, but am unsure how I'd get to an accurate angle from this.

Some examples of the problem I mean here: http://photo.net/nature-photography-forum/00SigL (about half way down the page) and here http://www.ngs.noaa.gov/cgi-bin/Inv_Fwd/invers3d.prl.

Many thanks for making this code available.

Stephen</description>
		<content:encoded><![CDATA[<p>Hi Mike - this looks like a great implementation, with excellent documentation. I&#8217;m looking to incorporate some inverse 3D geodetic calcs into a sunrise/sunset type app for photographers. Specifically, I need to be able to calculate the elevation angle (or altitude - I think there&#8217;s a subtle difference depending on if you&#8217;re an astronomer or a surveyor, but I don&#8217;t know what it is&#8230;) between two points.</p>
<p>Taking your Pike&#8217;s Peak example in the source code, if you were standing on the plane east of Pike&#8217;s Peak and wanted to determine when the run might set behind it, I need the elevation angle between the two points.</p>
<p>My question is: is it possible to use your implementation to return the zenith distance from which elevation angle/altitude can be derived? I can see the ElevationChange, but am unsure how I&#8217;d get to an accurate angle from this.</p>
<p>Some examples of the problem I mean here: <a href="http://photo.net/nature-photography-forum/00SigL" rel="nofollow">http://photo.net/nature-photography-forum/00SigL</a> (about half way down the page) and here <a href="http://www.ngs.noaa.gov/cgi-bin/Inv_Fwd/invers3d.prl." rel="nofollow">http://www.ngs.noaa.gov/cgi-bin/Inv_Fwd/invers3d.prl.</a></p>
<p>Many thanks for making this code available.</p>
<p>Stephen</p>
]]></content:encoded>
				</item>
</channel>
</rss>
