[GeoJSON] A first implementation

Paul Ramsey pramsey at refractions.net
Tue Mar 27 10:58:08 PDT 2007


The "coordinates" array here is interesting, in that it is a 
one-dimensional array, of ( x1, y1, x2, y2, x3, y3, ... ). Any thought 
to how (if) to handle higher dimensionality?  In the type string 
("MultiPolygonZ")?

On a similar note, any rules around case on the type strings? On the 
type strings in general?

P

Chris Holmes wrote:

> {
>   "features":[{
>      "id":"alaska.1",
>       "the_geom":{
>         "type":"MultiPolygon",
>         "members":[{
>            "type":"Polygon",
>            "exterior":{
>               "type":"LinearRing",
>               "coordinates":[-129.83,3.46,...,-95.47,21.51]
>            }
>         }]
>       },
>       "AREA":1759683.875,
>       "PERIMETER":6689.362,
>       "DESCRIPTION":"Alaska"
>    }]
> }
> 


-- 

   Paul Ramsey
   Refractions Research
   http://www.refractions.net
   pramsey at refractions.net
   Phone: 250-383-3022
   Cell: 250-885-0632



More information about the GeoJSON mailing list