<div dir="ltr">Olá,<div>- pode adicionar uma coluna geom_temp de type multipolygon</div><div>- update <span style="font-family:arial,sans-serif;font-size:13px">geoffreo</span><span style="font-family:arial,sans-serif;font-size:13px"> set geom_temp= st_multi(</span> <span style="font-size:13px;font-family:arial,sans-serif">thegeom_ffr)</span></div>
<div><span style="font-size:13px;font-family:arial,sans-serif">- drop </span><span style="font-family:arial,sans-serif;font-size:13px">thegeom_ffr</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">- rename geom_temp to </span><span style="font-family:arial,sans-serif;font-size:13px">thegeom_ffr</span></div>
<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">Abr.</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 23, 2014 at 5:44 PM, Pedro <span dir="ltr"><<a href="mailto:pedro.ferro@gmail.com" target="_blank">pedro.ferro@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Viva,<br>
<br>
Tenho uma coluna que está como poligono e preciso de alterá-la para<br>
multipoligono.<br>
Pensava que seria assim:<br>
/alter table geoffreo alter column "thegeom_ffreo" type<br>
geometry(MultiPolygon);/<br>
<br>
mas dá-me o erro:<br>
/ERROR: Geometry type (Polygon) does not match column type (MultiPolygon)/<br>
<br>
sabem como devo fazê-lo?<br>
<br>
obrigado,<br>
Pedro<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Postgis-alterar-coluna-de-polygon-para-multipolygon-tp5147362.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Postgis-alterar-coluna-de-polygon-para-multipolygon-tp5147362.html</a><br>
Sent from the QGIS-pt mailing list archive at Nabble.com.<br>
_______________________________________________<br>
QGIS-pt mailing list<br>
<a href="mailto:QGIS-pt@lists.osgeo.org">QGIS-pt@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/qgis-pt" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/qgis-pt</a><br>
</blockquote></div><br></div>