From: Sandro Santilli Date: Fri, 16 Jan 2004 20:06:10 +0000 (+0000) Subject: Added FTLogical<->boolean mapping X-Git-Tag: pgis_0_8_2~132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d6564462fcd473d03bbc7dfcc36c130c0ab8921;p=postgis Added FTLogical<->boolean mapping git-svn-id: http://svn.osgeo.org/postgis/trunk@427 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql.c b/loader/shp2pgsql.c index 0b6f03a40..637193f67 100644 --- a/loader/shp2pgsql.c +++ b/loader/shp2pgsql.c @@ -12,6 +12,9 @@ * ********************************************************************** * $Log$ + * Revision 1.47 2004/01/16 20:06:10 strk + * Added FTLogical<->boolean mapping + * * Revision 1.46 2004/01/15 09:57:07 strk * field type array allocates num_fields * sizeof(int) instead of sizeof(char*) * @@ -553,6 +556,9 @@ Insert_attributes(DBFHandle hDBFHandle, int row) case FTDouble: sprintf(val, "%f", DBFReadDoubleAttribute(hDBFHandle, row, i)); break; + case FTLogical: + sprintf(val, "%s", DBFReadLogicalAttribute(hDBFHandle, row, i)); + break; default: fprintf(stderr, "Error: field %d has invalid or unknown field type (%d)\n", @@ -808,6 +814,8 @@ int main (int ARGC, char **ARGV){ }else{ printf ("float8"); } + }else if(type == FTLogical){ + printf ("boolean"); }else{ printf ("Invalid type in DBF file"); }