<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=173193513-07082008><FONT face=Arial 
color=#0000ff size=2>typo</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=173193513-07082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV><SPAN 
class=220391913-07082008><FONT face=Arial color=#0000ff size=2>SELECT 
ST_Difference(ST_SetSRID(ST_Extent(the_world), ST_SRID(the_world)<SPAN 
class=173193513-07082008>)</SPAN>, the_world)</FONT></SPAN><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> 
postgis-users-bounces@postgis.refractions.net 
[mailto:postgis-users-bounces@postgis.refractions.net] <B>On Behalf Of </B>Obe, 
Regina<BR><B>Sent:</B> Thursday, August 07, 2008 9:29 AM<BR><B>To:</B> PostGIS 
Users Discussion<BR><B>Subject:</B> RE: [postgis-users] creating a 
mask<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2>Erik,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2>I think the ST_Difference function may work for 
you.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2>Basically get the extent of your world make a polygon out 
of it and then subtract the world</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2>So something like the below</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2>SELECT ST_Difference(ST_SetSRID(ST_Extent(the_world), 
ST_SRID(the_world), the_world)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2>Hope that helps,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2>Regina</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=220391913-07082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> 
postgis-users-bounces@postgis.refractions.net 
[mailto:postgis-users-bounces@postgis.refractions.net] <B>On Behalf Of 
</B>erik<BR><B>Sent:</B> Thursday, August 07, 2008 9:11 AM<BR><B>To:</B> PostGIS 
Users Discussion<BR><B>Subject:</B> [postgis-users] creating a 
mask<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>Hello, <BR><BR>I don't know if the terminology I use is correct but 
I would like to create a mask of layer I have.<BR>For example, from the shape of 
the world I would like to keep only the oceans, the negative of the initial 
shape.<BR>I haven't found any info or documentation about this. Can this be done 
in PostGIS?<BR><BR>Many thanks!<BR><BR>Erik<BR></DIV>
<P>
<HR SIZE=1>

<P></P>
<P><STRONG>The substance of this message, including any attachments, may be 
confidential, legally privileged and/or exempt from disclosure pursuant to 
Massachusetts law. It is intended solely for the addressee. If you received this 
in error, please contact the sender and delete the material from any computer. 
</STRONG></P>
<P>
<HR SIZE=1>

<P></P>
<P><STRONG><FONT color=#339900 size=2>Help make the earth a greener place. If at 
all possible resist printing this email and join us in saving paper. </P>
<P></FONT></STRONG></P></BODY></HTML>

<HTML><BODY><P><hr size=1></P>
<P><STRONG>
The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer.
</STRONG></P></BODY></HTML>

<P><hr size=1></P>
<P><STRONG><font size="2" color="339900"> Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper. </p> <p> </font></STRONG></P>