Hi there,<br><br>I used shp2pgsql command to convert shape data to postgis. I met a problem when I tried to run the generated sql data file.<br><br>The command is as follows:<br><br>shp2pgsql -s 3005 "..\AbaloneClosures.shp" hm_vect.AbaloneClosures > D:\tmp\AbaloneClosures.sql | psql -h flash.HaidaMapping.local -d hm -U postgres -f D:\tmp\AbaloneClosures.sql<br>
<br>the message tells: "..current transaction is aborted..". However, when I copied the command to a query window to run, it was successful. It is a polygon feature class with less than 1000 rows. <br><br>When I ran <br>
psql -h flash.HaidaMapping.local -d hm -U postgres -f D:\tmp\AbaloneClosures.sql<br>the same problem occurred. <br><br>Any input would be appreciated.<br><br>Thanks a lot<br>John<br>