ST_Aggr_Intersection |
|
Release 9.3 |
NOTE: Spatial type for Oracle only
st_aggr_intersection (g1 sde.st_geometry)
CREATE TABLE habitats (id integer, shape sde.st_geometry);
INSERT INTO habitats VALUES (
1,
sde.st_polygon ('polygon ((5 5, 12 5, 12 10, 5 10, 5 5))', 0)
);
INSERT INTO habitats VALUES (
2,
sde.st_polygon ('polygon ((10 8, 14 8, 14 15, 10 15, 10 8))', 0)
);
INSERT INTO habitats VALUES (
3,
sde.st_polygon ('polygon ((6 8, 20 8, 20 20, 6 20, 6 8))', 0)
);
SELECT sde.st_astext(sde.st_aggr_intersection(shape)) AGGR_SHAPES FROM habitats;
AGGR_SHAPES
POLYGON (( 10.00000000 8.00000000, 12.00000000 8.00000000, 12.00000000 10.00000000,
10.00000000 10.00000000, 10.00000000 8.00000000))