Phil,<br><br>Try the same command with the ArcSDE layer name specified at the end for ogr2ogr.<br><br><div class="gmail_quote">On Thu, Sep 6, 2012 at 4:41 AM, Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz" target="_blank">p.scadden@gns.cri.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If I copy a set from sde to postgis with:<br>
<br>
ogr2ogr -f "PostgreSQL" PG:"host=myhost user=myuser dbname=mydb<br>
password=************** port=5432" -nln postgis_name<br>
SDE:SDE,5151,,*******,****,sde_name<br>
<br>
then the process works but then it comes with a message<br>
FAILED: layer aready exists and -append not specified, but reports that<br>
it is trying to copy a completely different layer from the one specified<br>
in SDE. It is a valid sde layer. If I put -overwrite switch in, then<br>
something even more curious happens. It appears to go through all the<br>
layers in sde and one by one replaces the postgis layer with each (I<br>
discovered by interrupting the process or looking at data in postgis).<br>
<br>
I am using GDAL from stable version of MS4W, with the sde dlls for<br>
arcSDE 9.3<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St,<br>
Private Bag 1930, Dunedin, New Zealand Ph <a href="tel:%2B64%203%204799663" value="+6434799663">+64 3 4799663</a>, fax <a href="tel:%2B64%203%20477%205232" value="+6434775232">+64 3 477 5232</a><br>
<br>
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>