import java.util.HashMap;
import java.util.Map;
/**
* 地球坐标系 (WGS-84) 相互转火星坐标系 (GCJ-02) 的转换算法
*
* @author jxh
* @time 2013-5-16
*
*/
public class WGSTOGCJ02 {
private static double pi = 3.14159265358979324D;// 圆周率
private static double a = 6378245.0D;// WGS 长轴半径
private static double ee = 0.00669342162296594323D;// WGS 偏心率的平方
/**
* 中国坐标内
*
* @param lat
* @param lon
* @return
*/
public boolean outofChina(double lat, double lon) {
if (lon < 72.004 || lon > 137.8347)
return true;
if (lat < 0.8293 || lat > 55.8271)
return true;
return false;
}
public double transformLat(double x, double y) {
double ret = -100.0 + 2.0 * x &