<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<title></title>
Hi all,<br>
I' ve got two questions.<br>
First one: I've used the statement: <i>shp2pgsql shapefile table db | psql
-d db</i> on a file. Everything went well but then I get the message: <i>fread(494)
failed on DBF file.</i> The insert- statements continued and then a new message:
<i>ERROR: Unterminated quoted string</i> and the transaction stopped.<br>
Any ideas?<br>
<br>
Second: I' ve converted some Tiger line data into shapefiles using FME as
14-day free evaluation. But when I now try shp2pgsql the sql-files are looking
strange:<br>
<i>create table ArealLnadmarks (gid int4 , MODULE varchar, FILE varchar,
STATE int4, COUNTY int4, CENID varchar, POLYID int4, LAND int4);<br>
select AddGeometryColumn('usa','ArealLnadmarks','the_geom','-1','GEOMETRY',3);<br>
NULL,'TGR15003','15003','15','3','C2090','3610','2'</i>.<br>
Such files can't be written correct, right?<br>
<br>
I' ve also tried to use the -D flag with a different shapefile called ZipCodes.shp
but the result wasn't really better:<br>
<i>create table zc (gid int4 , MODULE varchar, TLID int4, RTSQ int4, FRADDL
varchar, TOADDL varchar, FRADDR varchar, TOADDR varchar, FRIADDL int4, TOIADDL
int4, FRIADDR int4, TOIADDR int4, ZIPL int4, ZIPR int4);<br>
select AddGeometryColumn('usa','zc','the_geom','-1','GEOMETRY',3);<br>
COPY "zc" from stdin;<br>
\N TGR15003 203324639 1 \N \N 87-927 87-931
1 1 96792\.</i><br>
<br>
So, is there something wrong with my shapefiles or the convertion-tool I've
used to write shp-files?<br>
Thanks in advance.<br>
Guido Staub<br>
</body>
</html>