<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 7:28 PM, Luís de Sousa <span dir="ltr"><<a href="mailto:luis.a.de.sousa@gmail.com" target="_blank">luis.a.de.sousa@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hello again,</div><div><br></div><div>

In section 5 of the Workshop the assign_vertex_id function is used on a MULTILINESTRING column:</div><div><br></div><a href="http://workshop.pgrouting.org/chapters/topology.html#calculate-topology" target="_blank">http://workshop.pgrouting.org/chapters/topology.html#calculate-topology</a><br>


<div><br></div><div>This function makes use of the st_startpoint function that can only take as input a LINESTRING. I worked around this by creating an extra column in the ways table, but I wonder what can be the usage may be of a network composed by MULTILINESTRING objects. Perhaps it would be better to simply change the data type used in this example.</div>

</div></blockquote><div><br></div><div style>Yes, this is another issue that comes with PostGIS 2.0.</div><div style>You can change "multi" geometries into single geometry like this:</div><br><font face="courier new, monospace">SELECT (ST_Dump(geom)).geom AS geom FROM <table></font></div>

<div class="gmail_quote"><br></div><div class="gmail_quote" style>or</div><div class="gmail_quote" style><br></div><font face="courier new, monospace">ALTER TABLE <table> ALTER COLUMN geom <br>  SET DATA TYPE geometry(Linestring,4326) USING ST_GeometryN(geom, 1);</font></div>

<div class="gmail_extra"><br></div><div class="gmail_extra">In general these are all LINESTRINGS, so it's no problem to convert.</div><div class="gmail_extra"><br></div><div class="gmail_extra">With new release of pgRouting this will be fixed.<br>

<div class="gmail_quote"><br>Daniel<br><br><div style><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:18px;background-color:rgba(248,248,248,0.6)"><br>

</span></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br clear="all"><div><br></div>-- <br><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>

eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66,99,171)" target="_blank">daniel.kastl@georepublic.de</a><br>Web: <a href="http://georepublic.de/" style="color:rgb(66,99,171)" target="_blank">http://georepublic.de</a></span>
</div></div>