<div dir="ltr"><div>Hi<br><br>Thanks for the suggestions. I have executed the legacy.sql. Now I am getting the following error. <br>Could anyone describe the workaround of this issue?<br><br>pgrouting-workshop=# SELECT assign_vertex_id('ways', 0.00001, 'the_geom', 'gid');<br>
NOTICE: CREATE TABLE will create implicit sequence "vertices_tmp_id_seq" for serial column "<a href="http://vertices_tmp.id">vertices_tmp.id</a>"<br>CONTEXT: SQL statement "CREATE TABLE vertices_tmp (id serial)"<br>
PL/pgSQL function "assign_vertex_id" line 15 at EXECUTE statement<br>ERROR: query string argument of EXECUTE is null<br>CONTEXT: PL/pgSQL function "assign_vertex_id" line 36 at EXECUTE statement<br>
pgrouting-workshop=# <br>
<br></div><div>Thanks<br></div><div>Maruf</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 13, 2013 at 2:28 AM, Stephen V. Mather <span dir="ltr"><<a href="mailto:svm@clevelandmetroparks.com" target="_blank">svm@clevelandmetroparks.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, the nice work that GreenInfo did for us with pgRouting notes the following:<br>
<br>
-- Install PostGIS and PgRouting<br>
-- For the most part PgRouting works fine with PostGIS 2.0 but I did need to fix some function names as noted below.<br>
--<br>
-- Changes to routing_core_wrappers.sql<br>
-- * replace "length::double precision as cost" with "cost"; the cost field is now required but we can weight routes by something other than length<br>
-- * fixed numerous references to X() and Y() and SRID() and SETSRID() and STARTPOINT() and ENDPOINT() to use the ST_* versions<br>
-- Changes to routing_topology.sql<br>
-- * assign_vertex_id() call to addGeometryColumn() now uses 3 dimensions instead of 2<br>
<br>
The last of these is because we are using 3D shapes to get terrain profiles for our trails... .<br>
<div class="im"><br>
Best,<br>
Steve<br>
<br>
Stephen V. Mather<br>
GIS Manager<br>
(216) 635-3243 (Work)<br>
<a href="http://clevelandmetroparks.com" target="_blank">clevelandmetroparks.com</a><br>
<br>
<br>
________________________________________<br>
</div>From: <a href="mailto:pgrouting-users-bounces@lists.osgeo.org">pgrouting-users-bounces@lists.osgeo.org</a> [<a href="mailto:pgrouting-users-bounces@lists.osgeo.org">pgrouting-users-bounces@lists.osgeo.org</a>] on behalf of Jelmer Baas [<a href="mailto:baas@speerit.nl">baas@speerit.nl</a>]<br>
Sent: Tuesday, March 12, 2013 3:20 PM<br>
<div class="HOEnZb"><div class="h5">To: pgRouting users mailing list<br>
Subject: Re: [pgrouting-users] ERROR: function startpoint(geometry) does not exist<br>
<br>
I tried this a while back, and found that it's not all that much work to re-write the functions to support Postgis 2.0: the only requirement was adding 'ST_' to all most calls.<br>
<br>
Regards,<br>
Jelmer<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:pgrouting-users-bounces@lists.osgeo.org">pgrouting-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:pgrouting-users-bounces@lists.osgeo.org">pgrouting-users-bounces@lists.osgeo.org</a>] On Behalf Of Stephen V. Mather<br>
Sent: Tuesday, March 12, 2013 19:32<br>
To: pgRouting users mailing list<br>
Subject: Re: [pgrouting-users] ERROR: function startpoint(geometry) does not exist<br>
<br>
To echo Stephen, in my experience, running the legacy.sql file against your database eliminates all the compatibility issues.<br>
<br>
Best,<br>
Steve<br>
<br>
Stephen V. Mather<br>
GIS Manager<br>
(216) 635-3243 (Work)<br>
<a href="http://clevelandmetroparks.com" target="_blank">clevelandmetroparks.com</a><br>
<br>
<br>
________________________________________<br>
From: <a href="mailto:pgrouting-users-bounces@lists.osgeo.org">pgrouting-users-bounces@lists.osgeo.org</a> [<a href="mailto:pgrouting-users-bounces@lists.osgeo.org">pgrouting-users-bounces@lists.osgeo.org</a>] on behalf of Stephen Woodbridge [<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>]<br>
Sent: Tuesday, March 12, 2013 2:13 PM<br>
To: <a href="mailto:pgrouting-users@lists.osgeo.org">pgrouting-users@lists.osgeo.org</a><br>
Subject: Re: [pgrouting-users] ERROR: function startpoint(geometry) does not exist<br>
<br>
Right you are using postgis 2.0 and the tutorial was written for postgis<br>
1.5.x<br>
<br>
You might solve some of these problems but installing legacy.sql.<br>
google: postgis 2.0 legacy.sql<br>
<br>
-steve<br>
<br>
On 3/12/2013 1:56 PM, maruf rahman wrote:<br>
> Hi<br>
> I am in section 5.2 of thistutorial <<a href="http://workshop.pgrouting.org/chapters/topology.html" target="_blank">http://workshop.pgrouting.org/chapters/topology.html</a>>.<br>
><br>
> When i run this command<br>
><br>
><br>
> /*<br>
> SELECT*//* assign_vertex_id('ways', 0.00001, 'the_geom', 'gid'*//*);*/<br>
><br>
><br>
><br>
> i get the following error/*<br>
><br>
> pgrouting-workshop=# SELECT assign_vertex_id('ways', 0.00001, 'the_geom', 'gid');<br>
> NOTICE: CREATE TABLE will create implicit sequence "vertices_tmp_id_seq" for serial column "<a href="http://vertices_tmp.id" target="_blank">vertices_tmp.id</a> <<a href="http://vertices_tmp.id" target="_blank">http://vertices_tmp.id</a>>"<br>
><br>
><br>
> CONTEXT: SQL statement "CREATE TABLE vertices_tmp (id serial)"<br>
> PL/pgSQL function "assign_vertex_id" line 15 at EXECUTE statement<br>
> ERROR: function startpoint(geometry) does not exist<br>
> LINE 1: SELECT gid AS id, StartPoint(the_geom) AS source, EndPoint(t...<br>
><br>
><br>
> ^<br>
> HINT: No function matches the given name and argument types. You might need to add explicit type casts.<br>
> QUERY: SELECT gid AS id, StartPoint(the_geom) AS source, EndPoint(the_geom) as target FROM ways<br>
><br>
><br>
> CONTEXT: PL/pgSQL function "assign_vertex_id" line 27 at FOR over EXECUTE statement<br>
> pgrouting-workshop=#<br>
><br>
> */<br>
><br>
> Seems like I am missing the startpoint(geometry) function.<br>
><br>
><br>
> How can I fix this?<br>
><br>
> Thanks<br>
><br>
> Maruf<br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Pgrouting-users mailing list<br>
> <a href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a><br>
><br>
<br>
_______________________________________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a><br>
<br>
<br>
_______________________________________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a><br>
<br>
_______________________________________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a><br>
<br>
<br>
_______________________________________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a><br>
</div></div></blockquote></div><br></div>