[Geojson] GeometryCollection not treated as a Geometry type

Stephen Battey Stephen.Battey at dottedeyes.com
Mon Oct 8 02:00:40 PDT 2007


I've modified my code to handle this change and it all makes sense apart
from an odd naming convention that's occurred in some of my constants.

   GeoJSONSingleGeometry.MULTI_POINT
   GeoJSONSingleGeometry.MULTI_LINE_STRING
   GeoJSONSingleGeometry.MULTI_POLYGON

At first it seemed a little strange to be referring to a multi
point/line/polygon as a 'single' geometry. But, although the names sound
contradictory, a single geometry can be made of multi points or
polygons.

Well, this got me wondering ... if we can define a geometry using a
geometry collection (i.e. multiple geometries), are MultiPoint,
MultiLineString and MultiPolygon redundant?

Steve


> -----Original Message-----
> From: geojson-bounces at lists.geojson.org 
> [mailto:geojson-bounces at lists.geojson.org] On Behalf Of 
> Christopher Schmidt
> Sent: 05 October 2007 22:51
> To: geojson at lists.geojson.org
> Subject: Re: [Geojson] GeometryCollection not treated as a 
> Geometry type
> 
> 
> On Fri, Oct 05, 2007 at 05:33:25PM -0400, Christopher Schmidt wrote:
> > Currently, GeometryCollection is not treated as a geometry 
> type. This 
> > is essentially an oversight -- up until now, the people primarily 
> > working on the spec didnt' really use GeometryCollection, 
> to the best 
> > of my knowledge.
> 
> After re-reading the spec, I realized that we kind of treated 
> GeometryCollection as a geometry. But not really. I had 
> bumped the version before that (thinking 'oh, people support 
> draft4 now, people like OpenLayers 2.5'), but I'm just going 
> to leave it at this point.
> 
> The change made to the spec is:
> 
> http://wiki.geojson.org/index.php?title=GeoJSON_draft_version_
5&diff=157&oldid=155

Feedback welcome. Going to go through the rest of the doc now and see if
it's unclear anywhere else.

Regards,
-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Geojson mailing list
Geojson at lists.geojson.org
http://lists.geojson.org/listinfo.cgi/geojson-geojson.org

Incoming e-mail scanned by Altman Technologies
Email has been scanned for viruses and spam by Altman Technologies


More information about the GeoJSON mailing list