The following figure shows a polygon with one hole and
a total of eight vertices.Figure 1: A sample polygon
For this example, NumParts equals 2 and NumPoints equals
10. Note that the order of the points for the doughnut (hole) polygon
is reversed below.
The following table shows Polygon byte stream contents
Position
Field
Value
Type
Number
Byte order
Byte 0
Shape Type
5
Integer
1
Little endian
Byte 4
Box
Box
Double
4
Little endian
Byte 36
NumParts
NumParts
Integer
1
Little endian
Byte 40
NumPoints
NumPoints
Integer
1
Little endian
Byte 44
Parts
Parts
Integer
NumParts
Little endian
Byte X
Points
Points
Point
NumPoints
Little endian
Tip: X = 44 + (4 * NumParts)
Have feedback?
Google Analytics is used to store comments and ratings. To provide a comment or rating for a topic, click Accept All Cookies or Allow All in Cookie Preferences in the footer of this page.