I have the following SQL code that does some spatial operations of PostGIS in PostgreSQL.
SELECT
ST_Dump(
ST_SymDifference(a.geom, b.geom)
)
FROM smp_areas a, smp_areas b
It returns for me in a format of a composite type, composed of two parts:
How to get only the second part (that, in this case, contains the geometry that I need)?
Ps: I've read that re-arranging like the following would work:
SELECT * FROM( myquery ) as alias;
I tried but returned the same result. Can anyone help?
