How to Convert XY Coordinates to Longitude and Latitude

How to Convert XY Coordinates to Longitude and Latitude
••• choness/iStock/GettyImages

The position of an object in XY coordinates is converted to longitude and latitude to get a better and clear idea about the spot of the object on the surface of the earth. The position of an object can be expressed in a number of formats like the Military Grid Reference System (MGRS), Universal Transverse Mercator (UTM) system, geographic coordinate system that is latitude and longitude, and Universal Polar Stereographic (UPS). The geographic coordinate system is commonly used as it is simple and easy to understand.

    Ensure that x, y and z values are specified in Cartesian coordinate system. The formula used is derived with the assumption that x, y and z values are defined in Cartesian coordinate system.

    Assign the values of the coordinates to x, y and z. Assume the value 6371 km to the variable R, which is the approximate radius of earth. This value is the scientifically derived value for radius of the earth.

    Calculate latitude and longitude using the formula: latitude = asin (z/R) and longitude = atan2 (y,x). In this formula, we have the values of x, y, z and R from step 2. Asin is arc sin, which is a mathematical function, and atan2 is a variation of the arc tangent function. The symbol * stands for multiplication. The above two formulas are derived from the following formulas: x = R * cos (latitude) * cos (longitude); y = R * cos (latitude) * sin (longitude); z = R * sin (latitude). In this formula, sin and cos are mathematical functions. Asin and atan value can be calculated using a trigonometry calculator. The value of atan2 can be calculated using the formula a atan2 (y, x) = 2 atan (y/√(x²+y²)-x). Here √ indicates square root, here square root of (x²+y²).


    • All the values should be in the same unit system. That is, if the trigonometric functions expect radians, then latitude and longitude should also be in radians.

Related Articles

How to Calculate UTM Convergence
What Is the Equator's Latitude?
How to Find the X Intercept of a Function
How to Find the Slope in a Circle
How to Convert Latitude Degrees to Decimal
How to Find the Vertices of an Ellipse
How to Convert Lux to Candela
How to Solve a Parabola
What Are the Units for Diameter?
Which Planet Moves the Slowest Along Its Orbital Path?
How to Calculate the Mass of a Solid
How to Find the Angle of a Curve
How to Calculate UTM Convergence
How to Convert Latitude & Longtitude Into Feet
How to Find Equations of Tangent Lines
How to Measure the Density of a Planet
How to Convert Map Grid Coordinates to Latitude & Longitude
How to Graph Parabolas on a TI-84 Calculator
How to Calculate Longitude from Right Ascension
What are Latitude & Longitude?

Dont Go!

We Have More Great Sciencing Articles!