demo (#22) - PHP-routing-script of the tutorial (getting error) (#90) - Message List

PHP-routing-script of the tutorial (getting error)

Well, I think I nearly got it, but:

If I start:  http://localhost/routing/04.ax_routing.php I get the following errors:

Warning: pg_query() [function.pg-query]: Query failed: FEHLER: Invalid OGC WKT (too short) in /var/www/routinganwendung/04.ax_routing.php on line 41

Warning: pg_fetch_result(): supplied argument is not a valid PostgreSQL result resource in /var/www/routinganwendung/04.ax_routing.php on line 43

Warning: pg_fetch_result(): supplied argument is not a valid PostgreSQL result resource in /var/www/routinganwendung/04.ax_routing.php on line 44

Warning: pg_fetch_result(): supplied argument is not a valid PostgreSQL result resource in /var/www/routinganwendung/04.ax_routing.php on line 45

Warning: pg_fetch_result(): supplied argument is not a valid PostgreSQL result resource in /var/www/routinganwendung/04.ax_routing.php on line 46 .... .....

Why could this be? The connection to the database works well. Thank you, Kai

  • Message #886

    Hi !

    I am having this same problem. The error Invalid OGC WKT (too short), and I do not know what to do... Did you figure it out what was it?

    Please help...thanks for your time...

    Paweluz

    • Message #890

      Hi Paweluz,

      Now I got reported this problem twice within a short time. Something might have changed somewhere which I'm not aware of.

      Kai promised to write an up-to-date wiki page, and I already see some strong activity of edits in the TRAC timeline.

      The problem with this workshop is that it was made 2007, almost 2 years ago from now. Many things changed since then especially with OpenLayers?. It wasn't a fully supported version that time either.

      So I wouldn't stuck too much with details of this workshop and take it more as a general guideline to give you an idea how to proceed. If I had to write it again now I would probably do it slightly different, using JSON for example instead of some XML.

      Of course it's allowed to fix errors in the workshop ... just "hack the wiki" if you find some.