<!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> </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> </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> </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> </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> </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> </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> for ($I = 0; $I
< $Shape->numlines; $I++) {<BR> $tmp = "";<BR>
$Line = $Shape->line($I);<BR> echo
'<polygon>';<BR> for ($J = 0; $J < $Line->numpoints; $J++)
{<BR> $Point =
$Line->point($J);<BR> if ($Limit &&
($Point->x < $Limit->minx || $Point->x > $Limit->maxx
||<BR> $Point->y <
$Limit->miny || $Point->y > $Limit->maxy)<BR> )
continue;<BR> echo '<point x="' . $Point->x
. '" y="' . $Point->y . '"/>';<BR> }<BR> echo
'</polygon>';<BR>
}<BR>}</SPAN></FONT></FONT></FONT></SPAN></DIV></BODY></HTML>