[Geojson] polygon point order

Martin Daly Martin.Daly at cadcorp.com
Mon Oct 15 06:41:35 PDT 2007


> Two possibilities mentioned so far:
> 
> A. "Law of the minimum" =
> > always take the smaller interpretation (the one < 180 degrees wide).
In
> > exchange for that maximum size interpretation, you can ignore
ordering,
> > and the rule works for any line, not just closed polygons, the way
> > clockwise/anti-clockwise does.
> 
> B. "Clockwise, west-to-east"
> 
> Simplicity seems to favor A.  Are there any cases where A would fail?
> (If a user really wants a 181-degree line, then maybe the client could
> insert a vertex mid-way.)

Or C. "Law of the spheroid"

Allow coordinates/angles <-180 and >180.

Or D. "Law of the jungle"

Do nothing.

I like D.  I'm queasy about being the first to come up with a rule to
follow.

M



More information about the GeoJSON mailing list