ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
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.
GetDecimalDegreeFromDegreesMinutesSeconds
GetDecimalDegreeFromDegreesMinutesSeconds
GetDecimalDegreeFromDegreesMinutesSeconds
GetDegreesMinutesSecondsFromDecimalDegree
GetDegreesMinutesSecondsStringFromDecimalDegree
GetDegreesMinutesSecondsStringFromDecimalDegree
GetDegreesMinutesSecondsStringFromDecimalDegreePoint
GetDegreesMinutesSecondsStringFromDecimalDegreePoint
GetDegreesMinutesSecondsStringFromDecimalDegreePoint
GetDegreesMinutesSecondsStringFromDecimalDegreePoint
GetDegreesMinutesStringFromDecimalDegreePoint
GetDegreesMinutesStringFromDecimalDegreePoint
GetDegreesMinutesStringFromDecimalDegreePoint
GetDegreesMinutesStringFromDecimalDegreePoint
GetLatitudeDifferenceFromDistance
GetLongitudeDifferenceFromDistance
Convert the MGRS string to latitude and longitude
Convert the input latitude and longitude to MGRS string
N/A
Return Value
longitude
latitude
N/A
N/A
Return Value
This method returns a decimal degree value based on a set of degrees, minutes, and seconds.
If you pass in 75, 21 and 28, the result passed back will be 75.2577777778.
Return Value
degrees
minutes
seconds
This method returns a decimal degree value based on a degree, minute and second structure.
If you pass in 75, 21 and 28, the result passed back will be 75.2577777778.
Return Value
degreesMinutesSeconds
This method returns a decimal degree value based on a string containing degrees, minutes, and seconds.
If you pass in “75?21' 28” as a string, then the result will be 75.35777777784.
Return Value
* Return Type:Double
* Description:This method returns a decimal degree value based on a string containing degrees, minutes, and seconds.
==== Parameters ====
degreesMinutesSeconds
* Type:String
* Description:This parameter represents the degrees, minutes and seconds in a string.
Go Back
=== GetDegreesMinutesSecondsFromDecimalDegree(Double) ===
This method returns a degrees, minutes and seconds structure from a decimal degree value.
==== 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.
Return Value
* Return Type:DegreesMinutesSeconds
* Description:This method returns a degrees, minutes and seconds structure from a decimal degree value.
==== Parameters ====
decimalDegreesValue
* Type:Double
* Description:The decimal degree value you want to convert.
Go Back
=== GetDegreesMinutesSecondsStringFromDecimalDegree(Double) ===
This method returns a string representation in degrees, minutes and seconds from a decimal degree value.
==== 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“.
Return Value
* Return Type:String
* Description:This method returns a string representation in degrees, minutes and seconds from a decimal degree value.
==== Parameters ====
decimalDegreesValue
* Type:Double
* Description:The number of decimal degrees to convert.
Go Back
=== GetDegreesMinutesSecondsStringFromDecimalDegree(Double,Int32) ===
This method returns a string representation in degrees, minutes and seconds from a decimal degree value and a specified precision.
==== 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”.
Return Value
* Return Type:String
* Description:This method returns a string representation in degrees, minutes and seconds from a decimal degree value.
==== Parameters ====
decimalDegreesValue
* Type:Double
* Description:The number of decimal degree to convert.
decimals
* Type:Int32
* Description:The number of float decision for the second.
Go Back
=== GetDegreesMinutesSecondsStringFromDecimalDegreePoint(Feature) ===
This method returns a string representation in degrees, minutes and seconds from a decimal degree value.
==== Remarks ====
None
Return Value
* Return Type:String
* Description:This method returns a string representation in degrees, minutes and seconds from a decimal degree value.
==== Parameters ====
point
* Type:Feature
* Description:The feature whose decimal degrees to convert.
Go Back
=== GetDegreesMinutesSecondsStringFromDecimalDegreePoint(Feature,Int32) ===
This method returns a string representation in degrees, minutes and seconds from a decimal degree value.
==== Remarks ====
None
Return Value
* Return Type:String
* Description:This method returns a string representation in degrees, minutes and seconds from a decimal degree value.
==== Parameters ====
point
* Type:Feature
* Description:The feature whose decimal degrees to convert.
decimalPlaces
* Type:Int32
* Description:The number of decimal degree to convert.
Go Back
=== GetDegreesMinutesSecondsStringFromDecimalDegreePoint(PointShape,Int32) ===
This method returns a string representation in degrees, minutes and seconds from a decimal degree value.
==== Remarks ====
None
Return Value
* Return Type:String
* Description:This method returns a string representation in degrees, minutes and seconds from a decimal degree value.
==== Parameters ====
pointShape
* Type:PointShape
* Description:The point of decimal degree to convert.
decimals
* Type:Int32
* Description:The number of decimal degree to convert.
Go Back
=== GetDegreesMinutesSecondsStringFromDecimalDegreePoint(PointShape) ===
This method returns a string representation in degrees, minutes and seconds from a decimal degree value.
==== 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”.
Return Value
This method returns a string representation in degrees and minutes from a decimal degree point.
N/A
Return Value
pointShape
decimals
This method returns a string representation in degrees and minutes from a decimal degree point.
N/A
Return Value
This method returns a string representation in degrees and minutes from a decimal degree point.
N/A
Return Value
This method returns a string representation in degrees and minutes from a decimal degree point.
N/A
Return Value
point
decimals
This method returns the distance between two decimal degree points.
None
Return Value
fromPoint
toPoint
returningUnit
This method returns the distance between two decimal degree points.
None
Return Value
fromPointFeature
toPointFeature
returningUnit
This method returns the distance between two decimal degree points.
None
Return Value
fromLongitude
fromLatitude
toLongitude
toLatitude
returningUnit
N/A
N/A
Return Value
Calculate the amount of longitude change given a certain distance and longitude.
None
Return Value
distance
distanceUnit
Calculate the amount of longitude change given a certain distance and latitude.
None
Return Value
distance
distanceUnit
latitude
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
fromLongitude
fromLatitude
distance
distanceUnit
degree
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
fromPointX
fromPointY
toPointX
toPointY
pointShape
N/A
N/A
Return Value
fromLongitude
fromLatitude
distance
distanceUnit
degree
N/A
fromPoint
toPoint
count
N/A
N/A
Return Value
fromPointX
fromPointY
toPointX
toPointY
pointShape
lengthUnit
N/A
N/A
Return Value
degreeX
degreeY
distanceUnit
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value