Jav*_*cky 6 google-maps spatial geotools
当您在地图搜索栏中输入纬度时使用的Google地图的空间参考系统是什么?
我发现它可能是WGS84的提示,但转换到该坐标系后,当我将坐标粘贴到谷歌地图搜索框时,没有任何显示.
我正在转换GDA MGA 56.
样品:
空间坐标系:
我正在使用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);
Run Code Online (Sandbox Code Playgroud)
我知道变换是不正确的,因为当我使用在线工具时,它给了我正确的坐标.http://www.environment.gov.au/cgi-bin/transform/mga2geo_gda.pl?east=336301&north=6253363&zone=56