<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Build your own routing solution</title>
	<atom:link href="http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/</link>
	<description>Not another GIS blog</description>
	<lastBuildDate>Wed, 02 Jun 2010 04:13:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shabeerVC</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/comment-page-1/#comment-22786</link>
		<dc:creator>shabeerVC</dc:creator>
		<pubDate>Thu, 30 Apr 2009 09:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-22786</guid>
		<description>Hi Chris,
        I am developing a routing application using openlayers and postgres. I successfully executed my routing query using dijikstra shortest path. and my query goes like this:
 &quot;SELECT rt.gid as geomId, astext(rt.the_geom) as geometry,rd_name as rd_name,length as len  FROM road,(SELECT gid, the_geom FROM dijkstra_sp(&#039;road&#039;,4352,4052) ) as rt  WHERE  road.gid=rt.gid;&quot;

But my dijkstra_sp function [SELECT gid, the_geom FROM dijkstra_sp(&#039;road&#039;,4352,4052)] returns me a set of geometries of type line string which is not in an order. I am able to draw lines in map using these linestrings but fails to find the direction because the lines are not in sequential order. Is there any other function from which I can get a ordered set of linestring co-ordinates. 

Can you please reply me quickly for my question.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Chris,<br />
        I am developing a routing application using openlayers and postgres. I successfully executed my routing query using dijikstra shortest path. and my query goes like this:<br />
 &#8220;SELECT rt.gid as geomId, astext(rt.the_geom) as geometry,rd_name as rd_name,length as len  FROM road,(SELECT gid, the_geom FROM dijkstra_sp(&#8216;road&#8217;,4352,4052) ) as rt  WHERE  road.gid=rt.gid;&#8221;</p>
<p>But my dijkstra_sp function [SELECT gid, the_geom FROM dijkstra_sp('road',4352,4052)] returns me a set of geometries of type line string which is not in an order. I am able to draw lines in map using these linestrings but fails to find the direction because the lines are not in sequential order. Is there any other function from which I can get a ordered set of linestring co-ordinates. </p>
<p>Can you please reply me quickly for my question.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ali</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/comment-page-1/#comment-22746</link>
		<dc:creator>ali</dc:creator>
		<pubDate>Tue, 04 Nov 2008 17:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-22746</guid>
		<description>Would you make tutorial Dijkstra algorithm for Avenue (arc view), Please!!!
Thanks a lot</description>
		<content:encoded><![CDATA[<p>Would you make tutorial Dijkstra algorithm for Avenue (arc view), Please!!!<br />
Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dorian</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/comment-page-1/#comment-22702</link>
		<dc:creator>Dorian</dc:creator>
		<pubDate>Fri, 13 Jun 2008 09:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-22702</guid>
		<description>I found the solution:

You will have to modify dijkstra.c and add the following:

#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif


after the include section. Then reinstall the pgdijkstra by executing sudo make install. Finally, restart the postgresql server.

(yes, i saw you are using the windows version and i am not sure if this appy for windows as well, but... good luck!)</description>
		<content:encoded><![CDATA[<p>I found the solution:</p>
<p>You will have to modify dijkstra.c and add the following:</p>
<p>#ifdef PG_MODULE_MAGIC<br />
PG_MODULE_MAGIC;<br />
#endif</p>
<p>after the include section. Then reinstall the pgdijkstra by executing sudo make install. Finally, restart the postgresql server.</p>
<p>(yes, i saw you are using the windows version and i am not sure if this appy for windows as well, but&#8230; good luck!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dorian</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/comment-page-1/#comment-22701</link>
		<dc:creator>Dorian</dc:creator>
		<pubDate>Fri, 13 Jun 2008 09:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-22701</guid>
		<description>Hi!

Does anybody solved the &quot;missing magic block&quot; error?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Does anybody solved the &#8220;missing magic block&#8221; error?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/comment-page-1/#comment-22693</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Wed, 30 Apr 2008 09:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-22693</guid>
		<description>I get an error when calling create_graph_tables;
ERROR:  duplicate key value violates unique constraint &quot;roads_edges_source_key&quot;
CONTEXT:  SQL statement &quot;INSERT INTO roads_edges (id, source, target) VALUES (1393, &#039;1550&#039;, &#039;91&#039;)&quot;
PL/pgSQL function &quot;create_graph_tables&quot; line 27 at EXECUTE statement</description>
		<content:encoded><![CDATA[<p>I get an error when calling create_graph_tables;<br />
ERROR:  duplicate key value violates unique constraint &#8220;roads_edges_source_key&#8221;<br />
CONTEXT:  SQL statement &#8220;INSERT INTO roads_edges (id, source, target) VALUES (1393, &#8216;1550&#8242;, &#8216;91&#8242;)&#8221;<br />
PL/pgSQL function &#8220;create_graph_tables&#8221; line 27 at EXECUTE statement</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nishith</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/comment-page-1/#comment-22679</link>
		<dc:creator>nishith</dc:creator>
		<pubDate>Wed, 02 Apr 2008 10:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-22679</guid>
		<description>hi all,
The error about magic module ocurs in my case too.

psql:c:/program files/PostgreSQL/pgdijkstra/dijkstra.sql:32: ERROR: incompatible library “C:/Program Files/PostgreSQL/8.2/lib/libdijkstra.dll”: missing magic block
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.

Can someone tell me what are the extension libraries and if it is the .dll we have it in the postgres installation&#039;s \lib dir already.

thanks for any help in advance
nishith</description>
		<content:encoded><![CDATA[<p>hi all,<br />
The error about magic module ocurs in my case too.</p>
<p>psql:c:/program files/PostgreSQL/pgdijkstra/dijkstra.sql:32: ERROR: incompatible library “C:/Program Files/PostgreSQL/8.2/lib/libdijkstra.dll”: missing magic block<br />
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.</p>
<p>Can someone tell me what are the extension libraries and if it is the .dll we have it in the postgres installation&#8217;s \lib dir already.</p>
<p>thanks for any help in advance<br />
nishith</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kusum</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/comment-page-1/#comment-22674</link>
		<dc:creator>Kusum</dc:creator>
		<pubDate>Wed, 26 Mar 2008 12:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-22674</guid>
		<description>Hii All
I read the blog in Build your own routing solution 
But there is a problem when i do that ,i get an error on exectuion of dijkstra.sql.
i get an error as mentioned by robin also above

C:\Program Files\PostgreSQL\8.2\bin&gt;psql -U robin roads -f “c:\program files\
PostgreSQL\pgdijkstra\dijkstra.sql”
CREATE TYPE
psql:c:/program files/PostgreSQL/pgdijkstra/dijkstra.sql:32: ERROR: incompatible library “C:/Program Files/PostgreSQL/8.2/lib/libdijkstra.dll”: missing magic block
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION



Please reply if you have found any resolution



Regards

Kusum</description>
		<content:encoded><![CDATA[<p>Hii All<br />
I read the blog in Build your own routing solution<br />
But there is a problem when i do that ,i get an error on exectuion of dijkstra.sql.<br />
i get an error as mentioned by robin also above</p>
<p>C:\Program Files\PostgreSQL\8.2\bin&gt;psql -U robin roads -f “c:\program files\<br />
PostgreSQL\pgdijkstra\dijkstra.sql”<br />
CREATE TYPE<br />
psql:c:/program files/PostgreSQL/pgdijkstra/dijkstra.sql:32: ERROR: incompatible library “C:/Program Files/PostgreSQL/8.2/lib/libdijkstra.dll”: missing magic block<br />
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.<br />
CREATE FUNCTION<br />
CREATE FUNCTION<br />
CREATE FUNCTION</p>
<p>Please reply if you have found any resolution</p>
<p>Regards</p>
<p>Kusum</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Free Software Downloads</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/comment-page-1/#comment-19950</link>
		<dc:creator>Free Software Downloads</dc:creator>
		<pubDate>Thu, 11 Oct 2007 18:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-19950</guid>
		<description>&lt;strong&gt;Free Software Downloads...&lt;/strong&gt;

I couldn&#039;t understand some parts of this article, but it sounds interesting...</description>
		<content:encoded><![CDATA[<p><strong>Free Software Downloads&#8230;</strong></p>
<p>I couldn&#8217;t understand some parts of this article, but it sounds interesting&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Software Development Guide</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/comment-page-1/#comment-19944</link>
		<dc:creator>Software Development Guide</dc:creator>
		<pubDate>Thu, 11 Oct 2007 09:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-19944</guid>
		<description>&lt;strong&gt;Software Development Guide...&lt;/strong&gt;

I couldn&#039;t understand some parts of this article, but it sounds interesting...</description>
		<content:encoded><![CDATA[<p><strong>Software Development Guide&#8230;</strong></p>
<p>I couldn&#8217;t understand some parts of this article, but it sounds interesting&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/comment-page-1/#comment-17691</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Thu, 28 Jun 2007 05:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-17691</guid>
		<description>hi,

I have been trying to get the above implementation to work but i am getting the following error at step 6:

C:\Program Files\PostgreSQL\8.2\bin&gt;psql -U robin roads -f &quot;c:\program files\
PostgreSQL\pgdijkstra\dijkstra.sql&quot;
CREATE TYPE
psql:c:/program files/PostgreSQL/pgdijkstra/dijkstra.sql:32: ERROR:  incompatible library &quot;C:/Program Files/PostgreSQL/8.2/lib/libdijkstra.dll&quot;: missing magic block
HINT:  Extension libraries are required to use the PG_MODULE_MAGIC macro.
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION

At the moment I have PostgreSQL 8.2 and the pgdijkstra package and nothing else. Am i missing anything?

Can someone who has successfully implemented the algorithm please post all the steps and software used or email me at robinojha@gmail.com.

thanks in advance,
Robin</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>I have been trying to get the above implementation to work but i am getting the following error at step 6:</p>
<p>C:\Program Files\PostgreSQL\8.2\bin&gt;psql -U robin roads -f &#8220;c:\program files\<br />
PostgreSQL\pgdijkstra\dijkstra.sql&#8221;<br />
CREATE TYPE<br />
psql:c:/program files/PostgreSQL/pgdijkstra/dijkstra.sql:32: ERROR:  incompatible library &#8220;C:/Program Files/PostgreSQL/8.2/lib/libdijkstra.dll&#8221;: missing magic block<br />
HINT:  Extension libraries are required to use the PG_MODULE_MAGIC macro.<br />
CREATE FUNCTION<br />
CREATE FUNCTION<br />
CREATE FUNCTION</p>
<p>At the moment I have PostgreSQL 8.2 and the pgdijkstra package and nothing else. Am i missing anything?</p>
<p>Can someone who has successfully implemented the algorithm please post all the steps and software used or email me at <a href="mailto:robinojha@gmail.com">robinojha@gmail.com</a>.</p>
<p>thanks in advance,<br />
Robin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
