[postgis-users] Problem with WKB

Lars Rößiger lars.roessiger at d33.net
Wed Nov 2 01:03:43 PST 2005


This looks strange to me, I fiddled around with the second Polygon. Now
when I compare the WKB of the two Polygons, there are differences, i.e.
the encoding in the first Polygon is written as "00000001", in the
second Polygon "01". Is there any reason for this?

01       = NDR
06       = wkbMultiPolygon
00000002 = num_wkbPolygons

  00000001 = NDR                // Polygon 1
  03       = wkbPolygon
  00000001 = numRings

    0000004C = numPoints
    030000   = ???

    9DB98784EFED2540
    C4793881E9BE4840
    9F0F858549EF2540
    676902A0E5BE4840
    37FC6EBA65EF2540
    9816F549EEBE4840
    ......


  01       = NDR                // Polygon 2
  03       = wkbPolygon
  00000001 = numRings

    0000001C = numPoints
    000000   = ???

    42BBF9FCE6F02540
    77BF0AF0DDB94840
    BCA13A6755F12540
    C0417BF5F1B94840
    B513CA671EF12540
    4B822678F9B94840
    ......

Regards,
Lars



More information about the postgis-users mailing list