谷歌地图空间参考系统

发布于 2024-08-10 06:04:10 字数 1131 浏览 3 评论 0原文

当您在地图搜索栏中输入纬度、经度时,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

倾听心声的旋律 2024-08-17 06:04:10

Google 使用基于 WGS84 的球面墨卡托投影。 OpenLayers 网站上有一个文章

Google uses a spherical mercator projection based on WGS84. There's a writeup on the OpenLayers website.

哑剧 2024-08-17 06:04:10

如果有什么用的话,我们发现 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文