From 32609b54b56ae47dce0d68537e4d5cd4b188ff4c Mon Sep 17 00:00:00 2001 From: Jeff Lounsbury Date: Wed, 10 Sep 2003 22:40:11 +0000 Subject: [PATCH] changed it to make the field names in the dbf file capital letters git-svn-id: http://svn.osgeo.org/postgis/trunk@301 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/pgsql2shp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/loader/pgsql2shp.c b/loader/pgsql2shp.c index 8895768f3..90314d3ff 100644 --- a/loader/pgsql2shp.c +++ b/loader/pgsql2shp.c @@ -10,6 +10,9 @@ * ********************************************************************** * $Log$ + * Revision 1.21 2003/09/10 22:40:11 jeffloun + * changed it to make the field names in the dbf file capital letters + * * Revision 1.20 2003/09/10 21:36:04 jeffloun * fixed a bug in is_clockwise... * @@ -72,6 +75,8 @@ int main(int ARGC, char **ARGV){ int i,j,type,size,flds; int type_ary[256]; int OID,geovalue_field; + int z; + DBFHandle dbf; SHPHandle shp; @@ -258,6 +263,9 @@ int main(int ARGC, char **ARGV){ printf("field name %s is too long, must be less than 32 characters.\n",PQfname(res, i)); exit_nicely(conn); } + for(z=0; z < strlen(field_name); z++){ + field_name[z] = toupper(field_name[z]); + } for(j=0;j