< prev | next >

longitude < Attributes < Home

longitude

The longitude attribute is used in conjunction with the latitude attribute to specify a position on the Earth. Longitude values are floating point numbers specified in decimal degrees. Positive values indicate eastern longitudes, while negative values indicate western longitudes.

Supporting Tags

The longitude attribute is supported by the <centerPosition>, <extent>, <map>, and <origin> tags. Each tag may define a default value for the longitude attribute, but for most of them it is required.

Examples

<map latitude="35.3" longitude="-96.97">
  <geography>
    <origin latitude="34.14" longitude="-102"/>
    <extent latitude="37" longitude="-94.62"/>
  </geography>
</map>
         
<map>
  <rangeRings>
    <centerPosition latitude="34.81" longitude="-98.01"/>
  </rangeRings>
</map>

Notes

Latitudes and longitudes are specified in decimal degrees in WxML. Be sure not to confuse this format with degrees-minutes-seconds, which is often used to display latitudes and longitudes. While negative values are used to indicate southern latitudes and western longitudes, the software usually displays these as positive values with a direction indicator. The tables below show how longitude values specified in WxML appear when displayed in other formats.

WxML

DD.DD°

DDD°mm'ss"

-96.97

96.97° W

96° 58' 01" W

102.0

102° W

102° 00' 00" W

67.8

67.8° E

67° 47' 05" E

-58.75

58.75° W

58° 45' 00" E

Confidential. Copyright © 2002, Oklahoma Climatological Survey. All Rights Reserved.
Send questions or comments concerning this web page to
wolfie@ou.edu.