[postgis-users] Problem with WKB

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


Hi all!

I'm having problems parsing the WKB output.

At offset 92 there is a 6-byte number I cannot find in the WKB
documentation. Also, the LinearRing says it has 4C (76) points. However,
when I look through the WKB, there seem to be more than 700 points.

Any ideas?

01       = NDR                  // MultiPolygon
06       = wkbMultiPolygon
00000002 = num_wkbPolygons

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

    0000004C = numPoints        // LinearRing
    030000   = ???

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

I'm attaching the WKB output in full.

Thank you,
Lars
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wkb.txt
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20051102/3a3f7c51/attachment.txt>


More information about the postgis-users mailing list