Hi<div><br></div><div>if they are polygon's, you can turn then into multi</div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 14px; color: rgb(46, 46, 46); "><dt style="font-size: 10pt; color: rgb(33, 55, 128); ">

<span class="term" style="font-weight: bold; color: rgb(56, 72, 141); ">ST_Multi(geometry)</span></dt><dd><p style="font-size: 10pt; ">Returns the geometry as a MULTI* geometry. If the geometry is already a MULTI*, it is returned unchanged.</p>

</dd></span></div><div><br></div><div>SELECT ST_MULTI(wkb_geometry) FROM table;</div><div><br></div><div>See if your postgis version have that function.</div><div><br></div><div>best regards,</div><div><br clear="all">Luigi Castro Cardeles<br>


<br><br><div class="gmail_quote">2009/6/3 Richard Greenwood <span dir="ltr"><<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I am having trouble inserting geometries into a table. The geometry<br>
column has a constraint:<br>
   enforce_geotype_wkb_geometry CHECK (geometrytype(wkb_geometry) =<br>
'MULTIPOLYGON'::text<br>
      OR wkb_geometry IS NULL);<br>
<br>
I am attempting to insert what I assume are polygons generated by<br>
st_buffer() but they violate the constraint. If I pgsql2shp the<br>
polygons out I can insert them into the table, but that's pretty ugly.<br>
<br>
Thanks,<br>
<font color="#888888">--<br>
Richard Greenwood<br>
<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br>
<a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a><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>
</font></blockquote></div><br></div>