]> granicus.if.org Git - postgis/commitdiff
Applied patch by Lars Roessiger handling numerical values with a trailing decima
authorSandro Santilli <strk@keybit.net>
Fri, 21 Oct 2005 11:33:55 +0000 (11:33 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 21 Oct 2005 11:33:55 +0000 (11:33 +0000)
l dot

git-svn-id: http://svn.osgeo.org/postgis/trunk@1982 b70326c6-7e19-0410-871a-916f4a2858ee

CHANGES
loader/shp2pgsql.c

diff --git a/CHANGES b/CHANGES
index 28e1f693f66450f607d0313cc41a79b115e79a0c..8e0bcd7c278fb26f01f414c93dbd09333d4931ec 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -27,6 +27,7 @@ PostGIS 1.0.5CVS
        - Segfault fix in shp2pgsql (utf8 encoding)
        - Fixed computation of null values fraction in analyzer
        - Fixed return code of shp2pgsql
+       - Fixed handling of trailing dots in dbf numerical attributes
 
 PostGIS 1.0.4
 2005/09/09
index 4dccb94d0321c1318b8e303c25d18c9fc5c1896a..14cfc333ce71c3fa39b9d05e1144dd0e126ac2e6 100644 (file)
@@ -317,6 +317,7 @@ Insert_attributes(DBFHandle hDBFHandle, int row)
                }
               // pg_atoi() does not do this
               if ( val[0] == '\0' ) { val[0] = '0'; val[1] = '\0'; }
+              if ( val[strlen(val)-1] == '.' ) val[strlen(val)-1] = '\0';
                break;
             case FTString:
             case FTLogical:
@@ -1666,6 +1667,10 @@ utf8 (const char *fromcode, char *inputbuf)
 
 /**********************************************************************
  * $Log$
+ * Revision 1.101  2005/10/21 11:33:55  strk
+ * Applied patch by Lars Roessiger handling numerical values with a trailing decima
+ * l dot
+ *
  * Revision 1.100  2005/10/13 13:40:20  strk
  * Fixed return code from shp2pgsql
  *