<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</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=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>H<SPAN class=160553208-09082007>ello 
all</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=160553208-09082007></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=160553208-09082007>Iam trying to get the 
x and y out of a shape object </SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=160553208-09082007>the shape object has 3 
holes in it </SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=160553208-09082007>and when I loop 
through it I cannot see if it is a hole or 
not.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=160553208-09082007></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=160553208-09082007>I could say that the 
first one is the shape and the rest is the holes, but that will not work if I 
have a multipolygon with holes</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=160553208-09082007>is there any way to 
see if the shape I have is a hole.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=160553208-09082007></SPAN></FONT></FONT></FONT></SPAN><SPAN 
class=160553208-09082007><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=160553208-09082007></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=160553208-09082007>hope any one can help 
me</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=160553208-09082007></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=160553208-09082007>jeppe</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=160553208-09082007></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=160553208-09082007>This is the function I 
have made</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=160553208-09082007></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=160553208-09082007>function 
OutputShapeToXML($Shape, $Limit=NULL) 
{<BR></SPAN></FONT></FONT></FONT></SPAN><FONT face=Arial color=#0000ff 
size=2></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=160553208-09082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=160553208-09082007>&nbsp; for ($I = 0; $I 
&lt; $Shape-&gt;numlines; $I++) {<BR>&nbsp; $tmp = "";<BR>&nbsp;&nbsp;&nbsp; 
$Line = $Shape-&gt;line($I);<BR>&nbsp;&nbsp;&nbsp; echo 
'&lt;polygon&gt;';<BR>&nbsp;for ($J = 0; $J &lt; $Line-&gt;numpoints; $J++) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $Point = 
$Line-&gt;point($J);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($Limit &amp;&amp; 
($Point-&gt;x &lt; $Limit-&gt;minx || $Point-&gt;x &gt; $Limit-&gt;maxx 
||<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $Point-&gt;y &lt; 
$Limit-&gt;miny || $Point-&gt;y &gt; $Limit-&gt;maxy)<BR>&nbsp;&nbsp;) 
continue;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo '&lt;point x="' . $Point-&gt;x 
. '" y="' . $Point-&gt;y . '"/&gt;';<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;echo 
'&lt;/polygon&gt;';<BR>&nbsp; 
}<BR>}</SPAN></FONT></FONT></FONT></SPAN></DIV></BODY></HTML>