Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b21bf7a
Update mapconfig_for_pedestrian.xml
iboates Dec 17, 2024
2fd5010
Merge pull request #1 from iboates/iboates-patch-1
iboates Dec 17, 2024
53d3de0
Bump minimum required CMake version to 3.10 to fix failure with 4.x.
sebastic Sep 1, 2025
731a1cc
pump up to 3.0.0
cvvergara Oct 23, 2025
ec0eff4
(CI) ubuntu.yml up to compile with psql 13 to 18 and postgis 3
cvvergara Oct 23, 2025
1b8c0fc
(lint) :broom: Removing libpqxx.yml tests they are tested on ubuntu.yml
cvvergara Oct 24, 2025
c2dcee4
(lint) :broom: Not using travis: Removing travis related files.
cvvergara Oct 23, 2025
d6cdc67
Fix warnings found by gcc
cvvergara Oct 23, 2025
7430937
Removing flag that clang doesnt like
cvvergara Oct 23, 2025
3b66705
Fixing compilation issues with clang
cvvergara Oct 23, 2025
e98b94d
Rename ways_vertices_pgr_config.cpp -> vertices_config.cpp
cvvergara Oct 23, 2025
e541365
Geometry column: geom
cvvergara Oct 23, 2025
39f5286
Vertices table with the structure from pgRouting
cvvergara Oct 24, 2025
04a3fca
Rename: ways_config.cpp -> edges_config.cpp
cvvergara Oct 24, 2025
9aa1d7a
Edges: using gid -> id
cvvergara Oct 24, 2025
24afd76
updating NEWS
cvvergara Oct 24, 2025
cc94ac2
Merge pull request #310 from iboates/main
cvvergara Oct 24, 2025
69ab18a
Implementing fixes to rabbit comments
cvvergara Oct 24, 2025
8b79a39
Merge pull request #313 from sebastic/cmake-4
cvvergara Oct 24, 2025
da7d408
Using a small epsilon
cvvergara Oct 24, 2025
bb2a7b7
Merge branch 'develop' into generating-pgrouting-vertex-table-for-v3.0.0
cvvergara Oct 24, 2025
45d1fdc
Fix #305 using suggetion on issue
cvvergara Oct 24, 2025
8a97793
Merge pull request #316 from cvvergara/generating-pgrouting-vertex-ta…
cvvergara Oct 28, 2025
0c9f44f
Escape backslashes when building tab-separated row
mitchellhenke Oct 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 0 additions & 95 deletions .github/workflows/libpqxx.yml

This file was deleted.

70 changes: 40 additions & 30 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,58 @@
name: Build for Ubuntu

# manually triggered workflow

on:
workflow_dispatch:
push:
branches-ignore:
- 'translations_*'
tags: []
pull_request:
paths-ignore:
- '**.po'


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
name: Build
name: Ubuntu psql
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
psql: [9.6,10,11,12, 13]
postgis: [2.5,3]
os: [ubuntu-latest]
psql: [13, 14, 15, 16, 17, 18]
postgis: [3]
release: [Debug, Release]
os: [ubuntu-latest, ubuntu-22.04]
compiler: [ gcc-latest, g++-11, clang ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5

- name: get postgres version
- name: 'Raise Priority for apt.postgresql.org'
run: |
sudo service postgresql start
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()')
echo "PGVER=${pgver}" >> $GITHUB_ENV
PGP=5433
if [ "${{ matrix.psql }}" == "${pgver}" ]; then PGP=5432; fi
echo "PGPORT=${PGP}" >> $GITHUB_ENV
cat << EOF >> ./pgdg.pref
Package: *
Pin: release o=apt.postgresql.org
Pin-Priority: 600
EOF
sudo mv ./pgdg.pref /etc/apt/preferences.d/
sudo apt update

- name: Add PostgreSQL APT repository
run: |
sudo apt-get install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ \
$(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get -y purge postgresql-*
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg-testing main ${{ matrix.psql }}" > /etc/apt/sources.list.d/pgdg.list'
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null

- name: Install compiler
id: install_cc
uses: rlalik/setup-cpp-compiler@master
with:
compiler: ${{ matrix.compiler }}

- name: Install dependencies
run: |
Expand All @@ -54,23 +67,20 @@ jobs:
postgresql-${{ matrix.psql }}-pgrouting \
libpqxx-dev \
postgresql-server-dev-${{ matrix.psql }}
# should be 7 on latest and 6 on 22.04
apt-cache policy libpqxx-dev

- name: Configure
- name: Configure compiler
run: |
export CC=/usr/bin/${{ steps.install_cc.outputs.cc }}
export CXX=/usr/bin/${{ steps.install_cc.outputs.cxx }}
export PATH=/usr/lib/postgresql/${{ matrix.psql }}/bin:$PATH
mkdir build
cd build
cmake -DPOSTGRESQL_VERSION=${{ matrix.psql }} -DCMAKE_BUILD_TYPE=Release -DWITH_DOC=OFF ..
cmake -DCMAKE_BUILD_TYPE=${{ matrix.release }} ..

- name: Build
run: |
cd build
make -j 4
sudo make install

- name: Test
if: false
run: |
sudo service postgresql start
sudo -u postgres createdb -p ${PGPORT} ___vrp___test___
sudo -u postgres bash ./tools/testers/pg_prove_tests.sh postgres ${PGPORT} Release
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)

cmake_minimum_required(VERSION 3.12 FATAL_ERROR)


if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR} )
message(FATAL_ERROR "In-source builds not allowed.
Please make a new directory (called a build directory) and run CMake from there.
You may need to remove CMakeCache.txt." )
endif()

PROJECT(osm2pgrouting)
PROJECT(osm2pgrouting VERSION 3.0.0
LANGUAGES C CXX)

LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
SET(SHARE_DIR "${CMAKE_INSTALL_PREFIX}/share/osm2pgrouting")
Expand Down Expand Up @@ -46,7 +49,7 @@ else()
endif()

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FILE_OFFSET_BITS=64")
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wconversion -pedantic -Wextra -frounding-math -Wno-deprecated -fmax-errors=10")
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wconversion -pedantic -Wextra -frounding-math -Wno-deprecated")

if(WIN32 AND MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_DEPRECATE")
Expand Down
48 changes: 47 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,52 @@
osm2pgRouting 3.0.0

* cmake >= 3.12
* geometry column name: `geom`

New "ways" table structure
Column | Type | Modifications | Default
-------------------+---------------------------+--------------------+-----------
id | bigint | previously was gid | generated always as identity
osm_id | bigint |
tag_id | integer |
length | double precision |
length_m | double precision |
name | text |
source | bigint |
target | bigint |
source_osm | bigint |
target_osm | bigint |
cost | double precision |
reverse_cost | double precision |
cost_s | double precision |
reverse_cost_s | double precision |
rule | text |
one_way | integer |
oneway | text |
x1 | double precision |
y1 | double precision |
x2 | double precision |
y2 | double precision |
maxspeed_forward | double precision |
maxspeed_backward | double precision |
priority | double precision |
geom | geometry(LineString,4326) | previously was the_geom

New "ways_vertices_pgr" table structure

Column | Type | Default
-----------+----------------------+-------------------------------------------
id | bigint | Default: generated always as identity
in_edges | bigint[] | New column
out_edges | bigint[] | New column
x | numeric(11,8) | Default: generated always as (st_x(geom)) stored
y | numeric(11,8) | Default: generated always as (st_y(geom)) stored
osm_id | bigint |
geom | geometry(Point,4326)

osm2pgRouting 2.3.9

*
* Homebrew: Add algorithm for std::transform

osm2pgRouting 2.3.8

Expand Down
26 changes: 0 additions & 26 deletions ci/travis/install-libpqxx.sh

This file was deleted.

63 changes: 0 additions & 63 deletions ci/travis/install-postgres.sh

This file was deleted.

18 changes: 0 additions & 18 deletions ci/travis/osm2pgrouting_build.sh

This file was deleted.

Loading