GEOMETRYCOLLECTION function
Hello again!
I have the following working select, where poly1 and poly2 are POLYGON objects:
SELECT Area(Envelope(GeomCollFromText(CONCAT(
'GEOMETRYCOLLECTION(',
AsText(poly1),
', ',
AsText(poly2),
')'
)))) AS output
FROM table
What I wonder: is there a better (and probably also quicker) way to obtain the same not involving conversion to and from WKT?
Something like:
SELECT Area(Envelope(GeomCollFunction(poly1,poly2))) AS output
FROM table
I haven't found, or I missed, a function like that, able to create a GEOMETRYCOLLECTION object directly from n geometry objects in their internal format.
Thank you in advance,
Mario
Subject
Views
Written By
Posted
GEOMETRYCOLLECTION function
5301
October 31, 2008 12:15PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.