convert Latitude To Meters - Java java.lang

Java examples for java.lang:Math Convert

Description

convert Latitude To Meters

Demo Code


//package com.java2s;

public class Main {
    static public double convertLatToMeters(double lat) {
        return Math.log(Math
                .tan(((lat / 180.0 * Math.PI) + Math.PI / 2.0) / 2.0))
                * 20037508.342789244 / Math.PI;
    }//from w  w w .  j a v a2 s.co  m
}

Related Tutorials