当您在地图搜索栏中输入纬度时,谷歌地图的空间参考系统是什么?
我发现它可能是 WGS84 的提示,但是在转换到该坐标系后,当我将坐标粘贴到谷歌地图搜索框中时,什么都没有显示。
我正在从 GDA MGA 56 转换。
样本:
- 输入 MGA56 坐标:336301、6253363
- 预期 WGS86 坐标:-33.8473340793201、151.230631835944
- 我得到:16834916.928327594 -4008321.1020318186
空间坐标系统:
- EPSG:MGA56 为 28356
- EPSG:WGS86 的 900913(谷歌地图)
我正在使用 geotools 进行转换:
CoordinateReferenceSystem crsMga56 = CRS.parseWKT(mga56);
CoordinateReferenceSystem crsGmaps = CRS.parseWKT(gmaps);
Coordinate coordinate = new Coordinate(336301, 6253363);
Point point = new GeometryFactory().createPoint(coordinate);
MathTransform transform = CRS.findMathTransform(crsMga56, crsGmaps);
Geometry geometry = JTS.transform(point, transform);
我知道转换不正确,因为当我使用在线工具时,它会给我正确的坐标。http://www.environment.gov.au/cgi-bin/transform/mga2geo_gda.pl?east=336301&north=6253363&zone=56