Google地图空间参考系统 [英] Google maps spatial reference system
问题描述
我发现提示它可能是WGS84,但是,当您输入lat时,Google地图的空间参考系是什么意思?转换到该坐标系后,当我将坐标粘贴到Google地图搜索框时,什么都没有显示。
我正在从GDA MGA 56转换。
样本:
空间坐标系统:
- EPSG:28356 for MGA56
- EPSG:900913 for WGS86 )
我使用geotools进行转换:
CoordinateReferenceSystem crsMga56 = CRS.parseWKT(mga56);
CoordinateReferenceSystem crsGmaps = CRS.parseWKT(gmaps);
坐标坐标=新坐标(336301,6253363);
Point point = new GeometryFactory()。createPoint(coordinate);
MathTransform transform = CRS.findMathTransform(crsMga56,crsGmaps);
几何几何= JTS.transform(point,transform);
我知道转换是不正确的,因为当我使用在线工具时,它给了我正确的坐标。 http:// www.environment.gov.au/cgi-bin/transform/mga2geo_gda.pl?east=336301&north=6253363&zone=56
Google使用基于WGS84的球形墨卡托投影。在OpenLayers网站上有写作。
What is Google map's spatial reference system using when you enter a lat, long into the maps search bar?
I've found hints that it might be WGS84 but after converting to that coordinate system, nothing shows up when i paste the coordinates into the google maps search box.
I am converting from GDA MGA 56.
Sample:
- Input MGA56 coords: 336301, 6253363
- Expected WGS86 coords: -33.8473340793201, 151.230631835944
- I get: 16834916.928327594 -4008321.1020318186
Spatial coord systems:
- EPSG:28356 for MGA56
- EPSG:900913 for WGS86 (google maps)
I am using geotools to do the transform:
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);
I know the transform is not correct, as when i use an online tool it gives me the correct coords. http://www.environment.gov.au/cgi-bin/transform/mga2geo_gda.pl?east=336301&north=6253363&zone=56
Google uses a spherical mercator projection based on WGS84. There's a writeup on the OpenLayers website.
这篇关于Google地图空间参考系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!