[GeoJSON] Point as list of one point, or list of coords
Allan Doyle
adoyle at eogeo.org
Wed Apr 11 06:13:52 PDT 2007
Good point. :)
On Apr 11, 2007, at 09:07, Christopher Schmidt wrote:
> Two different representations are possible for point:
>
> [x,y]
>
> [[x,y]]
>
> The former possibly makes more sense, but the latter means that any
> geometry type can be transformed like so:
>
> coords = " ".join(map(lambda x: ",".join(map(str, x)),
> geometry['coordinates']))
>
> Note that this also supports 3/4 d geometries.
>
> I'm strongly in favor of the latter, speaking as an implementor.
This is all about implementors. It's got enough worse-is-better
flavor to be a pretty convincing argument. Are there convincing
arguments against it?
People who edit geojson manually in vim might mess up?
Allan
--
Allan Doyle
+1.781.433.2695
adoyle at eogeo.org
More information about the GeoJSON
mailing list