<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>see:</FONT></DIV>
<DIV><FONT size=2><A 
href="http://www.cartoweb.org/doc/cw3.3/xhtml/user.install.html#user.install.demo.details.demoRouting.databaseconfiguration">http://www.cartoweb.org/doc/cw3.3/xhtml/user.install.html#user.install.demo.details.demoRouting.databaseconfiguration</A></FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=goutosig@yahoo.fr href="mailto:goutosig@yahoo.fr">guillaume 
  champlong</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=oliver.christen@camptocamp.com 
  href="mailto:oliver.christen@camptocamp.com">Oliver Christen</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, June 25, 2007 3:46 PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE : Re: [Cartoweb-users] 
  routing module</DIV>
  <DIV><BR></DIV>the routing_results table is generated by the module, I think ; 
  and actually, I can't find this table in my db... <BR><BR><B><I>Oliver 
  Christen &lt;<A 
  href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</A>&gt;</I></B> 
  a écrit&nbsp;:
  <BLOCKQUOTE class=replbq 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
    <META content="MSHTML 6.00.5730.11" name=GENERATOR>
    <DIV><FONT size=2>hi</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>a DB error message is certainly not a valid 
    id.</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV>ERREUR:&nbsp; la relation &#65533;routing_results_seq&#65533; n'existe pas</DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2>you are missing a sequence named&nbsp;"</FONT><FONT 
    size=3>routing_results_seq" on the table "routing_results"</FONT></DIV>
    <DIV><FONT size=2>I presume it should work if you add one.</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>regards</FONT></DIV>
    <DIV><FONT size=2>Oliver</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <BLOCKQUOTE 
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">----- 
      Original Message ----- </DIV>
      <DIV 
      style="BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B> 
      <A title=goutosig@yahoo.fr href="mailto:goutosig@yahoo.fr">guillaume 
      champlong</A> </DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B> 
      <A title=cartoweb-users@lists.maptools.org 
      href="mailto:cartoweb-users@lists.maptools.org">carto web</A> </DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B> 
      Monday, June 25, 2007 1:25 PM</DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Subject:</B> 
      Re: [Cartoweb-users] routing module</DIV>
      <DIV><BR></DIV><PRE>hi,<BR><BR>here's the result after adding the line you said:<BR><BR> type object<BR>obj<BR>object(DB_Error)#322 (8) {<BR>  ["error_message_prefix"]=&gt;<BR>  string(0) ""<BR> 
 ["mode"]=&gt;<BR>  int(1)<BR>  ["level"]=&gt;<BR>  int(1024)<BR>  ["code"]=&gt;<BR>  int(-1)<BR>  ["message"]=&gt;<BR>  string(23) "DB Error: unknown error"<BR>  ["userinfo"]=&gt;<BR>  string(106) "SELECT NEXTVAL('routing_results_seq') [nativecode=ERREUR:  la relation &#65533;routing_results_seq&#65533; n'existe pas]"<BR>  ["backtrace"]=&gt;<BR>  array(26) {<BR>    [0]=&gt;<BR>    array(6) {<BR>      ["file"]=&gt;<BR>      string(47) "/home/gis2d3d/www/cartoweb3/include/pear/DB.php"<BR>      ["line"]=&gt;<BR>      int(888)<BR>      ["function"]=&gt;<BR>      string(10) "PEAR_Error"<BR>      ["class"]=&gt;<BR>      string(10) "PEAR_Error"<BR>      ["type"]=&gt;<BR>      string(2) "-&gt;"<BR>      ["args"]=&gt;<BR>      array(5) {<BR>        [0]=&gt;<BR>        string(23) "DB Error: unknown<BR> error"<BR>        [1]=&gt;<BR>        int(-1)<BR>        [2]=&gt;<BR>        int(1)<BR>        [3]=&gt;<BR>        int(1024)<BR>        [4]=&gt;<BR>        string(106) "SELECT
 NEXTVAL('routing_results_seq') [nativecode=ERREUR:  la relation &#65533;routing_results_seq&#65533; n'existe pas]"<BR>      }<BR>    }<BR>    [1]=&gt;<BR>    array(6) {<BR>      ["file"]=&gt;<BR>      string(49) "/home/gis2d3d/www/cartoweb3/include/pear/PEAR.php"<BR>      ["line"]=&gt;<BR>      int(557)<BR>      ["function"]=&gt;<BR>      string(8) "DB_Error"<BR>      ["class"]=&gt;<BR>      string(8) "DB_Error"<BR>      ["type"]=&gt;<BR>      string(2) "-&gt;"<BR>      ["args"]=&gt;<BR>      array(4) {<BR>        [0]=&gt;<BR>        int(-1)<BR>        [1]=&gt;<BR>        int(1)<BR>        [2]=&gt;<BR>        int(1024)<BR>        [3]=&gt;<BR>        string(106) "SELECT NEXTVAL('routing_results_seq') [nativecode=ERREUR:  la relation &#65533;routing_results_seq&#65533; n'existe pas]"<BR>      }<BR>   <BR> }<BR>    [2]=&gt;<BR>    array(6) {<BR>      ["file"]=&gt;<BR>      string(54) "/home/gis2d3d/www/cartoweb3/include/pear/DB/common.php"<BR>      ["line"]=&gt;<BR>     
 int(1834)<BR>      ["function"]=&gt;<BR>      string(10) "raiseError"<BR>      ["class"]=&gt;<BR>      string(4) "PEAR"<BR>      ["type"]=&gt;<BR>      string(2) "-&gt;"<BR>      ["args"]=&gt;<BR>      array(7) {<BR>        [0]=&gt;<BR>        object(DB_Error)#321 (8) {<BR>          ["error_message_prefix"]=&gt;<BR>          string(0) ""<BR>          ["mode"]=&gt;<BR>          int(1)<BR>          ["level"]=&gt;<BR>          int(1024)<BR>          ["code"]=&gt;<BR>          int(-1)<BR>          ["message"]=&gt;<BR>          string(23) "DB Error: unknown error"<BR>          ["userinfo"]=&gt;<BR>          string(106) "SELECT NEXTVAL('routing_results_seq') [nativecode=ERREUR:  la relation &#65533;routing_results_seq&#65533; n'existe pas]"<BR>          ["backtrace"]=&gt;<BR>          array(29) {<BR>           <BR> [0]=&gt;<BR>            array(6) {<BR>              ["file"]=&gt;<BR>              string(47) "/home/gis2d3d/www/cartoweb3/include/pear/DB.php"<BR>             
 ["line"]=&gt;<BR>              int(888)<BR>              ["function"]=&gt;<BR>              string(10) "PEAR_Error"<BR>              ["class"]=&gt;<BR>              string(10) "PEAR_Error"<BR>              ["type"]=&gt;<BR>              string(2) "-&gt;"<BR>              ["args"]=&gt;<BR>              array(5) {<BR>                [0]=&gt;<BR>                string(23) "DB Error: unknown error"<BR>                [1]=&gt;<BR>                int(-1)<BR>                [2]=&gt;<BR>                int(1)<BR>                [3]=&gt;<BR>                NULL<BR>                [4]=&gt;<BR>                string(106) "SELECT NEXTVAL('routing_results_seq') [nativecode=ERREUR:  la relation &#65533;routing_results_seq&#65533; n'existe pas]"<BR>              }<BR>            }<BR>            [1]=&gt;<BR>            array(6)<BR> {<BR>              ["file"]=&gt;<BR>              string(49) "/home/gis2d3d/www/cartoweb3/include/pear/PEAR.php"<BR>              ["line"]=&gt;<BR>           
   int(557)<BR>              ["function"]=&gt;<BR>              string(8) "DB_Error"<BR>              ["class"]=&gt;<BR>              string(8) "DB_Error"<BR>              ["type"]=&gt;<BR>              string(2) "-&gt;"<BR>              ["args"]=&gt;<BR>              array(4) {<BR>                [0]=&gt;<BR>                int(-1)<BR>                [1]=&gt;<BR>                int(1)<BR>                [2]=&gt;<BR>                NULL<BR>                [3]=&gt;<BR>                string(106) "SELECT NEXTVAL('routing_results_seq') [nativecode=ERREUR:  la relation &#65533;routing_results_seq&#65533; n'existe pas]"<BR>              }<BR>            }<BR><BR>apparently, there is no sequence on the routing_results table, whereas there should, is that it?<BR>so what to do?<BR><BR>thanks<BR>G.<BR></PRE><B><I>Oliver 
      Christen &lt;oliver.christen@camptocamp.com&gt;</I></B> a écrit&nbsp;: 
      <BLOCKQUOTE class=replbq 
      style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
        <META content="MSHTML 6.00.5730.11" name=GENERATOR>
        <STYLE></STYLE>

        <DIV><FONT size=2>Hi</FONT></DIV>
        <DIV><FONT size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2>SELECT Object id #336 doesnt look like correct 
        sql.</FONT></DIV>
        <DIV><FONT size=2>I would say some error occured when the sql was 
        generated.</FONT></DIV>
        <DIV><FONT size=2>the $resultsId variable doesnt seem to be replaced 
        correctly.</FONT></DIV>
        <DIV>&nbsp;</DIV>
        <DIV><FONT size=2>try to add:</FONT></DIV>
        <DIV><FONT size=2>x($resultsId);</FONT></DIV>
        <DIV><FONT size=2>at the beginning of the the getNodes function in 
        ServerDemoRouting.php</FONT></DIV>
        <DIV><FONT size=2>this will display the content of the variable and stop 
        further execution of the program.</FONT></DIV>
        <DIV><FONT size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2>Let me know whats the result</FONT></DIV>
        <DIV><FONT size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2>regards</FONT></DIV>
        <DIV><FONT size=2>Oliver</FONT></DIV>
        <BLOCKQUOTE 
        style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
          <DIV 
          style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">----- 
          Original Message ----- </DIV>
          <DIV 
          style="BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B> 
          <A title=goutosig@yahoo.fr href="mailto:goutosig@yahoo.fr">guillaume 
          champlong</A> </DIV>
          <DIV 
          style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B> 
          <A title=cartoweb-users@lists.maptools.org 
          href="mailto:cartoweb-users@lists.maptools.org">carto web</A> </DIV>
          <DIV 
          style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B> 
          Sunday, June 24, 2007 7:18 PM</DIV>
          <DIV 
          style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Subject:</B> 
          [Cartoweb-users] routing module</DIV>
          <DIV><BR></DIV>hi,<BR><BR>I have a problem with my routing module; 
          everything works on pgsql (functions, etc) but when I launch a 
          research in my cartoclient, I have this error:<BR><BR><PRE>class:   SoapFaultWrapper<BR>message:   Error quering routing database Message: DB Error: unknown error  Userinfo: INSERT INTO routing_results SELECT Object id #336, 1182704023, gid, the_geom FROM route500_44 WHERE edge_id = 533 [nativecode=ERREUR:  erreur de syntaxe sur ou pr&#65533;s de &#65533;id&#65533; at character 43]<BR>Backtrace:<BR><BR>file: 69 - /www/cartoweb3/projects/carene/plugins/demoRouting/server/ServerDemoRouting.php<BR>call: Utils::checkDbError(Object(DB_Error), "Error quering routing database")</PRE>here's 
          the mapfile layer:<BR>LAYER<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
          NAME "graph"<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE 
          LINE<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STATUS 
          ON<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CONNECTIONTYPE 
          postgis<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CONNECTION 
          "user=my_user password=my_passwd host=localhost 
          dbname=my_db"<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DATA "the_geom 
          from routing_results"<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
          TEMPLATE "ttt"<BR>END<BR>&nbsp;I specified&nbsp; the name of the 
          column containing the name of the towns in the routing.ini (client 
          side), as well as the name of the vertices table.<BR><BR>can you tell 
          me where this problem comes from?<BR><BR>thanks 
          <DIV></DIV>
          <HR SIZE=1>
          Ne gardez plus qu'une seule adresse mail ! <A 
          href="http://www.trueswitch.com/yahoo-fr/">Copiez vos mails</A> vers 
          Yahoo! Mail 
          <DIV></DIV>
          <HR>

          <DIV></DIV>_______________________________________________<BR>Cartoweb-users 
          mailing 
          list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BLOCKQUOTE><BR>
      <DIV></DIV>
      <HR SIZE=1>
      Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions 
      ! Profitez des connaissances, des opinions et des expériences des 
      internautes sur <A 
      href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">Yahoo! 
      Questions/Réponses</A>. 
      <DIV></DIV>
      <HR>

      <DIV></DIV>_______________________________________________<BR>Cartoweb-users 
      mailing 
      list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BLOCKQUOTE><BR>
  <P>
  <HR SIZE=1>
  Ne gardez plus qu'une seule adresse mail ! <A 
  href="http://www.trueswitch.com/yahoo-fr/">Copiez vos mails</A> vers Yahoo! 
  Mail </BLOCKQUOTE></BODY></HTML>