[GeoJSON] Point as list of one point, or list of coords

Andrew Turner ajturner at highearthorbit.com
Wed Apr 11 06:25:04 PDT 2007


On 4/11/07, Allan Doyle <adoyle at eogeo.org> wrote:
> Good point. :)
>
> On Apr 11, 2007, at 09:07, Christopher Schmidt wrote:
>
> > Two different representations are possible for point:
> >
> >  [x,y]
> >
> >  [[x,y]]
> >
> People who edit geojson manually in vim might mess up?
>
>         Allan


Unfortunately, even if you do the 'better' [[]] there will no doubt be
implementations that don't get that right and use []. This is easy to
see in GeoRSS where there are lots of <geo:lon> or
xmlns:geo=".../wgs84_pos" (instead of ".../wgs84_pos#"). Simple
mistakes, but means you have to build in all kinds of case statements
to handle these slightly incorrect statements, or just ignore them and
have unhappy users.

But that's a digression - it shouldn't modify the spec, but just an
unhappy realism of standards v. requirement in implementation.

Andrew



More information about the GeoJSON mailing list