<div dir="ltr"><div><div><div><div>Hi Adrian,<br>as far as I can remember there are two parameters in the table sde 'db_tune' that must be set to the PG_GEOMETRY type.  I remember having the same problem some times ago, due to the fact that I had set only one parameter to the right type.<br><br></div>Then, of course, you will have to delete your geometry type and re-import it.<br><br></div>Let us know if you sort it out.<br><br></div>regards<br><br></div>paolo<br><div><div><div><div><br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-15 21:23 GMT+01:00 Adrian Term <span dir="ltr"><<a href="mailto:adrian.term@gmail.com" target="_blank">adrian.term@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I have the following setup :</div><div>ArcGIS 10.2.2 for Desktop Advanced</div><div>ArcGIS 10.2.2 for Server</div><div>QGIS 2.6.1 Brighton</div><div>PostgreSQL 9.2.9-3</div><div>PostGIS 2.1</div><div><br></div><div>I managed to make them all hear each other following this instructions : <a href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002p000000t4000000" target="_blank">http://resources.arcgis.com/en/help/main/10.2/index.html#//002p000000t4000000</a></div><div>Data is loaded  from ArcGIS with the <span style="font-size:13px">"Import feature class (single)"</span><span style="font-size:13px">  with the "PG_Geometry" configuration keyword in Geodatabase Settings.</span></div><div>With ArcGIS I can connect, view, edit and save the data stored in the "esrified" PostgreSQL/PostGIS  database tables.</div><div><br></div><div>Unfortunately, when<span style="font-size:13px"> I try to do the same thing in QGIS i get an error message :</span></div><div><span style="font-size:13px">"Errors: ERROR: 1 feature(s) not added.</span></div><p style="font-size:13px;margin:0px"></p><p style="font-size:13px;margin:0px">Provider errors:</p><p style="font-size:13px;margin:0px">PostGIS error while adding features: ERROR: column "shape" is of type geometry but expression is of type st_geometry"</p><p style="font-size:13px;margin:0px">On the other hand, I tried to do the same thing with UDIG and everything works perfect.</p><p style="font-size:13px;margin:0px"><br></p><p style="font-size:13px;margin:0px">I assume that the issue in QGIS is something about what Birgit mentioned :</p><p style="font-size:13px;margin:0px">"<span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">If ArcGIS writes geometries into the PostgreSQL database it names the geometry column as "shape" with the datatype "geometry" </span></p><p style="font-size:13px;margin:0px"><br></p><p style="font-size:13px;margin:0px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">Any ideas ?</span></p><span class="HOEnZb"><font color="#888888"><p style="font-size:13px;margin:0px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">Adrian</span></p><p style="font-size:13px;margin:0px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif"><br></span></p><p style="font-size:13px;margin:0px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif"><br></span></p><p style="font-size:13px;margin:0px"><br></p><p style="font-size:13px;margin:0px"><br></p><p style="font-size:13px;margin:0px"><br></p><p style="font-size:13px;margin:0px"><br></p><div><br></div><div><br></div></font></span></div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>