[Geojson] Finishing the edits

Arnaud Diederen arnaud.diederen at erdas.com
Mon Jun 16 02:06:20 PDT 2008


Arnaud Diederen wrote:
>
> Hi Martin,
>
> Martin Daly wrote:
>>
>> 1. Closed LinearRings follows the Simple Features spec (as does the 
>> other geometry).
>>
>
> Ok,
>
>>  
>>
>> 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.
>>
>
> How about a "cardinality" field, holding the dimension? (i.e., 2 or 3)
>
>        A.
>
>>  
>>
>> 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.txt
>> http://zcologia.com/sgillies/hg/geojson-draft/file/tip/geojson-draft-6.html
>>  
>> (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 <mailto: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/38575709/attachment.htm>


More information about the GeoJSON mailing list