<?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"
	>
<channel>
	<title>Comments on: Build your own routing solution</title>
	<atom:link href="http://chris.narx.net/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>
	<pubDate>Mon, 13 Oct 2008 23:18:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Dorian</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/#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-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 "missing magic block" 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-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 "roads_edges_source_key"
CONTEXT:  SQL statement "INSERT INTO roads_edges (id, source, target) VALUES (1393, '1550', '91')"
PL/pgSQL function "create_graph_tables" 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-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'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-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&#62;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-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'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-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'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-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&#62;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

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>
	<item>
		<title>By: Schalk</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/#comment-16116</link>
		<dc:creator>Schalk</dc:creator>
		<pubDate>Tue, 22 May 2007 13:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-16116</guid>
		<description>Actual solution :-] 

Give edges table an alias (note alias e) in update_cost_from_distance function:

EXECUTE 'UPDATE ' &#124;&#124; quote_ident(geom_table) &#124;&#124; 
              '_edges e SET cost = (SELECT sum( length( g.the_geom ) ) FROM ' &#124;&#124; 
              quote_ident(geom_table) &#124;&#124; 
              ' g WHERE g.edge_id = e.id GROUP BY e.id)';</description>
		<content:encoded><![CDATA[<p>Actual solution :-] </p>
<p>Give edges table an alias (note alias e) in update_cost_from_distance function:</p>
<p>EXECUTE &#8216;UPDATE &#8216; || quote_ident(geom_table) ||<br />
              &#8216;_edges e SET cost = (SELECT sum( length( g.the_geom ) ) FROM &#8216; ||<br />
              quote_ident(geom_table) ||<br />
              &#8216; g WHERE g.edge_id = e.id GROUP BY e.id)&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schalk</title>
		<link>http://blog.webmapper.com.au/2005/12/14/build-your-own-routing-solution/#comment-16106</link>
		<dc:creator>Schalk</dc:creator>
		<pubDate>Tue, 22 May 2007 08:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://chris.narx.net/2005/12/14/build-your-own-routing-solution/#comment-16106</guid>
		<description>My mistake: My shapefile had 'gid' as id column and not 'id'. Replaced id with gid in update_cost_from_distance function. Cost column in edges table is now correct.</description>
		<content:encoded><![CDATA[<p>My mistake: My shapefile had &#8216;gid&#8217; as id column and not &#8216;id&#8217;. Replaced id with gid in update_cost_from_distance function. Cost column in edges table is now correct.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
