<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:#606420;
text-decoration:underline;}
p
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.emailstyle17
{font-family:Arial;
color:windowtext;}
span.EmailStyle20
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink="#606420">
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I think I found my own answer. I didn’t
understand the nParts and the panPartStart members of the SHPObject that tell
in the vertex lists where to start and stop drawing each ‘part’ in
each shape. So, my application was just connecting all of the dots.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks.</span></font></p>
<div>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
</div>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left>
<tr height=117 style='height:87.75pt'>
<td width=339 height=117 style='width:254.15pt;padding:0in 0in 0in 0in;
height:87.75pt'>
<div>
<div class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>
<hr size=2 width=323 style='width:242.25pt' noshade color="#0a357e"
align=left>
</span></font></div>
</div>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=252
style='width:188.75pt'>
<tr height=8 style='height:5.95pt'>
<td width=108 rowspan=2 valign=top style='width:81.0pt;padding:0in 0in 0in 0in;
height:5.95pt'>
<p><font size=3 color=navy face="Times New Roman"><span style='font-size:
12.0pt;color:navy'><img width=193 height=82
src="cid:image001.jpg@01C69148.A9781590"></span></font></p>
</td>
<td width=142 height=8 style='width:106.75pt;padding:0in 0in 0in 0in;
height:5.95pt'>
<p class=MsoNormal style='margin-left:.1in'><b><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black;
font-weight:bold'>Tony Corazao</span></font></b></p>
</td>
<td width=10 height=8 style='width:.1in;padding:0in 0in 0in 0in;height:
5.95pt'>
<p class=MsoNormal style='margin-left:.1in'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span></font></p>
</td>
</tr>
<tr height=6 style='height:4.45pt'>
<td width=142 height=6 style='width:106.75pt;padding:0in 0in 0in 0in;
height:4.45pt'>
<p class=MsoNormal style='margin-left:.1in'><em><i><font size=1
color=black face="Times New Roman"><span style='font-size:8.0pt;color:black'>Software
Engineer</span></font></i></em></p>
<p class=MsoNormal style='margin-left:.1in'><font size=1 color=black
face=Arial><span style='font-size:8.0pt;font-family:Arial;color:black'>512-329-5661
x3096</span></font></p>
<p class=MsoNormal style='margin-left:.1in'><font size=1 color=navy
face=Arial><span style='font-size:8.0pt;font-family:Arial;color:navy'>tcorazao</span></font><font
size=1 color=black face=Arial><span style='font-size:8.0pt;font-family:
Arial;color:black'>@overwatch.com</span></font></p>
</td>
<td width=10 height=6 style='width:.1in;padding:0in 0in 0in 0in;height:
4.45pt'>
<p class=MsoNormal style='margin-left:.1in'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span></font></p>
</td>
</tr>
</table>
<div>
<div>
<div>
<div class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>
<hr size=2 width=323 style='width:242.25pt' noshade color="#0a357e"
align=left>
</span></font></div>
</div>
<p class=MsoNormal><font
size=1 color="#174679" face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:#174679'>301 Camp Craft Rd.</span></font><font size=1
color="#174679" face=Arial><span style='font-size:7.5pt;font-family:Arial;
color:#174679'> • </span></font><font size=1 color="#174679" face=Arial><span style='font-size:7.5pt;font-family:Arial;
color:#174679'>Austin</span></font><font size=1 color="#174679" face=Arial><span
style='font-size:7.5pt;font-family:Arial;color:#174679'>, </span></font><font
size=1 color="#174679" face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:#174679'>TX</span></font><font size=1 color="#174679"
face=Arial><span style='font-size:7.5pt;font-family:Arial;color:#174679'> </span></font><font
size=1 color="#174679" face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:#174679'>78746</span></font><font size=1 color="#174679"
face=Arial><span style='font-size:7.5pt;font-family:Arial;color:#174679'>
• </span></font><font color=navy><span style='color:navy'><a
href="https://mail.ausinfo.com/exchweb/bin/redir.asp?URL=http://www.overwatch.com/"
target="_blank"><font size=1 color="#174679" face=Arial><span
style='font-size:7.5pt;font-family:Arial;color:#174679'>www.overwatch.com</span></font></a></span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
</div>
</div>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> shapelib-bounces@lists.maptools.org
[mailto:shapelib-bounces@lists.maptools.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Corazao, Tony<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, June 16, 2006 12:07
PM<br>
<b><span style='font-weight:bold'>To:</span></b> shapelib@lists.maptools.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Shapelib] Odd lines</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>I am using shapeLib to parse the
.shp file called ‘country.shp’ that comes with ArcMap and am
getting some odd results. My application will take the vertex points from
each shape and simply draw them as a polygon on my screen. The problem,
however, is that many of the shapes have stray lines associated with
them. For instance, the country France gets drawn, but then a line is
drawn to Corsica and then the island of Corsica is drawn. I see that both
land masses are part of France, but how can I scrub the data to get rid of that
extra line. I’ve tried just cutting off one polygon drawn when the
next point is more than 2 degrees away, but then on other parts of the world,
not all the land masses get drawn. </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Does anyone know what I can look for
to predict when the shape will suddenly have a vertex point away, then start
plotting in a different position? The map I’m drawing looks rather
odd.</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Thanks.</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left
style='margin-left:.5in'>
<tr height=117 style='height:87.75pt'>
<td width=340 height=117 style='width:254.8pt;padding:0in 0in 0in 0in;
height:87.75pt'>
<div>
<div>
<div class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>
<hr size=2 width=323 style='width:242.25pt' noshade color="#0a357e"
align=left>
</span></font></div>
</div>
</div>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=252
style='width:188.75pt'>
<tr height=8 style='height:5.95pt'>
<td width=108 rowspan=2 valign=top style='width:81.0pt;padding:0in 0in 0in 0in;
height:5.95pt'>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><img
border=0 width=193 height=82 src="cid:image001.jpg@01C69148.A9781590"></span></font></p>
</td>
<td width=142 height=8 style='width:106.75pt;padding:0in 0in 0in 0in;
height:5.95pt'>
<p class=MsoNormal style='margin-left:.1in'><b><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black;
font-weight:bold'>Tony Corazao</span></font></b></p>
</td>
<td width=10 height=8 style='width:.1in;padding:0in 0in 0in 0in;height:
5.95pt'>
<p class=MsoNormal style='margin-left:.1in'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</td>
</tr>
<tr height=6 style='height:4.45pt'>
<td width=142 height=6 style='width:106.75pt;padding:0in 0in 0in 0in;
height:4.45pt'>
<p class=MsoNormal style='margin-left:.1in'><em><i><font size=1
color=black face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:black'>Software Engineer</span></font></i></em></p>
<p class=MsoNormal style='margin-left:.1in'><font size=1 color=black
face=Arial><span style='font-size:8.0pt;font-family:Arial;color:black'>512-329-5661
x3096</span></font></p>
<p class=MsoNormal style='margin-left:.1in'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>tcorazao<font color=black><span
style='color:black'>@overwatch.com</span></font></span></font></p>
</td>
<td width=10 height=6 style='width:.1in;padding:0in 0in 0in 0in;height:
4.45pt'>
<p class=MsoNormal style='margin-left:.1in'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</td>
</tr>
</table>
<div>
<div>
<div>
<div>
<div class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>
<hr size=2 width=323 style='width:242.25pt' noshade color="#0a357e"
align=left>
</span></font></div>
</div>
</div>
<p class=MsoNormal><font size=1 color="#174679" face=Arial><span
style='font-size:7.5pt;font-family:Arial;color:#174679'>301 Camp Craft
Rd. • Austin, TX 78746 • </span></font><a
href="https://mail.ausinfo.com/exchweb/bin/redir.asp?URL=http://www.overwatch.com/"
target="_blank"><font size=1 color="#174679" face=Arial><span
style='font-size:7.5pt;font-family:Arial;color:#174679'>www.overwatch.com</span></font></a></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
</div>
</div>
</td>
</tr>
</table>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
</div>
</body>
</html>