Re: [postgis-users] How to Subtract Polygon From Polygon

2010-11-02 Thread Jan Saalbach
Thank you very much Maxime. I knew there was a function like this, just could not remember the name. Regards Jan On 02.11.2010 14:01, Maxime van Noppen wrote: > Hi, > > ST_Difference does the trick. > > http://postgis.refractions.net/docs/ST_Difference.html _

Re: [postgis-users] How to Subtract Polygon From Polygon

2010-11-02 Thread Maxime van Noppen
On 11/02/2010 01:48 PM, Jan Saalbach wrote: > Dear All, > is there a function to easily subtract a polygon from a polygon. Both > are rectangles. > > The scenario: > Two overlapping polygons identified by ST_INTERSECTS. > Creating a third one from the overlapping area via ST_INTERSECTION. > Subtra

[postgis-users] How to Subtract Polygon From Polygon

2010-11-02 Thread Jan Saalbach
Dear All, is there a function to easily subtract a polygon from a polygon. Both are rectangles. The scenario: Two overlapping polygons identified by ST_INTERSECTS. Creating a third one from the overlapping area via ST_INTERSECTION. Subtract the overlap from the two initial polygons. Which funct