Maximum number of points in a polygon?

67 views
Skip to first unread message

simon_a

unread,
Oct 10, 2006, 6:13:08 PM10/10/06
to KML Discussions
Hello,

I'm trying to work with the UK border data that Valery35 and PriceCollins posted a while back:
http://bbs.keyhole.com/ubb/showthreaded.php/Cat/0/Number/349365

PriceCollins used two linestrings instead of a polygon because:
Quote:

the larger string disappears from view when combined with the small string as a polygon


.

Although I've generated the polygon in a different way, I've got similar results, but I've also found that it's once I go past 65526 points that I don't see anything.

Is there a maximum number of points in a polygon/path?

Has anyone got a polygon to show up with more than 65526 points?

Attached is a Polygon with about 73000 points (that doesn't show up).

Cheers,

Simon.
635665-GreatBritain.kml

barryhunter

unread,
Oct 10, 2006, 6:40:16 PM10/10/06
to KML Discussions
Have to say that 65526 looks suspiciously close to 65,536 (or 2^16), which is one more than the the maximum number stored in a 2 byte (or 16 bit) unsigned integer*. So it looks like GE internally might use such a number to reference points, and hence can't cope with bigger polygons...

* or it could equally be a 17bit signed integer (range -65536 to 65535) but that's less likely

simon_a

unread,
Oct 11, 2006, 5:08:05 AM10/11/06
to KML Discussions
Hello,

Yes, that occured to me too (honestly, it did ) but I was surprised when I was short-changed by 9 or 10 co-ordinates. Maybe these are reserved for some kind of flags or control data (maybe there's a flag in there for future, bigger polygons!).

Cheers,

Simon.
Reply all
Reply to author
Forward
0 new messages