<div>The KML generating PHP script that Jason Birch worked on has great examples of looping through geometry.</div>
<div> </div>
<div>It should be up on the live gallery.<br><br></div>
<div class="gmail_quote">On Fri, Nov 21, 2008 at 12:09 PM, Berdel, Brian <span dir="ltr"><<a href="mailto:brian.berdel@mcmtrans.com">brian.berdel@mcmtrans.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks Dave, that is the logic I was thinking of. Anyone have any samples doing something like this with the API?</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </span></font></p>
<div>
<div>
<p><font face="Palatino Linotype" color="navy" size="2"><span style="FONT-SIZE: 11pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'">Brian </span></font><font color="navy"><span style="COLOR: navy"></span></font></p>
</div>
<div>
<p><strong><b><font face="Palatino Linotype" color="#009933" size="2"><span style="FONT-SIZE: 10pt; COLOR: #009933; FONT-FAMILY: 'Palatino Linotype'"> </span></font></b></strong><strong><b><font face="Palatino Linotype" color="#009933" size="2"><span style="FONT-SIZE: 10pt; COLOR: #009933; FONT-FAMILY: 'Palatino Linotype'"></span></font></b></strong></p>
</div></div>
<div>
<div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">
<hr align="center" width="100%" size="2">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>] <b><span style="FONT-WEIGHT: bold">On Behalf Of </span></b>Dave Wilson<br>
<b><span style="FONT-WEIGHT: bold">Sent:</span></b> Friday, November 21, 2008 11:31 AM<br><b><span style="FONT-WEIGHT: bold">To:</span></b> MapGuide Users Mail List<br><b><span style="FONT-WEIGHT: bold">Subject:</span></b> [mapguide-users] RE: Convert Points to Lines</span></font><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"></span></font></p>
</div>
<div>
<div></div>
<div class="Wj3C7c">
<p><font face="Calibri" size="2"><span style="FONT-SIZE: 11pt"> </span></font></p>
<p><font face="Calibri" color="#1f497d" size="2"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">You can walk your point records in the order they were retrieved and write them into a line string and write that into an SDF using the various Geometry API, grouping by vehicle of course.</span></font></p>
<p><font face="Calibri" color="#1f497d" size="2"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></font></p>
<p><font face="Calibri" color="#1f497d" size="2"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Dave</span></font></p>
<p><font face="Calibri" color="#1f497d" size="2"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></font></p>
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>] <b><span style="FONT-WEIGHT: bold">On Behalf Of </span></b>Berdel, Brian<br>
<b><span style="FONT-WEIGHT: bold">Sent:</span></b> Friday, November 21, 2008 6:09 AM<br><b><span style="FONT-WEIGHT: bold">To:</span></b> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<b><span style="FONT-WEIGHT: bold">Subject:</span></b> [mapguide-users] Convert Points to Lines</span></font></p></div></div>
<p><font face="Calibri" size="2"><span style="FONT-SIZE: 11pt"> </span></font></p>
<p><font face="Calibri" size="2"><span style="FONT-SIZE: 11pt">I am working on a vehicle tracking application and I think displaying the points will be very straightforward. However, I want to convert these points to lines or routes. Any idea on how to accomplish this?</span></font></p>
<p><font face="Calibri" size="2"><span style="FONT-SIZE: 11pt"> </span></font></p>
<p><font face="Calibri" size="2"><span style="FONT-SIZE: 11pt">Thanks, </span></font></p>
<p><font face="Calibri" size="2"><span style="FONT-SIZE: 11pt"> </span></font></p>
<div>
<p><font face="Palatino Linotype" size="3"><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Palatino Linotype'">Brian </span></font></p></div>
<p><font face="Calibri" size="2"><span style="FONT-SIZE: 11pt"> </span></font></p></div></div></div></div><br>_______________________________________________<br>mapguide-users mailing list<br><a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br><br></blockquote></div><br>