I wasn't able to follow the whole discussion, but you need to make sure that your "geometry column" (often named "the_geom") contains only valid geometries and that it has a correct SRID (not -1).<div>

<br></div><div>Usually you get everything done correctly when you run the PostGIS function "AddGeometryColumn". So you could create a second geometry column, then update it using the values from your existing geometry. By explicitly specifying the SRID in the update query you shouldn't get an error.</div>

<div>Then you can use the new geometry column for the assign_vertex_id function.</div><div><br></div><div>In case your network data has errors, you need to fix them first. Have you tried to load the network data table in QGIS for example?</div>

<div><br></div><div>Daniel</div><div><br><br><div class="gmail_quote">On Tue, Jun 12, 2012 at 5:08 PM, Annu Anurag <span dir="ltr"><<a href="mailto:i.skidoosh@gmail.com" target="_blank">i.skidoosh@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">But sir, I haven't specified anywhere that the column would have point values. And the constraint of srid has been dropped. I've only followed the tutorial and done these three things.<br>

<br>Created a column called, "source" in roads_line<br>

<br>Created a column called, "target" in roads_line<br><br>and tried to run assign_vertex_id.<br> <br>I haven't made any explicit mention of the new column to have to contain point data.<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></blockquote></div><br><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><br>
</div>