<span style="" lang="EN-US">Hi Trevor,</span>
<p class="MsoNormal"><span style="" lang="EN-US">Thanks for
your quickly response. I continued investigating about other transportation problems
that I want to solve and show in MapGuide, and I concluded that I must develop
a module to manipulate topologies into MapGuide in order to solve this and
other transportation problems. I recognize that it involves a lot of work and theoretical
acknowledge, but if I can solve this it could be a contribution to MapGuide
Open Source or to a Plug-in of Mapguide Enterprise. Therefore, now my questions
are the following:</span></p>
<p class="MsoNormal"><span style="" lang="EN-US"> Can the
manipulation of topologies into MapGuide be solved by means of ASPX pages?<span style=""> </span></span></p>
<p class="MsoNormal"><span style="" lang="EN-US"> Could this
solution serve for MapGuide Open Source and Mapguide Enterprise?</span></p>
<p class="MsoNormal"><span style="" lang="EN-US"> <br>Thanks</span></p>
<p class="MsoNormal"><span style="" lang="EN-US"> Alejandro
Guzmān</span></p>
<br><div><span class="gmail_quote">On 10/3/06, <b class="gmail_sendername">Trevor Wekel</b> <<a href="mailto:trevor.wekel@autodesk.com">trevor.wekel@autodesk.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Hi Alejandro,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Yes. You could implement a shortest path command as a
C# aspx web page. This page could then be called from a web
application similar to the existing buffer.aspx script. MapGuide does not
currently support topology so you would have to create the topology out of the
raw geometry before running the shortest path algorithm.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Here is a general outline:</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Select the features of interest using
FeatureService::SelectFeatures()</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Iterate through the features recording the end points and
identity properties</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Using some heuristics, iterate through the end
points to determine which "touch" and create the network
topology. An intersects call with a small circle around each end
point may be appropriate.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Using the network topology, determine the shortest
path.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Using the identity properties for the shortest
path features, highlight the shortest path using a technique similar to
measure.aspx</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">This algorithm could also be coded in C++. A C++
version would be faster but also more difficult to
implement.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Thanks,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Trevor</font></span></div>
<div dir="ltr" align="left"><span></span><span><font color="#0000ff" face="Arial" size="2"></font></span> </div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Alejandro Guzman
[mailto:<a href="mailto:lguzmanc@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lguzmanc@gmail.com</a>] <br><b>Sent:</b> Tuesday, October 03, 2006 9:56
AM<br><b>To:</b> <a href="mailto:users@mapguide.osgeo.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users@mapguide.osgeo.org</a><br><b>Subject:</b> Shortest
Path<br></font><br></div><div><span class="e" id="q_10e10374b74d1dd1_1">
<div></div>
<p><span style="color: rgb(153, 204, 0);" lang="EN-US">Hello
</span></p>
<p><span style="color: rgb(153, 204, 0);" lang="EN-US">Nowadays I am
evaluating some Internet Map Servers to use one of them in a project. Till now,
due to diverse benefits that this one offers, I have decided on MapGuide Open
Source, nevertheless even I do not still have totally cleared some</span><span style="color: rgb(255, 102, 0);" lang="EN-US"> </span><span style="color: rgb(153, 204, 0);" lang="EN-US">questions. Specifically my questions are directed
to:</span></p>
<p><span style="color: rgb(153, 204, 0);" lang="EN-US"></span> </p>
<p><span style="color: rgb(153, 204, 0);" lang="EN-US">Can I create a
new command to find shortest path?</span></p>
<p><span style="color: rgb(153, 204, 0);" lang="EN-US">If it is true,
can I programme it with C#? </span></p>
<p><span style="color: rgb(153, 204, 0);" lang="EN-US">Or would I
have to modify to the source code of Mapguide to do this, and therefore use a
specific language of programming?</span></p>
<p><span style="color: rgb(153, 204, 0);" lang="EN-US">Do solutions
exist type plug-in to find the shortest path with mapguide?</span></p>
<p><span style="color: rgb(153, 204, 0);" lang="EN-US"></span> </p>
<p><span style="color: rgb(153, 204, 0);" lang="EN-US">Thanks
</span></p>
<p><span style="color: rgb(153, 204, 0);" lang="EN-US">Alejandro
Guzmán</span></p></span></div></div>
</blockquote></div><br>