Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
1c0a502
Created a new file for pgr_types_h struture
vidhan13j07 May 18, 2017
ec038d8
test compile
XJTUmg May 19, 2017
9dc2b34
new file
XJTUmg May 19, 2017
9f70d8d
New file for pgr_contracted_blob_h structure
thisisashukla May 19, 2017
44998d4
Removed pgr_contract_blob structure from pgr_types.h
thisisashukla May 19, 2017
d426181
Build is succesfull after deleting pgr_path_t.h
vidhan13j07 May 19, 2017
89a4d45
Renamed pgr_contract_blob to contracted_rt.h
thisisashukla May 19, 2017
42aea26
Rectified header guard for contracted_rt.h
thisisashukla May 19, 2017
5d08ded
created pgr_vickyDijkstra function
cvvergara May 19, 2017
1055f79
added vickyDijkstra to CMakelists.txt
cvvergara May 19, 2017
645f96b
updating the sql-update-scripts
cvvergara May 19, 2017
42d1241
fixing the test results
cvvergara May 19, 2017
488ce9a
fixing the test results 1
cvvergara May 19, 2017
02e41e3
added the pgtap test of pgr_vickyDijkstra
cvvergara May 19, 2017
c04b0ed
removing unused structure
XJTUmg May 19, 2017
180fd58
Merge pull request #792 from vidhan13j07/pgr_path_t
cvvergara May 21, 2017
7430ca2
Merge branch 'develop' into task/path_element_t
cvvergara May 21, 2017
bd38bba
fixing appveyor 1
cvvergara May 21, 2017
5b97e37
fixing appveyor 2
cvvergara May 21, 2017
daca26a
fixing appveyor 3
cvvergara May 21, 2017
7a33beb
testing new create.sh
cvvergara May 21, 2017
e3cda5c
As current funny test
cvvergara May 21, 2017
c9ee23b
code compiles and runs locally
cvvergara May 21, 2017
14fea33
code is linted compiles & runs locally
cvvergara May 21, 2017
5d39e59
template documentation working
cvvergara May 21, 2017
fa4abe3
removing testing directory
cvvergara May 21, 2017
75a3aaa
removing the pgtap test
cvvergara May 21, 2017
57da4da
Merge pull request #794 from XJTUmg/task/path_element_t
cvvergara May 21, 2017
9a55979
updating the README
cvvergara May 21, 2017
2e1e499
starting to change CMakelist to accept 10betaX for postgresql version
cvvergara May 22, 2017
431c326
Added proposed changes
thisisashukla May 22, 2017
a4d2ff0
Merge branch 'develop' into gsocprac2
thisisashukla May 22, 2017
42505d8
Merge pull request #793 from daas-ankur-shukla/gsocprac2
cvvergara May 22, 2017
2024001
Merge branch 'develop' into fix/template
cvvergara May 22, 2017
01f0425
removing no longer used file pgr_types
cvvergara May 22, 2017
25bec77
testing on jenkins 1
cvvergara May 22, 2017
1705fe2
appveyor fixing arrays_input 1
cvvergara May 22, 2017
25ac477
appveyor fixing arrays_input 2
cvvergara May 22, 2017
bf2ad30
appveyor fixing arrays_input 3
cvvergara May 22, 2017
7731ed1
appveyor fixing arrays_input 4
cvvergara May 22, 2017
0fcc53e
appveyor fixing arrays_input 5
cvvergara May 22, 2017
101e1d8
fixed some problems with pick& delivery tests, they pass now locally
cvvergara May 22, 2017
7abc1d8
Merge pull request #796 from cvvergara/fix/template
cvvergara May 22, 2017
c5f4530
Merge pull request #797 from cvvergara/fix/postgres10
cvvergara May 22, 2017
31be88b
postgres 10 adding float.h to vehicles_input
cvvergara May 23, 2017
8249b55
fixing for postgres 10
cvvergara May 23, 2017
5c8ab5f
fixing preprocessor conditional
cvvergara May 23, 2017
617e54a
fixing preprocessor conditional 1
cvvergara May 23, 2017
cc4bfed
fixing preprocessor conditional 2
cvvergara May 23, 2017
8367b5b
jenkins: alpha.c:283:16: error: DBL_MAX undeclared
cvvergara May 23, 2017
dc3c799
fixing contition in CMakelists
cvvergara May 23, 2017
3fd6ca2
trying install targets
cvvergara May 23, 2017
cb6e8ca
jenkins checking folder contents
cvvergara May 23, 2017
568b39f
jenkins fixing copies to edb folder contents
cvvergara May 23, 2017
420f58c
showing the create extenstion statement
cvvergara May 23, 2017
5675946
fix: missed the copying of control file
cvvergara May 23, 2017
152cca9
reverting testing changes
cvvergara May 23, 2017
1f347a5
fixed the directory for contrl
cvvergara May 23, 2017
47b2528
changed label graph test
cvvergara May 23, 2017
9331e33
testing pickDeliver on Jenkins & appveyor
cvvergara May 23, 2017
197b6e4
yet again testing pickDeliver both functions
cvvergara May 23, 2017
00de27e
minimal testing of pickDeliverEuclidean
cvvergara May 23, 2017
e4ba660
giving the data in order
cvvergara May 23, 2017
f96ac38
forgot the euclidean test
cvvergara May 23, 2017
e0ee2a7
now forgot the pickDeliver test files for cygwin
cvvergara May 23, 2017
1059ea6
updating doc-pickDeliverEuclidean-cygwin.result
cvvergara May 23, 2017
348acdb
fixed a type mismatch
cvvergara May 23, 2017
0be860f
cleand bad stored results for appveyor
cvvergara May 23, 2017
d0b2c26
saving new results for appveyor
cvvergara May 23, 2017
76f10ca
minimal changes
cvvergara May 23, 2017
a37c561
using the correct name in pickDeliver test
cvvergara May 23, 2017
2b8df19
checking the tests are the same in pickdeliver appveyor and travis
cvvergara May 23, 2017
44962df
Clean CMakelists of unused code
cvvergara May 24, 2017
d955e72
wrap or comment lines 496-L497
cvvergara May 24, 2017
bd6fcf2
Merge branch 'develop' into fix/postgres10
cvvergara May 24, 2017
dde186c
removing problem with -fpic
cvvergara May 24, 2017
1a21f35
removing problem with vs cmkae directives
cvvergara May 24, 2017
5354fe6
appveyor removing problem with vs cmkae directives 2
cvvergara May 24, 2017
912e837
appveyor removing problem with vs cmkae directives 3
cvvergara May 24, 2017
2265831
appveyor removing problem with vs cmkae directives 4
cvvergara May 24, 2017
7a5b805
appveyor removing problem with vs cmkae directives 5
cvvergara May 24, 2017
e864823
appveyor removing problem with vs cmkae directives 6
cvvergara May 24, 2017
fe73e53
appveyor removing problem with vs cmkae directives 7
cvvergara May 24, 2017
b5c4c78
appveyor removing problem with vs cmkae directives 8
cvvergara May 24, 2017
ce58585
removing unused code on CMalelists
cvvergara May 24, 2017
a1a7674
testing a wrapper of stdint.h
cvvergara May 24, 2017
1bf6ecc
finish testing wrapping stdint.h didnt work
cvvergara May 24, 2017
3eaad6d
sql-scripts (deleted)
cvvergara May 24, 2017
38dd4ca
removed unused test files for cugwin pickDeliver
cvvergara May 24, 2017
13709c3
Merge pull request #798 from cvvergara/fix/postgres10
cvvergara May 26, 2017
b81d77b
fix appveyor
vidhan13j07 May 26, 2017
b415653
fix appveyor
vidhan13j07 May 26, 2017
7608e30
Merge remote-tracking branch 'upstream/develop' into gsoc/rewritetrsp
vidhan13j07 May 26, 2017
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
50 changes: 22 additions & 28 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,14 @@ endif(NOT POSTGRESQL_FOUND)

if(NOT POSTGRESQL_VERSION_STRING)
message(FATAL_ERROR "pg_config was not found. Please check your PostgreSQL installation!")
endif(NOT POSTGRESQL_VERSION_STRING)
endif()

string(SUBSTRING "${POSTGRESQL_VERSION_STRING}" 11 -1 POSTGRESQL_VERSION)

# for XbetaY XalphaY XrcY -> X.Y
string(REGEX REPLACE "^([0-9]+)[beta|alpha|rc].*" "\\1.0" POSTGRESQL_VERSION ${POSTGRESQL_VERSION})

#for X.Y.Z -> XY Y<10
string(REGEX REPLACE "^([0-9]+)\\.([0-9]+).*" "\\1\\2" PGSQL_VERSION ${POSTGRESQL_VERSION})

if("${POSTGRESQL_VERSION}" VERSION_LESS "${POSTGRESQL_MINIMUM_VERSION}")
Expand All @@ -343,9 +349,8 @@ if(WIN32)
endif(WIN32)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPGSQL_VERSION=${PGSQL_VERSION}")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DPGSQL_VERSION=${PGSQL_VERSION}")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DPGSQL_VERSION=${PGSQL_VERSION}")
message(STATUS "PGSQL_VERSION=${PGSQL_VERSION}")



#---------------------------------------------
Expand Down Expand Up @@ -476,24 +481,28 @@ endif()
#compiler directives
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

# for UNIX & JENKINS
if(UNIX OR (WIN32 AND NOT MSVC))
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
endif()


CHECK_C_COMPILER_FLAG("-frounding-math" C_COMPILER_SUPPORTS_ROUNDING_MATH)
CHECK_CXX_COMPILER_FLAG("-frounding-math" CXX_COMPILER_SUPPORTS_ROUNDING_MATH)


if(NOT WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC ")
CHECK_C_COMPILER_FLAG("-fPIC" C_COMPILER_SUPPORTS_FPIC)
CHECK_CXX_COMPILER_FLAG("-fPIC" CXX_COMPILER_SUPPORTS_FPIC)
if(C_COMPILER_SUPPORTS_FPIC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC ")
endif()
if(CXX_COMPILER_SUPPORTS_FPIC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC ")
endif()
endif()

if(WIN32 AND MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS}")
endif()

CHECK_C_COMPILER_FLAG("-frounding-math" C_COMPILER_SUPPORTS_ROUNDING_MATH)
CHECK_CXX_COMPILER_FLAG("-frounding-math" CXX_COMPILER_SUPPORTS_ROUNDING_MATH)
if(C_COMPILER_SUPPORTS_ROUNDING_MATH)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -frounding-math ")
endif()
Expand All @@ -505,6 +514,8 @@ endif()
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wconversion -pedantic -Wmissing-prototypes -W -Wunused -Wuninitialized -Wextra -Wdouble-promotion")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -fno-implicit-inline-templates -Wconversion -pedantic -W -Wunused -Wuninitialized -Wextra -Wdouble-promotion")



#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

if (PGROUTING_DEBUG)
Expand Down Expand Up @@ -583,7 +594,6 @@ add_library(${PGROUTING_LIB_NAME}
${LIBRARY_MODE_TARGET}
${PGROUTING_OBJECTS})

install(TARGETS ${PGROUTING_LIB_NAME} DESTINATION ${LIBRARY_INSTALL_PATH})


if(APPLE)
Expand Down Expand Up @@ -612,24 +622,8 @@ add_subdirectory(sql)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------

if (WIN32 AND MSVC)
SET (LIBS_TO_INSTALL "${CMAKE_BINARY_DIR}/lib/Release/libpgrouting-2.5.dll")
else()
SET (LIBS_TO_INSTALL "${CMAKE_BINARY_DIR}/lib/libpgrouting-2.5.so")
endif()

# this will create the commands in the makefile under the install target
#if(UNIX)
# file(GLOB_RECURSE LIBS_TO_INSTALL "${CMAKE_BINARY_DIR}/lib/*.so")
#else()
# file(GLOB_RECURSE LIBS_TO_INSTALL "${CMAKE_BINARY_DIR}/lib/*.dll")
#endif()

message(STATUS "LIBS_TO_INSTALL=${LIBS_TO_INSTALL}")

install(FILES ${LIBS_TO_INSTALL} DESTINATION ${LIB_DIR})


install(TARGETS ${PGROUTING_LIB_NAME} DESTINATION ${LIBRARY_INSTALL_PATH})
install(FILES
${PgRouting_SQL_FILES_TO_INSTALL}
DESTINATION "${SHARE_DIR}"
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

### Branches

* The *master* branch has the latest minor release.
* The *develop* branch has the next minor release.
* The *master* branch has the latest minor release. (2.4.0)
* The *develop* branch has the next minor release. (2.5.0-dev)

For the complete list of releases go to:
https://github.com/pgRouting/pgrouting/releases
Expand Down Expand Up @@ -41,7 +41,6 @@ https://github.com/pgRouting/pgrouting/releases
<td><img src="http://winnie.postgis.net:1500/buildStatus/icon?job=pgRouting_matrix_branch_develop" alt="Jenkins Status"/></td>
<td></td>
</tr>

<tr>
<td>gh-pages</td>
<td><img src="https://travis-ci.org/pgRouting/pgrouting.png?branch=gh-pages" alt="Build Status"/></td>
Expand Down Expand Up @@ -96,7 +95,7 @@ Family of functions include:

Building reqirements
--------------------
* perl
* Perl
* C and C++ compilers
* GNU >= 4.6
* MSVC >= 18.0
Expand Down Expand Up @@ -126,7 +125,7 @@ For MinGW on Windows
make
make install

Also pre-built Windows binaries can be downloaded from http://.postgis.net/windows_downloads
Also pre-built Windows binaries can be downloaded from https://postgis.net/windows_downloads

For Linux

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5332-de02a9548 release/2.5
5440-c5f4530ab develop
2 changes: 1 addition & 1 deletion ci/appveyor/install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if not defined COMMON_INSTALL_DIR set COMMON_INSTALL_DIR=%BUILD_ROOT_DIR%\local\

:: for cmake its the min version
if not defined CMAKE_VERSION set CMAKE_VERSION=3.5.2
if not defined PG_VERSION set PG_VERSION=2.3.1
if not defined PG_VERSION set PG_VERSION=2.3.2
if not defined BOOST_VERSION set BOOST_VERSION=1.58.0
if not defined CGAL_VERSION set CGAL_VERSION=4.8.1

Expand Down
15 changes: 14 additions & 1 deletion include/c_common/arrays_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,21 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#define INCLUDE_C_COMMON_ARRAYS_INPUT_H_
#pragma once

#include "c_types/pgr_types.h"

// first file to include
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-pedantic"
#endif

#include <postgres.h>

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif

// for ArrayType
#include "utils/array.h"
#include <stdint.h>


/** @brief enforces the input array to be @b NOT empty */
Expand Down
22 changes: 22 additions & 0 deletions include/c_common/postgres_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#pragma GCC diagnostic ignored "-pedantic"
#endif

#ifdef __clang__
#pragma clang diagnostic ignored "-pedantic"
#endif

#include <postgres.h>


Expand All @@ -40,6 +44,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#pragma GCC diagnostic ignored "-Wunused-parameter"
#endif

#ifdef __clang__
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wunused-parameter"
#endif

#include "executor/spi.h"

#ifdef __GNUC__
Expand All @@ -48,12 +57,21 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#pragma GCC diagnostic pop
#endif

#ifdef __clang__
#pragma clang diagnostic pop
#pragma clang diagnostic pop
#pragma clang diagnostic pop
#endif

#include "utils/builtins.h" // for text_to_cstring

#if PGSQL_VERSION > 92
#include "access/htup_details.h"
#endif

#ifdef __clang__
#pragma clang diagnostic ignored "-Wunused-parameter"
#endif

#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wunused-parameter"
Expand All @@ -66,6 +84,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#pragma GCC diagnostic pop
#endif

#ifdef __clang__
#pragma clang diagnostic pop
#endif


void pgr_send_error(int errcode);
void pgr_SPI_finish(void);
Expand Down
30 changes: 7 additions & 23 deletions include/c_types/pgr_types.h → include/c_types/contracted_rt.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*PGR-GNU*****************************************************************
File: pgr_types.h
File: contracted_rt.h

Copyright (c) 2015 Celia Virginia Vergara Castillo
Mail: vicky_vergara@hotmail.com
Copyright (c) 2017 pgRouting developers
Mail: project@pgrouting.org

------

Expand All @@ -23,8 +23,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
********************************************************************PGR-GNU*/
/*! @file */

#ifndef INCLUDE_C_TYPES_PGR_TYPES_H_
#define INCLUDE_C_TYPES_PGR_TYPES_H_
#ifndef INCLUDE_C_TYPES_CONTRACTED_RT_H_
#define INCLUDE_C_TYPES_CONTRACTED_RT_H_
#pragma once


Expand Down Expand Up @@ -55,22 +55,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <stdint.h>


typedef struct {
int64_t vertex_id;
int64_t edge_id;
double cost;
} path_element_t;



typedef struct {
int seq;
int64_t source;
int64_t edge;
double cost;
} pgr_path_t;


/**************************************************************************
* return type for contraction
* ***********************************************************************/
Expand All @@ -82,6 +66,6 @@ typedef struct {
double cost;
int64_t *contracted_vertices;
int contracted_vertices_size;
} pgr_contracted_blob;
} contracted_rt;

#endif // INCLUDE_C_TYPES_PGR_TYPES_H_
#endif // INCLUDE_C_TYPES_CONTRACTED_RT_H_
4 changes: 2 additions & 2 deletions include/vrp/fleet.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ class Fleet : public PD_problem {
Vehicle_t,
double factor,
std::unique_ptr<Base_node>,
Vehicle_node,
const Vehicle_node&,
std::unique_ptr<Base_node>,
Vehicle_node);
const Vehicle_node&);

template <typename T> std::unique_ptr<Base_node> create_b_start(
const Vehicle_t &vehicle,
Expand Down
2 changes: 1 addition & 1 deletion include/vrp/vehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Vehicle : public Identifier, public PD_problem {


bool is_phony() const {return id() < 0;}
bool speed() const;
double speed() const;

/*! @name deque like functions

Expand Down
Loading