<a href="http://postgis.refractions.net/docs/ST_Force_2D.html">http://postgis.refractions.net/docs/ST_Force_2D.html</a><br><br>Fred<br><br><br><div class="gmail_quote">On Mon, Aug 29, 2011 at 7:51 PM, Aren Cambre <span dir="ltr"><<a href="mailto:aren@arencambre.com">aren@arencambre.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Did I stump everybody? :-)<div><br></div><div><font color="#888888">Aren</font><div><div></div>
<div class="h5"><br><div><br><div class="gmail_quote">On Sun, Aug 28, 2011 at 3:05 PM, Aren Cambre <span dir="ltr"><<a href="mailto:aren@arencambre.com" target="_blank">aren@arencambre.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>I was trying to copy a geometry data type from one table to another, but I got a <b>enforce_dims_the_geom</b> error.</div>


<div><br></div><div>I looked at the <b>geometry_columns</b> table, and turns out the source table has a 4-dimensional field and the destination table has a 2-dimensional field. Both fields have srid 3081, and they are both of type point.</div>



<div><br></div><div>The source table is an import from a SHP using shp2pgsql, so I guess the 4-dimensionality was created at import time? I don't know why it's 4 dimensions; all its points only exist in a 2-dimensional plane.</div>



<div><br></div><div>How can I remove the two extraneous dimensions while I copy this geometry object from one table to another?</div><div><br></div><font color="#888888"><div>Aren</div>
</font></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br>