Skip to content

Commit 1a275e9

Browse files
authored
Merge v0.6.4 into release
2 parents d415ded + b072a9d commit 1a275e9

File tree

129 files changed

+84897
-49842
lines changed

Some content is hidden

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

129 files changed

+84897
-49842
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.gitattributes export-ignore
33
*.omap binary diff=xmllint
44
*.ocd binary
5+
*.ts binary diff=xmllint

3rd-party/clipper/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,12 @@ include(ExternalProject)
9393
ExternalProject_Add(
9494
Clipper
9595
${CLIPPER_SOURCE}
96-
# Check that the license hasn't changed.
97-
UPDATE_COMMAND ${CMAKE_COMMAND} -E compare_files <SOURCE_DIR>/License.txt "${CLIPPER_LICENSE_FILE}"
98-
# Force source file timestamp update.
99-
CONFIGURE_COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/cpp/clipper.cpp "${CMAKE_CURRENT_BINARY_DIR}/clipper.cpp"
96+
CONFIGURE_COMMAND
97+
# Check that the license hasn't changed.
98+
${CMAKE_COMMAND} -E compare_files <SOURCE_DIR>/License.txt "${CLIPPER_LICENSE_FILE}"
99+
COMMAND
100+
# Force source file timestamp update.
101+
${CMAKE_COMMAND} -E copy <SOURCE_DIR>/cpp/clipper.cpp "${CMAKE_CURRENT_BINARY_DIR}/clipper.cpp"
100102
BUILD_COMMAND ""
101103
INSTALL_COMMAND ""
102104
)

3rd-party/doxygen/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,11 @@ ExternalProject_Add(
7676
${DOXYGEN_SOURCE}
7777
# Check that the license hasn't changed.
7878
PATCH_COMMAND sed -e "/This version of Mac OS X is unsupported/d" -i.orig qtools/qglobal.h
79-
UPDATE_COMMAND ${CMAKE_COMMAND} -E compare_files <SOURCE_DIR>/LICENSE "${DOXYGEN_LICENSE_FILE}"
80-
CONFIGURE_COMMAND "<SOURCE_DIR>/configure" "--release" "--prefix" "<INSTALL_DIR>"
79+
CONFIGURE_COMMAND
80+
# Check that the license hasn't changed.
81+
${CMAKE_COMMAND} -E compare_files <SOURCE_DIR>/LICENSE "${DOXYGEN_LICENSE_FILE}"
82+
COMMAND
83+
"<SOURCE_DIR>/configure" "--release" "--prefix" "<INSTALL_DIR>"
8184
BUILD_IN_SOURCE 1
8285
)
8386
ExternalProject_Get_Property(doxygen-project INSTALL_DIR)

3rd-party/gdal/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ ExternalProject_Add(
127127
DOWNLOAD_DIR ${PROJECT_SOURCE_DIR}/download
128128
URL ${GDAL_URL}
129129
URL_MD5 ${GDAL_MD5}
130-
# Check that the license hasn't changed.
131-
UPDATE_COMMAND
132-
${CMAKE_COMMAND} -E compare_files <SOURCE_DIR>/LICENSE.TXT "${GDAL_LICENSE_FILE}"
133130
PATCH_COMMAND
134131
cp ${PROJECT_SOURCE_DIR}/patches/config.sub ${PROJECT_SOURCE_DIR}/patches/config.guess <SOURCE_DIR>/
135132
COMMAND
136133
find ${PROJECT_SOURCE_DIR}/patches -name gdal-${GDAL_MAJOR_MINOR_REVISION}*.patch -exec patch -p0 -N -i {} +
137134
CONFIGURE_COMMAND
135+
# Check that the license hasn't changed.
136+
${CMAKE_COMMAND} -E compare_files <SOURCE_DIR>/LICENSE.TXT "${GDAL_LICENSE_FILE}"
137+
COMMAND
138138
"<SOURCE_DIR>/configure"
139139
"--prefix=<INSTALL_DIR>"
140140
--disable-static

3rd-party/proj/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,12 @@ ExternalProject_Add(
8888
DOWNLOAD_DIR ${PROJECT_SOURCE_DIR}/download
8989
URL "http://download.osgeo.org/proj/proj-${PROJ_VERSION}.tar.gz"
9090
URL_MD5 ${PROJ_MD5}
91-
# Check that the license hasn't changed.
92-
UPDATE_COMMAND ${CMAKE_COMMAND} -E compare_files <SOURCE_DIR>/COPYING "${PROJ_LICENSE_FILE}"
9391
PATCH_COMMAND "${SH_PROGRAM}" -l -e ${CMAKE_CURRENT_BINARY_DIR}/proj-patch
94-
CONFIGURE_COMMAND "${SH_PROGRAM}" -l -e ${CMAKE_CURRENT_BINARY_DIR}/proj-config
92+
CONFIGURE_COMMAND
93+
# Check that the license hasn't changed.
94+
${CMAKE_COMMAND} -E compare_files <SOURCE_DIR>/COPYING "${PROJ_LICENSE_FILE}"
95+
COMMAND
96+
"${SH_PROGRAM}" -l -e ${CMAKE_CURRENT_BINARY_DIR}/proj-config
9597
BUILD_COMMAND ${PROJ_MAKE_COMMAND}
9698
INSTALL_COMMAND ${PROJ_MAKE_COMMAND} -j1 install
9799
&& "${SH_PROGRAM}" -l -e ${CMAKE_CURRENT_BINARY_DIR}/proj-postinstall

CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
2121
cmake_policy(SET CMP0020 OLD)
22+
if(CMAKE_VERSION VERSION_GREATER 2.9)
23+
cmake_policy(SET CMP0026 OLD)
24+
cmake_policy(SET CMP0048 OLD)
25+
endif()
2226
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
2327

2428
include(FeatureSummary)
@@ -27,15 +31,15 @@ include(FeatureSummary)
2731

2832
project(Mapper)
2933

30-
set(Mapper_COPYRIGHT "(C) 2012-2015 OpenOrienteering developers")
34+
set(Mapper_COPYRIGHT "(C) 2012-2016 OpenOrienteering developers")
3135

3236
# All version components must be integers.
3337
# We use Mapper_VERSION_PATCH >= 99 to mark development builds.
3438
set(Mapper_VERSION_MAJOR 0)
3539
set(Mapper_VERSION_MINOR 6)
3640
if(NOT Mapper_VERSION_PATCH)
3741
# This can be configured when running cmake
38-
set(Mapper_VERSION_PATCH 3)
42+
set(Mapper_VERSION_PATCH 4)
3943
endif()
4044

4145
set(MAPPER_VERSION_PRI "${PROJECT_SOURCE_DIR}/oo-mapper-version.pri")
@@ -255,7 +259,7 @@ if(Mapper_DEVELOPMENT_BUILD)
255259
add_definitions(-DMAPPER_DEVELOPMENT_BUILD)
256260
include(EnableSanitize)
257261
enable_sanitize(address undefined)
258-
configure_file(suppress.txt.in suppress.txt COPY_ONLY)
262+
configure_file(suppress.txt.in suppress.txt COPYONLY)
259263
else()
260264
add_definitions(-DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT -DNDEBUG)
261265
endif()

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,7 @@ Pull requests are very welcome.
2626

2727
### Translating
2828

29-
The translations for Mapper are stored in `translations/OpenOrienteering_{LANGUAGE}.ts`.
30-
The best way to edit those files is by using [Qt Linguist for translation](http://doc.qt.io/qt-5/linguist-translators.html).
31-
The translations can also be edited with any XML editor.
32-
33-
Adding a new translation is done by making a new copy of `OpenOrienteering_template.ts`
34-
and replacing `template` in the file name with the matching language code.
35-
The new file also has to be added to `translations/CMakeLists.txt`.
36-
37-
Some strings such as basic buttons and colors get their translation from the
38-
Qt Framework. For translating those see [Qt Localization](https://wiki.qt.io/Qt_Localization).
29+
Translations can be edited online on [Weblate](https://hosted.weblate.org/projects/openorienteering/mapper/). You can register/login with your Github account. Find out more about translation in our [wiki](https://github.com/OpenOrienteering/mapper/wiki/Translation).
3930

4031

4132
### Writing Documentation

android/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="0.6.3" android:versionCode="3" package="org.openorienteering.mapper" android:installLocation="auto">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="0.6.4" android:versionCode="4" package="org.openorienteering.mapper" android:installLocation="auto">
33
<application android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="@string/long_app_name" android:icon="@drawable/icon">
44
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation"
55
android:name="org.openorienteering.mapper.MapperActivity"

doc/manual/pages/android-requirements.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ Sensors
4242

4343
OpenOrienteering Mapper can use integrated GPS receivers. However, their
4444
accuracy may be low, so it may be advantageous to connect to an external GPS
45-
receiver. This can be done on the level of the Android Operating System (i.e.
46-
not directly in the Mapper app), and instructions can be found on the internet.
45+
receiver. There is no direct support for external devices in Mapper, but
46+
some third party apps bridge the gap. For example the [Bluetooth GPS app](https://play.google.com/store/apps/details?id=googoo.android.btgps&rdid=googoo.android.btgps)
47+
provides a "mock" location provider which can be used when Android is put in
48+
developer mode.
4749

4850
The app can use a magnetometer and accelerometer as a compass. Almost all modern
4951
devices should contain these sensors. If a gyroscope is also available, it will

doc/manual/pages/course_design.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
title: Using the Course Design Symbol Set
3+
keywords: Courses, Symbol sets
4+
---
5+
6+
[Templates]: templates.md
7+
[IOF Homepage]: http://orienteering.org
8+
9+
OpenOrienteering Mapper doesn't have a sophisticated course planning feature.
10+
The Course Design symbol set provides basic support for designing maps with
11+
courses and control desriptions. It contains the overprinting symbols from the
12+
ISOM 2000 and the control descriptions from IOF's "International Specification
13+
for Control Descriptions - 2004". See the [IOF Homepage] for details.
14+
15+
![ ](images/course_design.png)
16+
17+
18+
Loading a base map
19+
------------------
20+
21+
Open the base map as a template in the background. See [Templates] for details.
22+
23+
24+
Drawing the course
25+
------------------
26+
27+
For simple courses which consist only of start, controls, finish and free
28+
navigation you may use symbol 799 Simple Orienteering Course. For more complex
29+
courses use the individual overprinting symbols. The labels for the controls
30+
have to be created explicitly.
31+
32+
33+
Creating the control description sheet
34+
--------------------------------------
35+
36+
The Course Design symbol set contains the individual pictograms as well as
37+
symbols for the different sections which together form the control description
38+
sheet. The pictograms' names indicate the column of the control description sheet where
39+
they are to be used.
40+
41+
The control description symbols are meant to be used with a grid of horizontal
42+
and vertical lines spaced 3.0 millimeters. By pressing the Shift key while
43+
creating a new element, you may easily align all the parts of the description.
44+
45+
46+
About the control description sheet
47+
-----------------------------------
48+
49+
The control description sheet starts with a heading which consists of blocks for
50+
the event title, classes (optional), and (in a single row) course code, course
51+
length and and height climb. The course length is given in kilometres rounded to
52+
the nearest 0.1 km. The height climb is given in metres rounded to the nearest
53+
5 m.
54+
55+
The heading is followed by lines describing the start location, the individual
56+
controls, and special routes. The description of start and individual controls
57+
uses eight colums which are refered to as A...H.
58+
59+
| Column | Description |
60+
| ------ | ----------- |
61+
| A | Control number. Numbering of controls is in the sequence they are to be visited, unless the description is for a Score competition. |
62+
| B | Control code. The control code should be a number greater than 30. |
63+
| C | Which of any similar feature. This column is used when there is more than one similar feature within the control circle; e.g. south eastern. |
64+
| D | Control feature. The feature, as shown on the map, at the centre of the circle deÞ ning the control site; e.g. clearing; boulder. The description of each control is based on the International Specification for Orienteering Maps (ISOM 2000). |
65+
| E | Appearance. Further information on the nature of the feature if it is required; e.g. overgrown; ruined. In certain circumstances also used for a second control feature where the description requires this. |
66+
| F | Dimensions / Combinations. Dimensions of the feature should be given where the size of the control feature on the map is symbolic rather than to scale. Also used for the two combination symbols (crossing; junction). |
67+
| G | Location of the control flag. Position of the control flag with respect to the feature; e.g. west corner (outside); south foot. |
68+
| H | Other information. Other information that may be of importance to the competitor; e.g. radio control; refreshments. |
69+
70+
71+
Specifications for Trail Orienteering
72+
-------------------------------------
73+
74+
There are two variations in the use of the columns when using IOF Control Descriptions for Trail Orienteering.
75+
76+
| Column | Description |
77+
| ------ | ----------- |
78+
| B | Number of control flags. This column is used to denote the number of control flags visible at this control; e.g. A-C equals three control flags to choose from; A-D equals four control flags to choose from. |
79+
| H | Direction of observation. This column is used to denote the direction in which to view a feature. For example an arrow pointing north indicates that the competitor should be on a path/track to the south of the control circle. |
80+
81+

0 commit comments

Comments
 (0)