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

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

问题描述

我的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.

上述文件有什么问题?

我的应用程序有一个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(即,这是你站在地球中间向上或向下的位置)(垂直AKA)。

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) Polygon通常有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.

我的工作正常。

享受!
Heider

Enjoy! Heider

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

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