2016-06-03 2 views
0

GeoJson 형식을 사용하는 국가의지도를 만들지 만 Name, Country Code 및 유용한 정보와 같은 추가 국가 정보를 어디에 둘 것인지 궁금합니다.여분의 GeoJson 속성을 넣을 곳

필자는 지형지 물에 대한 기능을 쉽게 수행 할 수 있지만 국가 속성은 어디에 둘 수 있는지 알고 있습니다.

이 us.json

{ 
    "type": "FeatureCollection", 
    "features": [ 
     { 
      "type": "Feature", 
      "properties": { 
       "REGION_ID": 1, 
       "REGION_NAME": "My First Region", 
      }, 
      "geometry": { 
       "type": "Polygon", 
       "coordinates": [ 
        [ 
         [1.83, 15.93] 
        ], 
        ... 
       ] 
      } 
     } 
     ... 
    ] 
} 
+0

도 참조 http://geojsonlint.com – Phrogz

답변

0

내가 Mapbox geojsonhint에이를 삽입하면, 그것은 오류를 보여줍니다 :

{ 
    "type": "FeatureCollection", 
    "properties": { 
     "name": "United states of America" 
    }, 
    "features": [ 
     { 
      "type": "Feature", 
      "properties": { 
       "REGION_ID": 1, 
       "REGION_NAME": "My First Region" 
      }, 
      "geometry": { 
       "type": "Polygon", 
       "coordinates": [ 
        [ 
         [1.83, 15.93], [1.83, 15.93], [1.83, 15.93], [1.83, 15.93] 
        ] 
       ] 
      } 
     } 

    ] 
}