Method CalcLonDegreesAtLat
CalcLonDegreesAtLat(Double, Double)
Calculates the degrees longitude distance at latitude lat
to cover
a distance dist
.
Used to calculate a new expanded buffer distance to account for skewing effects for shapes that use the lat-lon space as a 2D plane instead of a sphere. The expanded buffer will be sure to cover the intended area, but the shape is still skewed and so it will cover a larger area. For latitude 0 (the equator) the result is the same buffer. At 60 (or -60) degrees, the result is twice the buffer, meaning that a shape at 60 degrees is twice as high as it is wide when projected onto a lat-lon plane even if in the real world it's equal all around.
If the result added to abs(lat
) is >= 90 degrees, then skewing is
so severe that the caller should consider tossing the shape and
substituting a spherical cap instead.
Declaration
public static double CalcLonDegreesAtLat(double lat, double dist)
Parameters
Type | Name | Description |
---|---|---|
System.Double | lat | latitude in degrees |
System.Double | dist | distance in degrees |
Returns
Type | Description |
---|---|
System.Double | longitudinal degrees (x delta) at input latitude that is >=
|