<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV>Your dbf file contains spaces (0x20) in the "microrelie" boolean and "macrorelie" boolean fields. The representation of NULL in boolean fields is a question mark (0x3f). Allowable characters in a boolean field are Y,y,N,n,T,t,F,f,?</DIV>
<DIV> </DIV>
<DIV>It looks like your dbf is broken.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Tom</DIV>
<DIV> </DIV>
<DIV><BR>>>> "Willy-Bas Loos" <willybas@gmail.com> 12/13/2007 6:15 AM >>><BR>here's the rest of the shapefile (still one record, attached). <BR><BR></DIV>
<DIV class=gmail_quote>On Dec 13, 2007 11:04 AM, Willy-Bas Loos <<A href="mailto:willybas@gmail.com">willybas@gmail.com</A>> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi,<BR><BR>I have a small problem wit shp2pgsql, it doesn't convert my colleague's shapefile correctly.<BR>I've attached the 1rec shapefile and the shp2pgsql result in this mail, hope that works.<BR><BR>I'm using this version: RCSID: $Id: shp2pgsql.c,v <A href="http://1.88.2.7" target=_blank>1.88.2.7</A> 2005/08/29 22:36:14 strk Exp $<BR>on windows XP.<BR><BR>The problem is in two of the boolean fields: "microrelie" boolean and "macrorelie" boolean. <BR>They are both created, but their values don't make it into the INSERT statement. They turn up as empty strings, which is illegal SQL.<BR>There are lots (37) of fields in the shapefile.<BR>12 other boolean fields are handled correctly. <BR>The "bad" fields are the 24th and the 25th field.<BR><BR>is this some bug?<BR><FONT color=#888888><BR>WBL<BR></FONT></BLOCKQUOTE></DIV><BR></BODY></HTML>