This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
thinkgeo.mapsuite.silverlightcore.decimaldegreeshelper [2015/09/21 03:19] admin |
thinkgeo.mapsuite.silverlightcore.decimaldegreeshelper [2017/03/16 21:59] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ThinkGeo.MapSuite.SilverlightCore.DecimalDegreesHelper ====== | ====== ThinkGeo.MapSuite.SilverlightCore.DecimalDegreesHelper ====== | ||
+ | |||
+ | {{section>upgrade_map_suite_to_10.0}} | ||
+ | |||
This class contains a static routine for converting between degree-minute-second measurement and decimal degree measurement. In essense, it is a routine for converting from a non-decimal degree unit to decimal degree unit distance. | This class contains a static routine for converting between degree-minute-second measurement and decimal degree measurement. In essense, it is a routine for converting from a non-decimal degree unit to decimal degree unit distance. | ||
===== Inheritance Hierarchy ===== | ===== Inheritance Hierarchy ===== | ||
Line 10: | Line 13: | ||
** {{wiki:PublicMethod.gif|}} ToString() ** | ** {{wiki:PublicMethod.gif|}} ToString() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 22: | Line 25: | ||
** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 38: | Line 41: | ||
** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 50: | Line 53: | ||
** {{wiki:PublicMethod.gif|}} GetType() ** | ** {{wiki:PublicMethod.gif|}} GetType() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 62: | Line 65: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsFromDecimalDegree(Double) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsFromDecimalDegree(Double) ** | ||
- | This method returns a degrees, minutes and seconds structure from a decimal degree value. | + | * //This method returns a degrees, minutes and seconds structure from a decimal degree value.// |
== Remarks == | == Remarks == | ||
- | The method allows you pass in a decimal degree number and return the degree, minute, second as variables passed in on the method call. | + | * //The method allows you pass in a decimal degree number and return the degree, minute, second as variables passed in on the method call.// |
== Return Value == | == Return Value == | ||
Line 78: | Line 81: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegree(Double) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegree(Double) ** | ||
- | This method returns a string representation in degrees, minutes and seconds from a decimal degree value. | + | * //This method returns a string representation in degrees, minutes and seconds from a decimal degree value.// |
== Remarks == | == Remarks == | ||
- | Example: If you enter 75.358 as the number of decimal degrees, the result would be 75 degrees, 21 minutes, 28 seconds. Thus, the return string would be 75?21' 28". | + | * //Example: If you enter 75.358 as the number of decimal degrees, the result would be 75 degrees, 21 minutes, 28 seconds. Thus, the return string would be 75?21' 28".// |
== Return Value == | == Return Value == | ||
Line 94: | Line 97: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegree(Double,Int32) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegree(Double,Int32) ** | ||
- | This method returns a string representation in degrees, minutes and seconds from a decimal degree value and a specified precision. | + | * //This method returns a string representation in degrees, minutes and seconds from a decimal degree value and a specified precision.// |
== Remarks == | == Remarks == | ||
- | Example: If you enter 75.358 as the number of decimal degree and 12 as decimals, the result would be 75 degrees, 21 minutes, 28.80000000015 seconds. Thus, the return string would be 75?21' 28.80000000015". | + | * //Example: If you enter 75.358 as the number of decimal degree and 12 as decimals, the result would be 75 degrees, 21 minutes, 28.80000000015 seconds. Thus, the return string would be 75?21' 28.80000000015".// |
== Return Value == | == Return Value == | ||
Line 114: | Line 117: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegreePoint(PointShape) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegreePoint(PointShape) ** | ||
- | This method returns a string representation in degrees, minutes and seconds from a decimal degree value. | + | * //This method returns a string representation in degrees, minutes and seconds from a decimal degree value.// |
== Remarks == | == Remarks == | ||
- | Passing in a point will return the point's location represented in degrees, minutes, and seconds. For example, if the point's location in decimal degrees is (75.358, 36.345), the actual returned string would be "75?21' 29''E 36?20' 42''N". | + | * //Passing in a point will return the point's location represented in degrees, minutes, and seconds. For example, if the point's location in decimal degrees is (75.358, 36.345), the actual returned string would be "75?21' 29''E 36?20' 42''N".// |
== Return Value == | == Return Value == | ||
Line 130: | Line 133: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegreePoint(PointShape,Int32) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegreePoint(PointShape,Int32) ** | ||
- | This method returns a string representation in degrees, minutes and seconds from a decimal degree value. | + | * //This method returns a string representation in degrees, minutes and seconds from a decimal degree value.// |
== Remarks == | == Remarks == | ||
- | None | + | * //None// |
== Return Value == | == Return Value == | ||
Line 150: | Line 153: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegreePoint(Feature,Int32) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegreePoint(Feature,Int32) ** | ||
- | This method returns a string representation in degrees, minutes and seconds from a decimal degree value. | + | * //This method returns a string representation in degrees, minutes and seconds from a decimal degree value.// |
== Remarks == | == Remarks == | ||
- | None | + | * //None// |
== Return Value == | == Return Value == | ||
Line 170: | Line 173: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegreePoint(Feature) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDegreesMinutesSecondsStringFromDecimalDegreePoint(Feature) ** | ||
- | This method returns a string representation in degrees, minutes and seconds from a decimal degree value. | + | * //This method returns a string representation in degrees, minutes and seconds from a decimal degree value.// |
== Remarks == | == Remarks == | ||
- | None | + | * //None// |
== Return Value == | == Return Value == | ||
Line 186: | Line 189: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDecimalDegreeFromDegreesMinutesSeconds(String) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDecimalDegreeFromDegreesMinutesSeconds(String) ** | ||
- | This method returns a decimal degree value based on a string containing degrees, minutes, and seconds. | + | * //This method returns a decimal degree value based on a string containing degrees, minutes, and seconds.// |
== Remarks == | == Remarks == | ||
- | If you pass in "75?21' 28''" as a string, then the result will be 75.35777777784. | + | * //If you pass in "75?21' 28''" as a string, then the result will be 75.35777777784.// |
== Return Value == | == Return Value == | ||
Line 202: | Line 205: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDecimalDegreeFromDegreesMinutesSeconds(DegreesMinutesSeconds) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDecimalDegreeFromDegreesMinutesSeconds(DegreesMinutesSeconds) ** | ||
- | This method returns a decimal degree value based on a degree, minute and second structure. | + | * //This method returns a decimal degree value based on a degree, minute and second structure.// |
== Remarks == | == Remarks == | ||
- | If you pass in 75, 21 and 28, the result passed back will be 75.2577777778. | + | * //If you pass in 75, 21 and 28, the result passed back will be 75.2577777778.// |
== Return Value == | == Return Value == | ||
Line 218: | Line 221: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDecimalDegreeFromDegreesMinutesSeconds(Int32,Int32,Double) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDecimalDegreeFromDegreesMinutesSeconds(Int32,Int32,Double) ** | ||
- | This method returns a decimal degree value based on a set of degrees, minutes, and seconds. | + | * //This method returns a decimal degree value based on a set of degrees, minutes, and seconds.// |
== Remarks == | == Remarks == | ||
- | If you pass in 75, 21 and 28, the result passed back will be 75.2577777778. | + | * //If you pass in 75, 21 and 28, the result passed back will be 75.2577777778.// |
== Return Value == | == Return Value == | ||
Line 242: | Line 245: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDistanceFromDecimalDegrees(PointShape,PointShape,DistanceUnit) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDistanceFromDecimalDegrees(PointShape,PointShape,DistanceUnit) ** | ||
- | This method returns the distance between two decimal degree points. | + | * //This method returns the distance between two decimal degree points.// |
== Remarks == | == Remarks == | ||
- | None | + | * //None// |
== Return Value == | == Return Value == | ||
Line 266: | Line 269: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDistanceFromDecimalDegrees(Feature,Feature,DistanceUnit) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDistanceFromDecimalDegrees(Feature,Feature,DistanceUnit) ** | ||
- | This method returns the distance between two decimal degree points. | + | * //This method returns the distance between two decimal degree points.// |
== Remarks == | == Remarks == | ||
- | None | + | * //None// |
== Return Value == | == Return Value == | ||
Line 290: | Line 293: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDistanceFromDecimalDegrees(Double,Double,Double,Double,DistanceUnit) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDistanceFromDecimalDegrees(Double,Double,Double,Double,DistanceUnit) ** | ||
- | This method returns the distance between two decimal degree points. | + | * //This method returns the distance between two decimal degree points.// |
== Remarks == | == Remarks == | ||
- | None | + | * //None// |
== Return Value == | == Return Value == | ||
Line 322: | Line 325: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLongitudeDifferenceFromDistance(Double,DistanceUnit,Double) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLongitudeDifferenceFromDistance(Double,DistanceUnit,Double) ** | ||
- | Calculate the amount of longitude change given a certain distance and latitude. | + | * //Calculate the amount of longitude change given a certain distance and latitude.// |
== Remarks == | == Remarks == | ||
- | None | + | * //None// |
== Return Value == | == Return Value == | ||
Line 346: | Line 349: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLatitudeDifferenceFromDistance(Double,DistanceUnit,Double) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLatitudeDifferenceFromDistance(Double,DistanceUnit,Double) ** | ||
- | Calculate the amount of longitude change given a certain distance and longitude. | + | * //Calculate the amount of longitude change given a certain distance and longitude.// |
== Remarks == | == Remarks == | ||
- | None | + | * //None// |
== Return Value == | == Return Value == | ||
Line 371: | Line 374: | ||
** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 383: | Line 386: | ||
** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 395: | Line 398: | ||
** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} dho=(Double,Double,Double,DistanceUnit,Double) ** | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} dho=(Double,Double,Double,DistanceUnit,Double) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 427: | Line 430: | ||
** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} dxo=(Double,Double,Double,DistanceUnit,Double) ** | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} dxo=(Double,Double,Double,DistanceUnit,Double) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 459: | Line 462: | ||
** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} eBo=(PointShape,PointShape,Int32) ** | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} eBo=(PointShape,PointShape,Int32) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 483: | Line 486: | ||
** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} eRo=(Double,Double,Double,Double,PointShape,DistanceUnit) ** | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} eRo=(Double,Double,Double,Double,PointShape,DistanceUnit) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 519: | Line 522: | ||
** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} eho=(Double,Double,Double,Double,PointShape) ** | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} eho=(Double,Double,Double,Double,PointShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 551: | Line 554: | ||
** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} exo=(Double,Double,DistanceUnit) ** | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} exo=(Double,Double,DistanceUnit) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 575: | Line 578: | ||
** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} fBo=(Double,DistanceUnit) ** | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} fBo=(Double,DistanceUnit) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == |