Comments (8)
pgRouting has a well maintained Docker repository and as far as I know they all images contain osm2pgrouting as well: https://github.com/pgRouting/docker-pgrouting/ . Could you maybe compare what is different in the way you are creating a Docker image?
from osm2pgrouting.
It seems maybe they ran into the same problem? For example, looking at the dockerfile for the Postgres 13 version,
They pin osm2pgrouting version to 2.3.6 and also fix the version of libpqxx:
ENV OSM2PGROUTING_VERSION 2.3.6
RUN apt update \
&& apt install -y \
libpqxx-6.2 \
...
from osm2pgrouting.
These errors from compiler are because Libpqxx v7.x require C++17.
Related to issue #289
from osm2pgrouting.
This is not a bug. It's an improvement so I'm going to change the tag.
from osm2pgrouting.
from osm2pgrouting.
In addition to compile flag -std=c++17, I also had to change
diff --git a/src/osm_elements/osm2pgrouting.cpp b/src/osm_elements/osm2pgrouting.cpp
index e11fb2f..37e6232 100644
--- a/src/osm_elements/osm2pgrouting.cpp
+++ b/src/osm_elements/osm2pgrouting.cpp
@@ -140,7 +140,7 @@ int main(int argc, char* argv[]) {
cout << "Can't open database" << endl;
return 1;
}
- C.disconnect ();
+ C.close ();
}catch (const std::exception &e){
cerr << e.what() << std::endl;
return 1;
with my version of pqxx:
user:build$ grep VERSION /usr/include/pqxx/version.hxx
#ifndef PQXX_H_VERSION
# define PQXX_VERSION "7.3.1"
# define PQXX_VERSION_MAJOR 7
# define PQXX_VERSION_MINOR 3
# define PQXX_VERSION_CHECK \
check_pqxx_version_##PQXX_VERSION_MAJOR##_##PQXX_VERSION_MINOR
PQXX_LIBEXPORT int PQXX_VERSION_CHECK() noexcept;
from osm2pgrouting.
@jmarca
Sorry for the delay, the PR is ready if you can review #292 and leave a comment on the PR
The most critical part is the change on the minimum standard for C++
- C++ minimum standard depends on libpqxx
- For version libpqxx 6: C++14
- For version libpqxx 7: C++17 see here
I also modified FindPQXX that detects the version, can you verify that it works as it should.
from osm2pgrouting.
from osm2pgrouting.
Related Issues (20)
- Table "ways" has "gid" as id HOT 2
- Migrate to GH Actions
- How is the column "cost" and similars calculated? HOT 5
- mapconfig_for_cars.xml -> "unclassified" has wrong priority HOT 7
- Issue with data import: fe_sendauth: no password supplied HOT 3
- Remove "priority" and "max-speed"
- New release? HOT 4
- 2.3.7 compile error HOT 5
- Change 'gid' column in 'ways' table to id' HOT 15
- Move branch master to "main"
- Release v2.3.8 HOT 1
- Some way are not imported in the ways table HOT 2
- Too many edges HOT 4
- Error opening /usr/share/osm2pgrouting/mapconfig.xml HOT 1
- Problem creating topology on pgrouting HOT 2
- unable to open / parse config file HOT 3
- osm_relations table does not get populated
- unclosed token at line 51376846 Failed to open / parse data file
- Problem compiling on alpine linux (libpqxx) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osm2pgrouting.