From 647fccede9dae3c2ca8328ce6468d28b4eeffb6a Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 21 Oct 2005 11:33:55 +0000 Subject: [PATCH] Applied patch by Lars Roessiger handling numerical values with a trailing decima l dot git-svn-id: http://svn.osgeo.org/postgis/trunk@1982 b70326c6-7e19-0410-871a-916f4a2858ee --- CHANGES | 1 + loader/shp2pgsql.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGES b/CHANGES index 28e1f693f..8e0bcd7c2 100644 --- 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 diff --git a/loader/shp2pgsql.c b/loader/shp2pgsql.c index 4dccb94d0..14cfc333c 100644 --- a/loader/shp2pgsql.c +++ b/loader/shp2pgsql.c @@ -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 * -- 2.49.0