谷歌地图空间参考系统
当您在地图搜索栏中输入纬度、经度时,Google 地图的空间参考系统使用什么?
我发现它可能是 WGS84 的提示,但在转换为该坐标系后,当我将坐标粘贴到谷歌地图搜索框中时,什么也没有显示。
我正在从 GDA MGA 56 进行转换。
示例:
- 输入 MGA56 坐标:336301, 6253363
- 预期 WGS86 坐标:-33.8473340793201, 151.230631835944
- 我得到:16834916.928327594 -4008321.10203181
86 空间坐标系:
- MGA56 的 EPSG:28356
- EPSG:900913 WGS86(谷歌地图)
I正在使用 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
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Google 使用基于 WGS84 的球面墨卡托投影。 OpenLayers 网站上有一个文章。
Google uses a spherical mercator projection based on WGS84. There's a writeup on the OpenLayers website.
如果有什么用的话,我们发现 GeoTools 正在更改 JVM,以便 lat & long 则相反(即 151,-33),这可能可以解释为什么您超出范围 {151 > > 90})这是一场噩梦
If it is any use, we found GeoTools were changing the JVM so that lat & long were the opposite way around (i.e. 151,-33), which might explain why you are getting out of bounds {151 > 90}) it was a nightmare to find