android - 使用 GroundOverlays 时考虑地球的曲率

标签 android google-maps-android-api-2

我有一个 .tif 文件(卫星图像)和一个相应的 .tfw 文件。我已经成功地转换了从世界文件中提取的坐标 (lat/lng),并且我已经使用 Photoshop 将 .tif 文件转换为 .png 文件。使用它,我在谷歌地图中添加了一个地面叠加层。图像的左上角看起来不错,但是当我离开那个角时,我的卫星图像和谷歌的图像之间的差异越来越大。我知道这与地球是圆的而不是平的有关。我正在做的事情是否可行,或者我是否遗漏了一两步?

最佳答案

这只是需要验证的东西,但它可能会使覆盖层消失。来自:https://developers.google.com/maps/documentation/android/groundoverlay

Note: When the image is added to the map it will be converted to an image with sides that are powers of two. You can avoid this conversion by using an original image with dimensions that are powers of two — for example, 128x512 or 1024x1024.

发布您的覆盖代码也可能有帮助。

关于android - 使用 GroundOverlays 时考虑地球的曲率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24117821/

相关文章:

java - Android 谷歌 VrVideoView 带 RTSP 源码

java - 总小时数无法从 Android 插入 MySQL

android - ViewHolder ArrayIndexOutOfBoundsException : length=2; index=2

android - 我应该将 .idea/caches/build_file_checksums.ser 添加到 .gitignore 吗?

android - Bash ADB 使用变量调用应用程序

android - 在 Google Maps API v2 的屏幕上绘制大小不变的圆圈

android - 如何在android map api V2中为标记设置动画?

android - 在 Android 中使用 Directions API 显示多条路线

由于 V/GoogleSignatureVerifier : Signature not valid,Android 应用程序崩溃

java - 更改 Google 标题在 map 上的位置