That works only if the multipolygon contains one polygon as
documented.
spatialite> select
AsText(CastToPolygon(MultipolygonFromText('MULTIPOLYGON(((0 1, 1 2, 1
1, 0 1)),((3 4, 4 5, 4 4, 3 4)))')));
(nothing is returned here)
spatialite> select
AsText(CastToPolygon(MultipolygonFromText('MULTIPOLYGON(((0 1, 1 2, 1
1, 0 1)))')));
POLYGON((0 1, 1 2, 1 1, 0 1))
(works OK if the multipolygon contains one polygon)
spatialite>
I need something that gives a set of results
POLYGON((0 1, 1 2, 1 1, 0 1))
POLYGON((3 4, 4 5, 4 4, 3 4))
> > containing POLYGONs?- Hide quoted text -
>
> - Show quoted text -