<div dir="ltr"><pre style="font-family:arial,helvetica,sans-serif"><font><span class="">Hi<br>I am in section 5.2 of this <a href="http://workshop.pgrouting.org/chapters/topology.html">tutorial</a>.<br><br>When i run this command<br>
<i><b><br>SELECT</b></i></span><i><b> <span class="">assign_vertex_id</span><span class="">(</span><span class="">'ways'</span><span class="">,</span> <span class="">0</span><span class="">.</span><span class="">00001</span><span class="">,</span> <span class="">'the_geom'</span><span class="">,</span> <span class="">'gid'</span></b></i><span class=""><i><b>);</b></i><br>
<br>i get the following error<i><b><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: function startpoint(geometry) does not exist<br>LINE 1: SELECT gid AS id, StartPoint(the_geom) AS source, EndPoint(t...<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>
CONTEXT: PL/pgSQL function "assign_vertex_id" line 27 at FOR over EXECUTE statement<br>pgrouting-workshop=# <br><br></b></i></span></font></pre><pre style="font-family:arial,helvetica,sans-serif"><font><span class="">Seems like I am missing the startpoint(geometry) function. <br>
How can I fix this?<br><br></span></font></pre><pre style="font-family:arial,helvetica,sans-serif"><font><span class="">Thanks<br></span></font></pre><pre style="font-family:arial,helvetica,sans-serif"><font><span class="">Maruf<br>
</span></font></pre><pre style="font-family:arial,helvetica,sans-serif"><font><span class=""><br></span></font></pre></div>