Maps data

http://www.digitalglobe.com http://landsat.usgs.gov http://bhuvan.nrsc.gov.in/data/download/index.php http://www.satimagingcorp.com http://www.esa.int/Our_Activities/Observing_the_Earth http://www.nrsa.gov.in http://glcf.umd.edu/data/

Finding end GeoCoordinate from start GeoCoordinate, bearing and altitude

In case you are doing anything with Geo Coordinate-s sooner or later, you will need to find endpoint from start point, bearing and altitude…. so here it is … in C#: private static double Deg2rad(double deg){ return deg * Math.PI / 180.0; } private static double Rad2deg(double rad){ return rad * 180.0 / Math.PI; } […]

Distance between geopoints

In case you need to get the distance between two points on earth, you can use this: [code language=”csharp”] public const double r = 6371.0; // Radius of the earth in public static double DegreeToRadian(double angle) { return Math.PI * angle / 180.0; } public static double HaversineCalculation(double x1, double y1, double x2, double y2) […]

How to find a bearing in C#

One of the problems I faced multiple times is how to find a bearing from point 1 to point 2. Here is the code, returned value is in degrees, 0 degrees is north, 90 is east, 180 is south, 270 west. [code language=”csharp”] public static double DegreeBearing(System.Device.Location.GeoCoordinate pt1, System.Device.Location.GeoCoordinate pt2) { double lat1 = pt1.Latitude; […] 