[GeoJSON] AsJSON(geometry)
Chris Holmes
cholmes at openplans.org
Mon Mar 19 13:25:40 PDT 2007
David William Bitner wrote:
>
>
> >
> > { "id": "alesia",
> > "title": "Alesia",
> > "classname": "settlement",
> > "geometry": {
> > "type": "point",
> > "value": [47.535, 4.478, 0.0]
> > }
> > "srs": "EPSG:4326",
> > }
> >
> > instead of
> >
> > { "id": "alesia",
> > "title": "Alesia",
> > "classname": "settlement",
> > "geometryType": "point",
> > "spatialCoordinates": [[47.535, 4.478, 0.0]],
> > "srs": "EPSG:4326",
> > }
> >
> > ?
> >
> > Chris
> >
>
> I'm in favor of the above.
>
> Sean
>
> Should the SRS go in with the geometry as well?
>
> { "id": "alesia",
> "title": "Alesia",
> "classname": "settlement",
> "geometry": {
> "type": "point",
> "value": [47.535, 4.478, 0.0]
> "srs": "EPSG:4326",
> }
> }
I would think so. Though I do think it'd be nice if we didn't have to
include the srs with every geometry, since it's a lot of redundant
information, and there's a pretty good chance that with most collections
of features you're going to have the same srs.
I'm not sure how 'json' it is, but if possible I'd like to have
something like let the srs inherit from the collection, and then let the
individual geometry object over-ride if it chooses to. Another twist
could be to define a default 4326 for everything, and if geometries (or
collections if we like that) want to over-ride they can.
Though as a server side implementor I am happy to include it each time,
as that's what you have to do for GML, so I do it already.
Chris
> --
> ************************************
> David William Bitner !DSPAM:4005,45feed28282487785049143!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> geojson mailing list
> geojson at lists.geojson.org
> http://lists.geojson.org/listinfo.cgi/geojson-geojson.org
>
>
> !DSPAM:4005,45feed28282487785049143!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cholmes.vcf
Type: text/x-vcard
Size: 282 bytes
Desc: not available
URL: <http://lists.geojson.org/pipermail/geojson-geojson.org/attachments/20070319/2cddf5bc/attachment-0005.vcf>
More information about the GeoJSON
mailing list