Skip to content

Commit a1874af

Browse files
authored
Merge branch 'master' into road-bike-speeds
2 parents 7c714df + 4754800 commit a1874af

File tree

81 files changed

+8208
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+8208
-88
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ openrouteservice/WebContent/WEB-INF/app.config*
1919
openrouteservice/src/main/resources/app.config*
2020
!openrouteservice/src/main/resources/app.config.sample
2121

22+
# Ignore folders generated from docker
23+
docker/elevation_cache
24+
docker/conf
25+
2226
app.config.local
2327
cgiar_provider/
2428
graphs/

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55

66
## [Unreleased]
77
### Added
8+
- New fast isochrone algorithm based on preprocessed data
9+
### Fixed
10+
### Changed
11+
### Deprecated
12+
13+
## [6.2.1] - 2020-08-13
14+
### Added
815
- Check whether routing points are within different countries before routing and break if they are and all borders should be avoided
916
### Fixed
17+
- Updated Docker process to use Java 11 ([#777](https://github.com/GIScience/openrouteservice/issues/777))
18+
- Correctly resolve routing profile categories when initializing core edge filters in preprocessing ([#785](https://github.com/GIScience/openrouteservice/issues/785))
1019
### Changed
1120
- Improved road bike average speed to be faster on cycleways and slower on bad road surface or certain road types such as footways.
1221
### Deprecated

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:8-jdk
1+
FROM openjdk:11-jdk
22

33
ENV MAVEN_OPTS="-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
44
ENV MAVEN_CLI_OPTS="--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
@@ -13,11 +13,11 @@ COPY $OSM_FILE /ors-core/data/osm_file.pbf
1313
COPY $APP_CONFIG /ors-core/openrouteservice/src/main/resources/app.config.sample
1414

1515
# Install tomcat
16-
RUN wget -q https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.32/bin/apache-tomcat-8.0.32.tar.gz -O /tmp/tomcat.tar.gz && \
16+
RUN wget -q https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.39/bin/apache-tomcat-8.5.39.tar.gz -O /tmp/tomcat.tar.gz && \
1717
cd /tmp && \
1818
tar xvfz tomcat.tar.gz && \
19-
mkdir /usr/local/tomcat && \
20-
cp -R /tmp/apache-tomcat-8.0.32/* /usr/local/tomcat/ && \
19+
mkdir /usr/local/tomcat /ors-conf && \
20+
cp -R /tmp/apache-tomcat-8.5.39/* /usr/local/tomcat/ && \
2121
# Install dependencies and locales
2222
apt-get update -qq && apt-get install -qq -y locales nano maven moreutils jq && \
2323
locale-gen en_US.UTF-8 && \

docker-entrypoint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ -z "${CATALINA_OPTS}" ]; then
99
fi
1010

1111
if [ -z "${JAVA_OPTS}" ]; then
12-
export JAVA_OPTS="-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g"
12+
export JAVA_OPTS="-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g"
1313
fi
1414

1515
echo "CATALINA_OPTS=\"$CATALINA_OPTS\"" > /usr/local/tomcat/bin/setenv.sh
@@ -23,7 +23,9 @@ fi
2323
if [ -d "/usr/local/tomcat/webapps/ors" ]; then
2424
cp -f /ors-conf/app.config $tomcat_appconfig
2525
else
26-
cp -f $source_appconfig /ors-conf/app.config
26+
if [ ! -f /ors-conf/app.config ]; then
27+
cp -f $source_appconfig /ors-conf/app.config
28+
fi
2729
echo "### Package openrouteservice and deploy to Tomcat ###"
2830
mvn -q -f /ors-core/openrouteservice/pom.xml package -DskipTests && \
2931
cp -f /ors-core/openrouteservice/target/*.war /usr/local/tomcat/webapps/ors.war

docker/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
container_name: ors-app
55
ports:
66
- 8080:8080
7+
- 9001:9001
78
image: openrouteservice/openrouteservice:latest
89
# build:
910
# context: ../
@@ -19,5 +20,5 @@ services:
1920
#- ./your_osm.pbf:/ors-core/data/osm_file.pbf
2021
environment:
2122
- BUILD_GRAPHS=False # Forces the container to rebuild the graphs, e.g. when PBF is changed
22-
- "JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g"
23+
- "JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g"
2324
- "CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.rmi.port=9001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost"

openrouteservice-api-tests/conf/app.config.test

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,30 @@
2727
{profiles: "any", value: 18000}
2828
{profiles: "driving-car, driving-hgv", value: 3600}
2929
],
30+
fastisochrones: {
31+
maximum_range_distance: [
32+
{profiles: "any", value: 50000 }
33+
{profiles: "driving-car, driving-hgv", value: 500000 }
34+
],
35+
maximum_range_time: [
36+
{profiles: "any", value: 18000 }
37+
{profiles: "driving-car, driving-hgv", value: 10800 }
38+
].
39+
profiles: {
40+
default_params: {
41+
enabled: false,
42+
threads: 12,
43+
weightings: "recommended",
44+
maxcellnodes: 5000
45+
},
46+
profile-vehicles-hgv: {
47+
enabled: true,
48+
threads: 12,
49+
weightings: "recommended, shortest",
50+
maxcellnodes: 5000
51+
}
52+
}
53+
},
3054
maximum_intervals: 10,
3155
maximum_locations: 2,
3256
allow_compute_area: true

openrouteservice-api-tests/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
<exclude>**/locations/ParametersValidationTest.java</exclude>
3838
<exclude>**/locations/ResultsValidationTest.java</exclude>
3939
</excludes>
40-
<dependencies><dependency>
41-
<groupId>org.ow2.asm</groupId>
42-
<artifactId>asm</artifactId>
43-
<version>6.2</version>
44-
</dependency></dependencies>
4540
</configuration>
4641
</plugin>
4742
<plugin>

0 commit comments

Comments
 (0)