[Routing] Bringing routing functionality to a web-mappingapplication - but how?

Frank Glück frankimglueck at gmx.de
Sat Jun 6 14:11:10 BST 2009


Hi,

Tristram wrote:
>pgrouting is nice to get started. It works well, has a tool to import
>data from OSM.

But that tool seems to need linux and tons of ressources, they wrote? I'm
going to use it on a vserver with only 256 MB RAM - do I have any chance?
For the moment anyway I get a lot of errors on trying to compile it:

======================================================================
g++ -c src/Export2DB.cpp src/math_functions.cpp src/Node.cpp
src/OSMDocumentParserCallback.cpp src/Way.cpp src/OSMDocument.cpp
src/Type.cpp src/Class.cpp src/Configuration.cpp
src/ConfigurationParserCallback.cpp -I./ -Isrc -I/usr/include/pgsql
-I/usr/include/postgresql -ggdb3
In file included from src/Export2DB.cpp:21:
src/stdafx.h:25:34: error: boost/lexical_cast.hpp: Datei oder Verzeichnis
nicht gefunden
In file included from src/Export2DB.cpp:22:
src/Export2DB.h:25: error: expected constructor, destructor, or type
conversion before string constant
In file included from src/math_functions.cpp:21:
src/stdafx.h:25:34: error: boost/lexical_cast.hpp: Datei oder Verzeichnis
nicht gefunden
In file included from src/math_functions.h:24,
                 from src/math_functions.cpp:22:
src/Node.h:47: error: 'ushort' does not name a type
In file included from src/Node.cpp:21:
src/stdafx.h:25:34: error: boost/lexical_cast.hpp: Datei oder Verzeichnis
nicht gefunden
In file included from src/Node.cpp:22:
src/Node.h:47: error: 'ushort' does not name a type
src/Node.cpp: In constructor 'osm::Node::Node(long long int, double,
double)':
src/Node.cpp:33: error: 'class osm::Node' has no member named 'numsOfUse'
In file included from src/OSMDocumentParserCallback.cpp:21:
src/stdafx.h:25:34: error: boost/lexical_cast.hpp: Datei oder Verzeichnis
nicht gefunden
In file included from src/Way.cpp:21:
src/stdafx.h:25:34: error: boost/lexical_cast.hpp: Datei oder Verzeichnis
nicht gefunden
In file included from src/OSMDocument.cpp:21:
src/stdafx.h:25:34: error: boost/lexical_cast.hpp: Datei oder Verzeichnis
nicht gefunden
In file included from src/OSMDocument.cpp:24:
src/Node.h:47: error: 'ushort' does not name a type
src/OSMDocument.cpp: In member function 'void
osm::OSMDocument::SplitWays()':
src/OSMDocument.cpp:94: error: 'boost' has not been declared
src/OSMDocument.cpp:94: error: expected primary-expression before '>' token
src/OSMDocument.cpp:94: error: invalid operands of types 'double' and 'const
char [2]' to binary 'operator+'
src/OSMDocument.cpp:94: error: 'boost' has not been declared
src/OSMDocument.cpp:94: error: expected primary-expression before '>' token
src/OSMDocument.cpp:94: error: invalid operands of types 'double' and 'const
char [2]' to binary 'operator+'
src/OSMDocument.cpp:105: error: 'class osm::Node' has no member named
'numsOfUse'
src/OSMDocument.cpp:114: error: 'boost' has not been declared
src/OSMDocument.cpp:114: error: expected primary-expression before '>' token
src/OSMDocument.cpp:114: error: invalid operands of types 'double' and
'const char [2]' to binary 'operator+'
src/OSMDocument.cpp:114: error: 'boost' has not been declared
src/OSMDocument.cpp:114: error: expected primary-expression before '>' token
src/OSMDocument.cpp:114: error: invalid operands of types 'double' and
'const char [3]' to binary 'operator+'
src/OSMDocument.cpp:125: error: 'boost' has not been declared
src/OSMDocument.cpp:125: error: expected primary-expression before '>' token
src/OSMDocument.cpp:125: error: invalid operands of types 'double' and
'const char [2]' to binary 'operator+'
src/OSMDocument.cpp:125: error: 'boost' has not been declared
src/OSMDocument.cpp:125: error: expected primary-expression before '>' token
src/OSMDocument.cpp:125: error: invalid operands of types 'double' and
'const char [3]' to binary 'operator+'
src/OSMDocument.cpp:129: error: 'boost' has not been declared
src/OSMDocument.cpp:129: error: expected primary-expression before '>' token
src/OSMDocument.cpp:129: error: invalid operands of types 'double' and
'const char [2]' to binary 'operator+'
src/OSMDocument.cpp:129: error: 'boost' has not been declared
src/OSMDocument.cpp:129: error: expected primary-expression before '>' token
src/OSMDocument.cpp:129: error: invalid operands of types 'double' and
'const char [2]' to binary 'operator+'
In file included from src/Type.cpp:21:
src/stdafx.h:25:34: error: boost/lexical_cast.hpp: Datei oder Verzeichnis
nicht gefunden
In file included from src/Class.cpp:21:
src/stdafx.h:25:34: error: boost/lexical_cast.hpp: Datei oder Verzeichnis
nicht gefunden
In file included from src/Configuration.cpp:21:
src/stdafx.h:25:34: error: boost/lexical_cast.hpp: Datei oder Verzeichnis
nicht gefunden
In file included from src/ConfigurationParserCallback.cpp:21:
src/stdafx.h:25:34: error: boost/lexical_cast.hpp: Datei oder Verzeichnis
nicht gefunden
make: *** [all] Fehler 1
======================================================================

I have no idea, how to fix that. Even the file that is mentioned on the very
first error (lexical_cast.hpp) I can not locate anywhere on my vserver.

>To display the route on a map, openlayers is quite convinient.

But not for me I fear, because I will realize it in SVG graphics.

Thanks a lot,
Frank





More information about the Routing mailing list