Guest User

Untitled

a guest
Oct 15th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. select GEOM.STEnvelope() from table
  2.  
  3. select min(p0.STX) as x1,min(p0.STY) as y1,MAX(p1.STX) as x2,MAX(p1.STY) as y2 from (
  4. select bbox.STPointN(1) as p0,bbox.STPointN(3)as p1 from (
  5. select GEOM.STEnvelope() as bbox from (
  6. select ... from table
  7. )
  8. )
  9. )
  10.  
  11. select geometry::EnvelopeAggregate(GEOM) from table
Add Comment
Please, Sign In to add comment