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. > Subtract the overlap from the two initial polygons. Which function? > > Any suggestions? > > Regards > Jan
Hi, ST_Difference does the trick. http://postgis.refractions.net/docs/ST_Difference.html -- Maxime _______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users
