<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.E-postmall17
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:SV">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:SV">I have a polygon layer where polygons are inside other polygons (could be polygons in polygons in polygons…).
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:SV">I would like to separate them in 2 different layers, one layer with the outer most polygon and one layer with all polygons that has a surrounding polygon.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:SV">Is there a smart way to do this in SQL?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:SV"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:SV">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:SV">Paul<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:SV"> </span>
<span style="mso-fareast-language:SV"><img width="132" height="107" style="width:1.375in;height:1.1145in" id="Bild_x0020_1" src="cid:image001.jpg@01D7E5BA.91A38710" alt="1_LFV_svensk_96"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="0" style="width:630.0pt;border-collapse:collapse">
<tbody>
<tr style="height:36.85pt">
<td width="420" valign="top" style="width:315.0pt;padding:0cm 0cm 0cm 0cm;height:36.85pt">
<p class="MsoNormal" style="margin-top:2.0pt;line-height:10.0pt;mso-line-height-rule:exactly">
<span style="font-size:9.0pt;color:#333333;mso-fareast-language:SV"> </span><span style="font-size:9.0pt;mso-fareast-language:SV">Paul Malm<span style="color:#333333"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin-top:2.0pt;line-height:10.0pt;mso-line-height-rule:exactly">
<span style="font-size:9.0pt;color:#333333;mso-fareast-language:SV"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-top:2.0pt;line-height:10.0pt;mso-line-height-rule:exactly">
<span style="font-size:9.0pt;color:#333333;mso-fareast-language:SV"> Operations / AIM Flyginfo SE</span><span style="font-size:9.0pt;color:#333333"><o:p></o:p></span></p>
</td>
<td width="420" valign="top" style="width:315.0pt;padding:0cm 0cm 0cm 2.25pt;height:36.85pt">
<p class="MsoNormal" style="margin-top:2.0pt;line-height:10.0pt;mso-line-height-rule:exactly">
<span style="font-size:9.0pt;color:#333333"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:24.1pt">
<td width="420" valign="top" style="width:315.0pt;padding:0cm 0cm 0cm 0cm;height:24.1pt">
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:9.0pt;mso-line-height-rule:exactly">
<span style="font-size:9.0pt;color:#333333;mso-fareast-language:SV"> Direkt 08-797 70 23 Mobil 07</span><span style="font-size:9.0pt;mso-fareast-language:SV">0<span style="color:#333333">-860 11 15<br>
paul.malm@lfv.se <o:p></o:p></span></span></p>
<p class="MsoNormal" style="line-height:9.0pt;mso-line-height-rule:exactly"><span style="font-size:9.0pt;color:#333333;mso-fareast-language:SV"> Besöks- och postadress<br>
LFV Flyginfo SE<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:9.0pt;mso-line-height-rule:exactly"><span style="font-size:9.0pt;color:#333333;mso-fareast-language:SV"> Af Pontins väg 6
<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:9.0pt;mso-line-height-rule:exactly"><span style="font-size:9.0pt;color:#333333;mso-fareast-language:SV"> 115 21 STOCKHOLM<o:p></o:p></span></p>
</td>
<td width="420" valign="top" style="width:315.0pt;padding:0cm 0cm 0cm 2.25pt;height:24.1pt">
<p class="MsoNormal" style="line-height:9.0pt;mso-line-height-rule:exactly"><span style="font-size:9.0pt;color:#333333"><o:p> </o:p></span></p>
</td>
</tr>
<tr>
<td width="420" valign="top" style="width:315.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:9.0pt;mso-line-height-rule:exactly">
<span style="font-size:9.0pt;color:#333333;mso-fareast-language:SV"> <o:p></o:p></span></p>
</td>
<td width="420" valign="top" style="width:315.0pt;padding:0cm 0cm 0cm 2.25pt">
<p class="MsoNormal" style="margin-top:2.0pt;line-height:9.0pt;mso-line-height-rule:exactly">
<span style="font-size:9.0pt;color:#333333"><o:p> </o:p></span></p>
</td>
</tr>
<tr style="height:3.7pt">
<td width="420" valign="top" style="width:315.0pt;padding:0cm 0cm 0cm 0cm;height:3.7pt">
<p class="MsoNormal" style="margin-top:6.0pt;line-height:9.0pt;mso-line-height-rule:exactly">
<span style="font-size:9.0pt;color:#00CC00;mso-fareast-language:SV"> Tänk på miljön innan du skriver ut detta e-postmeddelande.</span><span style="font-size:9.0pt;color:#00CC00"><o:p></o:p></span></p>
</td>
<td width="420" valign="top" style="width:315.0pt;padding:0cm 0cm 0cm 2.25pt;height:3.7pt">
<p class="MsoNormal" style="margin-top:6.0pt;line-height:9.0pt;mso-line-height-rule:exactly">
<span style="font-size:9.0pt;color:#00CC00"><o:p> </o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-fareast-language:SV"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>