Per convertire una tabella geometrica da MULTISURFACE a POLYGON è necessario prima creare una nuova tabella selezionando tutti i campi della tabella originaria con il comando:
=# CREATE TABLE nome_tabella_new AS SELECT id, nome_campo1, come_campo2, ….ST_CurveToLine(the_geom) AS the geom FROM nome_tabella_originaria;
nel nostro caso abbiamo ottenuto una tabella di tipo GEOMETRY, per cambiare in POLYGON (oppure MULTIPOLYGON):
=# ALTER TABLE nome_tabella_new ALTER COLUMN the_geom type geometry(MultiPolygon, 3003) using ST_Multi(the_geom);