From: Sandro Santilli Date: Sun, 17 Oct 2004 13:25:44 +0000 (+0000) Subject: removed USE_WKB partially-used define X-Git-Tag: pgis_1_0_0RC1~258 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59c85e0348b29e2a29c0f26b6e1264d2c20bceaa;p=postgis removed USE_WKB partially-used define git-svn-id: http://svn.osgeo.org/postgis/trunk@1030 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql.c b/loader/shp2pgsql.c index 9a2faba35..70f7c13e5 100644 --- a/loader/shp2pgsql.c +++ b/loader/shp2pgsql.c @@ -29,8 +29,6 @@ #include #include "getopt.h" -#define USE_WKB 1 - #define POINTTYPE 1 #define LINETYPE 2 #define POLYGONTYPE 3 @@ -92,13 +90,13 @@ void InsertLineString(int id); int parse_cmdline(int ARGC, char **ARGV); void SetPgType(void); char *dump_ring(Ring *ring); -#ifdef USE_WKB + +// WKB static char getEndianByte(void); static void print_wkb_bytes(unsigned char* ptr, unsigned int cnt, size_t size); static void print_wkb_byte(unsigned char val); static void print_wkb_int(int val); static void print_wkb_double(double val); -#endif static char rcsid[] = "$Id$"; @@ -1239,7 +1237,7 @@ dump_ring(Ring *ring) return buf; } -#ifdef USE_WKB +//--------------- WKB handling static char outchr[]={"0123456789ABCDEF"}; @@ -1296,10 +1294,12 @@ print_wkb_bytes(unsigned char *ptr, unsigned int cnt, size_t size) //fprintf(stderr, "\nwkbbytes:%s\n", buf); printf("%s", buf); } -#endif // USE_WKB /********************************************************************** * $Log$ + * Revision 1.74 2004/10/17 13:25:44 strk + * removed USE_WKB partially-used define + * * Revision 1.73 2004/10/17 13:24:44 strk * HEXWKB polygon *