{
"points":[
[x0,y0], [x1,y1], ..., [xn,yn]
],
"lines":[
[x0,y0, x1,y1, ..., xn,yn],
...
],
"polygons":[
[
[x0,y0, x1,y1, ..., xn,yn],
...
],
[
[x0,y0, x1,y1, ..., xn,yn],
...
],
...
],
"features":[
{
"points":[
[x0,y0], [x1,y1], ..., [xn,yn]
],
"lines":[
...
]
},
...
]
}Also an optional "crs" coordinate reference system can contain an EPSG code, ESRI WKT (Well Known Text) or a PROJ.4 projection string or all 3. If none is specified, the default is decimal degrees in the WGS84 datum. The coordinate reference system of the parent cascades down the to all children until a child specifies one.
"crs":{
"epsg":"4326",
"wkt":"COMPD_CS["OSGB36 / British National Grid...",
"proj4":"+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"
}Another useful item would be an optional "bounds" element that specifies the bounding envelope in the element's crs.
"bounds":[min_lon, min_lat, max_lon, max_lat]
Minimalistic and precise.

2 comments:
Hi Matt,
I'd encourage you to join and participate on the GeoJSON mailing list. There has been some further discussion there recently about the type parameter, and about using URIs with the CRS element.
http://lists.geojson.org/listinfo.cgi/geojson-geojson.org
Current "working" draft:
http://wiki.geojson.org/index.php?title=GeoJSON_draft_version_3
Jason
I don't like the optional CRS. WGS84 is not here to stay. There's a reason that there is a year in its name.
Spatial data makes NO sense what-so-ever without a CRS, just as much as a point doesn't make sense without a X and Y, and we should always force this.
Post a Comment