/// <summary> /// 坐标转换 /// </summary> /// <param name="poiInfo"></param> /// <returns></returns> public bool convert(ref PoiInfo poiInfo) { soPoint point = new soPoint(); point.x = poiInfo.x; point.y = poiInfo.y; bool sec = convert(ref point); poiInfo.x = point.x; poiInfo.y = point.y; return sec; }
/// <summary> /// 坐标转换 /// </summary> /// <param name="point"></param> /// <returns></returns> public bool convert(ref soPoint point) { double x = point.x; double y = point.y; //国内电子地图数据都是偏移过得,这里将偏移坐标(GCJ02)转换成WGS84 // EvilTransform.GCJ02toWGS84(ref x, ref y); point.x = x; point.x = x; point.y -= Latitude_Of_Origin; //soPJTranslator目前不支持原点纬度参数,这里自己处理下 return pjTranslator.Convert(point); }