无法更新 .geojson 文件以在 App Store 上提交应用程序 [英] Cannot update .geojson file for app submission on App Store

查看:20
本文介绍了无法更新 .geojson 文件以在 App Store 上提交应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 GeoJSON 文件应该覆盖整个世界.这是 GeoJSON 文件:

My GeoJSON file is supposed to cover the entire world. Here is the GeoJSON file:

{ "type": "MultiPolygon",
    "coordinates": [
                    [[[-169.4,58.8], [-168.0,83.4], [188.4,83.3], [194.0,-72.8], [-166.6,-73.6], [-169.4,58.8]]]
                    ]
}

文件名是example.GeoJSON.

我在上传文件时不断收到以下错误:

I keep getting the following error when uploading the file:

您的路由应用覆盖文件无效.如需了解详情,请参阅开发者指南.

Your routing app coverage file is invalid. For more information see the Developer Guide.

上面的文件有什么问题?

What is wrong with the above file?

我的应用程序有一个 mapkit,可根据所选地点显示特定地点的注释.在应用程序中点击地图时,Apple Maps 会打开并显示从当前位置到该地点的路线.我真的还需要上传 .GeoJSON 文件吗?

My app has a mapkit that shows the annotation of a particular place depending on the place that is chosen. When tapping the map in the app, Apple Maps opens up and shows the directions to that place from the current position. Do I also actually need to upload the .GeoJSON file?

推荐答案

基于以下内容:

1) 纬度从 -90 变为 +90(即,这是您站在地球中间向上或向下的位置)(也称为垂直).

1) The Latitude goes from -90 into +90 (i.e. this is where you stand on the middle of the globe going either up or down) (AKA vertically).

2) 经度从 0 到 360(即站在你所在的地方,水平地绕地球一周.

2) The Longitude goes from 0 to 360 (i.e. standing where you are, and going around the globe in a circle horizontally.

3) 多边形通常有 4 个点,但是,在这种情况下,它将是 5 个,而第一个和最后一个点相同,表示一个封闭的多边形.

3) The Polygon usually has 4 points, however, in this case it would be 5 whereas the first and last points are the same to denote a closed-polygon.

4) 加入苹果的要求( "type": "MultiPolygon" ) 加上坐标,

4) Adding the apple requirements of ( "type": "MultiPolygon" ) plus coordinates,

5) 你最终会得到一个文件的以下内容:

5) You would end up with the following contents of a file:

{ "type": "MultiPolygon",
    "coordinates": [
                    [[
                       [-360.0000,-90.0000]
                      ,[-360.0000, 90.0000]
                      ,[-000.0000, 90.0000]
                      ,[-000.0000,-90.0000]
                      ,[-360.0000,-90.0000]
                    ]]
                    ]
}

因此,启动您的文本编辑器,然后复制并粘贴以上内容,将文件保存到 World.geojson 中,然后上传.

Therefore, start your text editor, and then copy and paste the above, save the file into World.geojson and then upload.

我的工作正常.

享受吧!海德

这篇关于无法更新 .geojson 文件以在 App Store 上提交应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆