[Geojson] Finishing the edits
Martin Daly
Martin.Daly at cadcorp.com
Mon Jun 16 01:56:44 PDT 2008
1. Closed LinearRings follows the Simple Features spec (as does the
other geometry).
2. You need to be able to distinguish between, for example, a two-point
3D LineString (with xyz) and a three-point 2D LineString (with xy), both
of which have six ordinates.
M
From: geojson-bounces at lists.geojson.org
[mailto:geojson-bounces at lists.geojson.org] On Behalf Of Arnaud Diederen
Sent: 16 June 2008 09:54
To: geojson at lists.geojson.org
Subject: Re: [Geojson] Finishing the edits
Hello list,
I noticed the 1.0 spec is out, but I have a quick question.
I'm wondering if there's a particular reason for storing points data
into arrays of their own.
For example, a polygon with three points would be described as:
(by the way, why do linear rings have to be closed by a duplicate of the
first point, like in GML? Usually we know we're dealing with linear
rings, by the context (i.e., drawing a polygon rather than a linestring,
de-serializing a polygon and not a linestring, ...))
---
{ "type": "Polygon",
"coordinates": [
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 0.0] ]
]
}
---
rather than as follows:
---
{ "type": "Polygon",
"coordinates": [
[100.0, 0.0, 101.0, 0.0, 101.0, 1.0, 100.0, 0.0]
]
}
---
I believe the latter would be lighter for browsers to parse.
Of course the difference in speed would be unnoticeable for small
geometries, but when it comes to geometries of thousands of points, that
sort of optimization might be worth taking into consideration.
Still, congratulations for the 1.0 version!
Best,
Arnaud
Sean Gillies wrote:
I think we're done. If you all agree, let's talk about how to publish
these
http://zcologia.com/sgillies/hg/geojson-draft/file/tip/geojson-draft-6.t
xt
http://zcologia.com/sgillies/hg/geojson-draft/file/tip/geojson-draft-6.h
tml
(Perhaps with a CSS that isn't so blatantly copied from Dave Kuhlman's),
announcements, launch parties, etc.
Sean
_______________________________________________
Geojson mailing list
Geojson at lists.geojson.org
http://lists.geojson.org/listinfo.cgi/geojson-geojson.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geojson.org/pipermail/geojson-geojson.org/attachments/20080616/808c1f1e/attachment-0005.htm>
More information about the GeoJSON
mailing list