为什么 itunecconnect 不接受我的 geoJSON 文件?

Why does itunecconnect not accept my geoJSON file?

我的文件是

{ "type": "MultiPolygon",
    "coordinates": [
                    [[[37.2732892, 55.9551567], [37.8780522, 55.9633486], [37.993164, 55.5512744], [37.1913337,55.5559836]]]
                    ]
}

这个网站显示比正常。 http://geojsonlint.com/ 但是,itunesconnect 不接受。请帮助

尝试发送 FeatureCollection:

{
  "type": "FeatureCollection",
  "features": [
    {
      "geometry": {
        "type": "MultiPolygon",
        "coordinates": [[[[37.2732892, 55.9551567], [37.8780522, 55.9633486], [37.993164, 55.5512744], [37.1913337, 55.5559836]]]]
      }
    }
  ]
}

多边形的起点和终点必须相同。参见 https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/LocationAwarenessPG/ProvidingDirections/ProvidingDirections.html

Per the GeoJSON specification, every child polygon must represent a closed region—that is, the first and last coordinate values must always be identical. Therefore, you must specify at least four points to define a triangular region, which is the simplest possible shape. Of course, you use more points to define more complex polygons.

和 geojson 规范 http://geojson.org/geojson-spec.html#linestring

A LinearRing is closed LineString with 4 or more positions. The first and last positions are equivalent (they represent equivalent points). Though a LinearRing is not explicitly represented as a GeoJSON geometry type, it is referred to in the Polygon geometry type definition.

试试这个:

{
   "type":"MultiPolygon",
   "coordinates":[
      [
         [
            [
               37.2732892,
               55.9551567
            ],
            [
               37.8780522,
               55.9633486
            ],
            [
               37.993164,
               55.5512744
            ],
            [
               37.1913337,
               55.5559836
            ],
            [
               37.2732892,
               55.9551567
            ]
         ]
      ]
   ]
}