oops............here are the attachments<br><br><div class="gmail_quote">On Mon, Dec 15, 2008 at 9:58 AM, John Zhang <span dir="ltr"><<a href="mailto:johnzhang06@gmail.com">johnzhang06@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div> Hi Paul, <br><br>Thank you very much for the input and the hint on how to get the whole error message. <br>
Attached are the error message file and the generated script file for your reference. <br>
<br>The commands used are:<br><ul><li>shp2pgsql -s 3005 "..\AbaloneClosures.shp" hm_vect.AbaloneClosures2 >  D:\tmp\AbaloneClosures2.sql</li><li>psql -h flash.HaidaMapping.local -d hm -U  postgres -f D:\tmp\AbaloneClosures2.sql<br>

</li></ul>Based on the error message, the table "hm_vect"."abaloneclosures2" seemed created. However, it is not. <br> <br>Your input on the problem would be much appreciated!<br><br>Thanks<br>John<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Date: Sat, 13 Dec 2008 16:36:00 -0800<br>
From: "Paul Ramsey" <<a href="mailto:pramsey@cleverelephant.ca" target="_blank">pramsey@cleverelephant.ca</a>><br>
Subject: Re: [postgis-users] Problem loading shape data<br>
To: "PostGIS Users Discussion" <<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a>><br>
Message-ID:<br>
        <<a href="mailto:30fe546d0812131636v212853d8wa3422f29f4e142fc@mail.gmail.com" target="_blank">30fe546d0812131636v212853d8wa3422f29f4e142fc@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
You have to scroll up in the window until you can see what the<br>
*actual* error is... increase your command terminal scroll buffers to<br>
5000 then re-run and scroll up to the first error message.<br>
<br>
On Fri, Dec 12, 2008 at 3:17 PM, John Zhang <<a href="mailto:johnzhang06@gmail.com" target="_blank">johnzhang06@gmail.com</a>> wrote:<br>
>  Hi there,<br>
><br>
> I used shp2pgsql command to convert shape data to postgis. I met a problem<br>
> 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 ><br>
> D:\tmp\AbaloneClosures.sql | psql -h flash.HaidaMapping.local -d hm -U<br>
> postgres -f D:\tmp\AbaloneClosures.sql<br>
><br>
> the message tells: "..current transaction is aborted..". However, when I<br>
> copied the command to a query window to run, it was successful. It is a<br>
> polygon feature class with less than 1000 rows.<br>
><br>
> When I ran<br>
> psql -h flash.HaidaMapping.local -d hm -U postgres -f<br>
> D:\tmp\AbaloneClosures.sql<br>
> the same problem occurred.<br>
><br>
> Any input would be appreciated.<br>
><br>
> Thanks a lot<br>
> John<br>
></blockquote></div><br>
</blockquote></div><br>