Skip to content

Commit 0847c7b

Browse files
authored
Merge pull request #45 from rok4/develop
Release 2.0.1
2 parents 57ed08a + d5f53ff commit 0847c7b

File tree

7 files changed

+55
-23
lines changed

7 files changed

+55
-23
lines changed

.github/labeler.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
ci-cd:
2-
- .github/**/*
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- .github/**
35

46
dependencies:
5-
- cmake/**/*
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- cmake/**
610

711
documentation:
8-
- docs/**/*
12+
- changed-files:
13+
- any-glob-to-any-file:
14+
- docs/**
915

1016
enhancement:
11-
- src/**/*
12-
- include/**/*
17+
- changed-files:
18+
- any-glob-to-any-file:
19+
- src/**
20+
- include/**
1321

1422
quality:
15-
- tests/**/*
23+
- changed-files:
24+
- any-glob-to-any-file:
25+
- tests/**
1626

1727
tooling:
18-
- CMakeLists.txt
19-
- config.h.in
20-
- '**/CMakeLists.txt'
28+
- changed-files:
29+
- any-glob-to-any-file:
30+
- CMakeLists.txt
31+
- config.h.in
32+
- '**/CMakeLists.txt'
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: "🏷 PR Labeler"
22
on:
3-
- pull_request_target
4-
5-
permissions:
6-
contents: read
7-
pull-requests: write
3+
- pull_request
84

95
jobs:
10-
triage:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
1110
runs-on: ubuntu-latest
1211
steps:
13-
- uses: actions/labeler@v5
14-
with:
15-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
12+
- uses: actions/labeler@v5

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 2.0.1
2+
3+
### [Added]
4+
5+
* `Keyword` : ajout d'un exporteur JSON (API Tiles)
6+
* `TileMatrixLimits` : ajout d'un exporteur JSON (API Tiles)
7+
18
## 2.0.0
29

310
### [Added]

include/rok4/style/Style.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Style;
9797
* "slope_max": 254
9898
* },
9999
* "palette": {
100-
* "max_value": 255,
100+
* "no_alpha": false,
101101
* "rgb_continuous": true,
102102
* "alpha_continuous": true,
103103
* "colours": [

include/rok4/utils/Keyword.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ class Keyword {
202202
}
203203
}
204204

205+
json11::Json to_json() const {
206+
return content;
207+
}
208+
205209
/**
206210
* \~french
207211
* \brief Destructeur par défaut

include/rok4/utils/TileMatrix.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ friend class TileMatrixSet;
9797
double res;
9898
/**
9999
* \~french \brief Abcisse du point en haut à gauche dans le système de coordonnées associé.
100-
* \~english \brief X-coordinate of the top right corner in the linked coordinate system.
100+
* \~english \brief X-coordinate of the top left corner in the linked coordinate system.
101101
*/
102102
double x0;
103103
/**
104104
* \~french \brief Ordonnée du point en haut à gauche dans le système de coordonnées associé.
105-
* \~english \brief Y-coordinate of the top right corner in the linked coordinate system.
105+
* \~english \brief Y-coordinate of the top left corner in the linked coordinate system.
106106
*/
107107
double y0;
108108
/**
@@ -186,7 +186,7 @@ friend class TileMatrixSet;
186186
* \brief Retourne l'abscisse du point en haut à gauche dans le système de coordonnées associé.
187187
* \return abscisse
188188
* \~english
189-
* \brief Return the x-coordinate of the top right corner in the linked coordinate system.
189+
* \brief Return the x-coordinate of the top left corner in the linked coordinate system.
190190
* \return x-coordinate
191191
*/
192192
double get_x0();
@@ -195,7 +195,7 @@ friend class TileMatrixSet;
195195
* \brief Retourne l'ordonnée du point en haut à gauche dans le système de coordonnées associé.
196196
* \return ordonnée
197197
* \~english
198-
* \brief Return the y-coordinate of the top right corner in the linked coordinate system.
198+
* \brief Return the y-coordinate of the top left corner in the linked coordinate system.
199199
* \return y-coordinate
200200
*/
201201
double get_y0();

include/rok4/utils/TileMatrixLimits.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,18 @@ class TileMatrixLimits
171171
node.add("MaxTileCol", std::to_string(max_tile_col));
172172
}
173173

174+
json11::Json to_json() const {
175+
json11::Json::object res = json11::Json::object {
176+
{ "tileMatrix", tm_id },
177+
{ "minTileRow", int(min_tile_row) },
178+
{ "maxTileRow", int(max_tile_row) },
179+
{ "minTileCol", int(min_tile_col) },
180+
{ "maxTileCol", int(max_tile_col) }
181+
};
182+
183+
return res;
184+
}
185+
174186
};
175187

176188

0 commit comments

Comments
 (0)