From: Sandro Santilli Date: Fri, 28 Nov 2003 11:28:03 +0000 (+0000) Subject: Some more changes, now useless since wkb.h is no more used (just to get in sync) X-Git-Tag: pgis_0_8_1~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70c498d774340c1028b8bdaa517bf98c795eea16;p=postgis Some more changes, now useless since wkb.h is no more used (just to get in sync) git-svn-id: http://svn.osgeo.org/postgis/trunk@396 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/wkb.h b/loader/wkb.h index 044970e61..9b6206fa9 100644 --- a/loader/wkb.h +++ b/loader/wkb.h @@ -7,8 +7,8 @@ */ #define WKB3DOFFSET 0x80000000 -typedef char byte; -typedef unsigned int uint32; +typedef unsigned char byte; +typedef unsigned long int uint32; typedef struct Point_t { double x; @@ -78,12 +78,13 @@ typedef struct WKBMultiPolygon_t { } WKBMultiPolygon; typedef struct WKBGeometryCollection_t { - byte byte_order; + byte byteOrder; uint32 wkbType; // 7 uint32 num_wkbGeometries; char wkbGeometries[1]; // WKBGeometry [num_wkbGeometries]; } WKBGeometryCollection; +#if 0 typedef struct WKBGeometry_t { union { WKBPoint point; @@ -95,4 +96,22 @@ typedef struct WKBGeometry_t { WKBMultiPolygon mpolygon; }; } WKBGeometry; +#endif + +typedef struct WKBGeometry_t { + byte byteOrder; + uint32 wkbType; +} WKBGeometry; + +/* Functions prototype */ +char getbyte(char *c); +void skipbyte(char **c); +char popbyte(char **c); +int popint(char **c); +int getint(char *c); +void skipint(char **c); +double popdouble(char **c); +double getdouble(char *c); +void skipdouble(char **c); +void dump_wkb(char *wkb);