GeoJSON - izudon/izudon.github.io GitHub Wiki
GeoJSON とは
Leaflet のチュートリアルで引用されてた RFC の一部が端的で分かり易かった。
GeoJSON is a format for encoding a variety of geographic data structures […]. A GeoJSON object may represent a region of space (a Geometry), a spatially bounded entity (a Feature), or a list of Features (a FeatureCollection). GeoJSON supports the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection. Features in GeoJSON contain a Geometry object and additional properties, and a FeatureCollection contains a list of Features.
(拙訳)
GeoJSON は 豊富な種類の地理的なデータ構造をコード化するための フォーマットです。
ひとつの GeoJSON オブジェクトは、
- 空間領域(Geometry といいます)
- 空間的に仕切られたエンティティ(Feature といいます)
- Featue の配列(FeatureCollection といいます)
のいずれかを表現することができます。
GeoJSON は以下のジオメトリタイプをサポートします。
- Point(地点)
- LineString(連続直線)
- Polygon(多角形)
- MultiPoint(地点の集合)
- MultiLineString(連続直線の集合)
- MultiPolygon(多角形の集合)
- GeometryCollection(空間領域のコレクション)
GeoJSON における Feature は
- Geometry オブジェクト
- 付加的なプロパティ
を抱えており、 FeatureCollection は Feature の配列を抱えています。