[postgis-users] WKB4J

Dave Blasby dblasby at refractions.net
Mon Jul 29 11:32:30 PDT 2002


> enum wkbGeometryType {
> wkbPoint = 1,
> wkbLineString = 2,
> wkbPolygon = 3,
> wkbMultiPoint = 4,
> wkbMultiLineString = 5,
> wkbMultiPolygon = 6,
> wkbGeometryCollection = 7,
> 
> wkbPoint3d = 129,
> wkbLineString3d = 130,
> wkbPolygon3d = 131,
> wkbMultiPoint3d = 132,
> wkbMultiLineString3d = 133,
> wkbMultiPolygon3d = 134,
> wkbGeometryCollection3d = 135
> };

D'Oh - this is wrong.  I should have added 32768 (8000x) instead of 128
(80x).

 enum wkbGeometryType {
 wkbPoint = 1,
 wkbLineString = 2,
 wkbPolygon = 3,
 wkbMultiPoint = 4,
 wkbMultiLineString = 5,
 wkbMultiPolygon = 6,
 wkbGeometryCollection = 7,
 
 wkbPoint3d = 32769,
 wkbLineString3d = 32770,
 wkbPolygon3d = 32771,
 wkbMultiPoint3d = 32772,
 wkbMultiLineString3d = 32773,
 wkbMultiPolygon3d = 32774,
 wkbGeometryCollection3d = 32775
 };




More information about the postgis-users mailing list