<div><div>Hi there,</div><div><br></div><div>I'm Pablo Tutino,  from Argentina.</div><div>I've imported a Garmin .img DB files into polish format, then into shapes and finally into PostGis, using shp2pgsql.exe and QGIS.</div>
<div>Now I have to create the directed graph up to use the pgRouting Library.</div><div><br></div><div>The first error I found is that the create_graph_tables wrapper function is not included neither in pgRouting windows binaries nor sources.</div>
<div>I found the wrapper on this link (<a href="http://postgis.refractions.net/pipermail/postgis-users/2007-April/015159.html">http://postgis.refractions.net/pipermail/postgis-users/2007-April/015159.html</a>).</div><div>
<br></div><div>The problem is the DB's schema I was able to import to PostGis is not like the one in the example, <a href="http://www.davidgis.fr/documentation/pgrouting-1.02/">http://www.davidgis.fr/documentation/pgrouting-1.02/</a>.</div>
<div><br></div><div>That schema includes id,source,target,x1,y1,x2,y2,cost,reverse_cost,oneway,length,rule,to_cost, but mine doesn't have x1,y1,x2,y2.</div><div><br></div><div>How can I solve this?</div><div>I mean: </div>
<div>1) How can I create a graph table from a schema containing  only these fields:</div><div>{gid integer NOT NULL,"LABEL" character varying(50),"TYPE" character varying(10),"LEVEL" character varying(9),the_geom geometry }? </div>
<div>(the source, target and edge were created using assing_vertex_id function)</div><div><br></div><div>2) how can I use the correct create_schema_tables function?</div><div><br></div><div>Thanks a lot </div><div>Pablo</div>
<div><br></div><div><br></div><div>-- </div><div>Ing. Pablo Hernán Tutino</div><div>DIVENTI - Ingeniería y Desarrollo</div><div><a href="mailto:pablo.tutino@diventi.com.ar">pablo.tutino@diventi.com.ar</a></div><div><a href="http://www.diventi.com.ar">www.diventi.com.ar</a></div>
<div>TE: +54-11-1569719001</div>
</div>