<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hello list,<br>
<br>
I noticed the 1.0 spec is out, but I have a quick question.<br>
<br>
I'm wondering if there's a particular reason for storing points data
into arrays of their own.<br>
For example, a polygon with three points would be described as: <br>
<font color="#c0c0c0">(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, ...))<br>
</font><br>
---<br>
<pre class="literal-block">{ "type": "Polygon",
"coordinates": [
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0]<font color="#c0c0c0">, [100.0, 0.0]</font> ]
]
}
</pre>
---<br>
<br>
rather than as follows:<br>
<br>
---<br>
<pre class="literal-block">{ "type": "Polygon",
"coordinates": [
[100.0, 0.0, 101.0, 0.0, 101.0, 1.0<font color="#c0c0c0">, 100.0, 0.0</font>]
]
}</pre>
---<br>
<br>
I believe the latter would be lighter for browsers to parse. <br>
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.<br>
<br>
Still, congratulations for the 1.0 version!<br>
<br>
Best,<br>
Arnaud<br>
<br>
<br>
<br>
Sean Gillies wrote:
<blockquote cite="mid4834731D.5020504@frii.com" type="cite">
<pre wrap="">I think we're done. If you all agree, let's talk about how to publish these
<a class="moz-txt-link-freetext" href="http://zcologia.com/sgillies/hg/geojson-draft/file/tip/geojson-draft-6.txt">http://zcologia.com/sgillies/hg/geojson-draft/file/tip/geojson-draft-6.txt</a>
<a class="moz-txt-link-freetext" href="http://zcologia.com/sgillies/hg/geojson-draft/file/tip/geojson-draft-6.html">http://zcologia.com/sgillies/hg/geojson-draft/file/tip/geojson-draft-6.html</a>
(Perhaps with a CSS that isn't so blatantly copied from Dave Kuhlman's),
announcements, launch parties, etc.
Sean
_______________________________________________
Geojson mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geojson@lists.geojson.org">Geojson@lists.geojson.org</a>
<a class="moz-txt-link-freetext" href="http://lists.geojson.org/listinfo.cgi/geojson-geojson.org">http://lists.geojson.org/listinfo.cgi/geojson-geojson.org</a>
</pre>
</blockquote>
<br>
</body>
</html>