<br><tt><font size=2>Hi Jon,</font></tt><br><br><tt><font size=2>I am from Ritesh team. We are getting around 2 secs
average response time for analysis in Oracle routing . I am in process
of fine tuning like &nbsp;incorporating link level preference, fine tuning
the partition size, connected components. I was also thinking of precaching
the results(may be with xml) if it is available. Have you used any precaching
also? </font></tt><br><br><tt><font size=2>Regards</font></tt><br><tt><font size=2>Gagan</font></tt><br><br><br><table width=100%><tr valign=top><td width=40%><font size=1 face="sans-serif"><b>Jon Scarbrough &lt;jscarbrough@where2getit.com&gt;</b></font><br><font size=1 face="sans-serif">Sent by: mapserver-users-bounces@lists.osgeo.org</font><p><font size=1 face="sans-serif">05/03/2008 03:24 AM</font><td width=59%><table width=100%><tr valign=top><td><div align=right><font size=1 face="sans-serif">To</font></div><td><font size=1 face="sans-serif">riteshambastha &lt;ritesh.linux@gmail.com&gt;</font><tr valign=top><td><div align=right><font size=1 face="sans-serif">cc</font></div><td><font size=1 face="sans-serif">mapserver-users@lists.osgeo.org</font><tr valign=top><td><div align=right><font size=1 face="sans-serif">Subject</font></div><td><font size=1 face="sans-serif">Re: [MAPSERVER-USERS] Any other Routing
solution than pgRouting/Oracle &nbsp; &nbsp; &nbsp; &nbsp;NDM ?</font></table><br><table><tr valign=top><td><td></table><br></table><br><br><br><tt><font size=2>Ritesh,<br><br>I need to weigh in little bit since we are using the Oracle <br>Geocoder/Routeserver in conjunction with the Navteq data set. &nbsp;Our
<br>experience is that on a well tuned Oracle appserver/db cluster, an <br>normal route will calculate in about .5 secs. But, there is a lot of <br>tuning to get your java engine properly configured to deal with garbage
<br>collection and you must have enough memory to hold sufficient partitions
<br>in memory so you don't have to go back to disk.<br><br>We then take the Oracle route response and convert it to xml that is <br>sent back to the browser and have Openlayers lay it on the map using <br>SVG/VML. The biggest amount of time is spent parsing the XML and <br>creating the SVG. There are a lot of moving parts and as Steve <br>mentioned, you need to measure each part (route server, web server <br>handling the conversion of route response to the browser, Openlayers <br>layer manipulation).<br><br>In my experience, the Oracle router is not the bottleneck.<br><br>Thanks.<br><br>Jon Scarbrough<br>Where2GetIt.com<br><br><br>riteshambastha wrote:<br>&gt; Thanks Steve, <br>&gt;<br>&gt; I am pretty sure your words are making a mapserver enthusiast's life
very<br>&gt; easy. <br>&gt;<br>&gt; For Route computation I am using a licensed version of Oracle Spatial
DB.<br>&gt; Now, as PostGIS is looking so promising in the market, I am also thinking
to<br>&gt; shift to PostGIS. <br>&gt;<br>&gt; And after that, I will re-engineer my routing code using : <br>&gt; &nbsp; <br>&gt;&gt; pgRouting<br>&gt;&gt; Ka-map xmlOverlay<br>&gt;&gt; &nbsp; &nbsp; <br>&gt;<br>&gt; I guess I am going in the right direction.<br>&gt;<br>&gt; Regards,<br>&gt; Ritesh Ambastha<br>&gt;<br>&gt;<br>&gt;<br>&gt; Stephen Woodbridge wrote:<br>&gt; &nbsp; <br>&gt;&gt; riteshambastha wrote:<br>&gt;&gt; &nbsp; &nbsp; <br>&gt;&gt;&gt; Thanks Steve,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Route computation is taking an average time of 1.2 sec.<br>&gt;&gt;&gt; Post this, showing route on the browser takes a lot of time.
<br>&gt;&gt;&gt; I am not using kamap xml overlay and any lib of openlayers.
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I am posting this route result xml into a db, and allowing
a map file to<br>&gt;&gt;&gt; read this db and show the route on map.<br>&gt;&gt;&gt; I know this is not an efficient way to do the job. <br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; <br>&gt;&gt; I would start by adding some timing to a log file so you KNOW
where your <br>&gt;&gt; time is getting spent, then work on optimizing the larger times.<br>&gt;&gt;<br>&gt;&gt; I think this is the fastest way to go unless the route is relatively
<br>&gt;&gt; small in the number of nodes in the polyline. You should look
at getting <br>&gt;&gt; rid of the xml, in fact, why are you going to xml at all and then
<br>&gt;&gt; putting it back into the database. The data is being generate
in the <br>&gt;&gt; database then you extract it and format it into xml and then put
the xml <br>&gt;&gt; back into the database for mapserver to pick up. I think you should
just <br>&gt;&gt; put it into a table of routes with a unique sessionid+routeid
key then <br>&gt;&gt; pass the key to mapserver to use on selecting the right record.<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; <br>&gt;&gt;&gt; I got to know that openlayers libs can help me to achieve
the same. I<br>&gt;&gt;&gt; want<br>&gt;&gt;&gt; to know how in-efficient will be to use kamap xml overlay
instead of any<br>&gt;&gt;&gt; fn<br>&gt;&gt;&gt; of openlayers.<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; <br>&gt;&gt; You can server the route as a wfs layer, but if it is complicated
it <br>&gt;&gt; might be too many points to handle quickly in the browser.<br>&gt;&gt;<br>&gt;&gt; -Steve<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; <br>&gt;&gt;&gt; Regards,<br>&gt;&gt;&gt; Ritesh Ambastha<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Stephen Woodbridge wrote:<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; <br>&gt;&gt;&gt;&gt; riteshambastha wrote:<br>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; <br>&gt;&gt;&gt;&gt;&gt; Dear friends, <br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; I have seen routing based on postgis routing and oracle
network data<br>&gt;&gt;&gt;&gt;&gt; models.<br>&gt;&gt;&gt;&gt;&gt; Even though, they serve the purpose very efficiently,
they take some<br>&gt;&gt;&gt;&gt;&gt; 1sec/2sec/3sec to display the routes. I checked them
with OpenLayers<br>&gt;&gt;&gt;&gt;&gt; and<br>&gt;&gt;&gt;&gt;&gt; Ka-map. Still, I feel there must be a way to reduce
this route display<br>&gt;&gt;&gt;&gt;&gt; time.<br>&gt;&gt;&gt;&gt;&gt; Is there any any other ways to show routing/directions
over mapserver<br>&gt;&gt;&gt;&gt;&gt; based<br>&gt;&gt;&gt;&gt;&gt; maps? Any other data structure and programming in
C/python can serve<br>&gt;&gt;&gt;&gt;&gt; the<br>&gt;&gt;&gt;&gt;&gt; purpose ?<br>&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&gt;&gt;&gt;&gt; What is taking too long?<br>&gt;&gt;&gt;&gt; 1) is it the route computation<br>&gt;&gt;&gt;&gt; 2) transfering the route data to OpenLayers<br>&gt;&gt;&gt;&gt; 3) rendering the route data as a vector layer<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Have you considered writing some code on the server that
generates an <br>&gt;&gt;&gt;&gt; image file from the route data and returns a url for the
image that can <br>&gt;&gt;&gt;&gt; be then pinned to OpenLayers like a marker? You could
do this by writing <br>&gt;&gt;&gt;&gt; a wrapper in your favorite scripting language around the
request to <br>&gt;&gt;&gt;&gt; generate the route.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; -Steve W<br>&gt;&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt;&gt; mapserver-users mailing list<br>&gt;&gt;&gt;&gt; mapserver-users@lists.osgeo.org<br>&gt;&gt;&gt;&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; <br>&gt;&gt; _______________________________________________<br>&gt;&gt; mapserver-users mailing list<br>&gt;&gt; mapserver-users@lists.osgeo.org<br>&gt;&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; <br>&gt;<br>&gt; &nbsp; <br>_______________________________________________<br>mapserver-users mailing list<br>mapserver-users@lists.osgeo.org<br>http://lists.osgeo.org/mailman/listinfo/mapserver-users<br></font></tt><br><BR>
<BR>
<BR>
The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email.<BR>