Skip to content

Commit

Permalink
Merge pull request #45 from rok4/develop
Browse files Browse the repository at this point in the history
Release 2.0.1
  • Loading branch information
Dolite authored Oct 1, 2024
2 parents 57ed08a + d5f53ff commit 0847c7b
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 23 deletions.
30 changes: 21 additions & 9 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
ci-cd:
- .github/**/*
- changed-files:
- any-glob-to-any-file:
- .github/**

dependencies:
- cmake/**/*
- changed-files:
- any-glob-to-any-file:
- cmake/**

documentation:
- docs/**/*
- changed-files:
- any-glob-to-any-file:
- docs/**

enhancement:
- src/**/*
- include/**/*
- changed-files:
- any-glob-to-any-file:
- src/**
- include/**

quality:
- tests/**/*
- changed-files:
- any-glob-to-any-file:
- tests/**

tooling:
- CMakeLists.txt
- config.h.in
- '**/CMakeLists.txt'
- changed-files:
- any-glob-to-any-file:
- CMakeLists.txt
- config.h.in
- '**/CMakeLists.txt'
15 changes: 6 additions & 9 deletions .github/workflows/pr-auto-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: "🏷 PR Labeler"
on:
- pull_request_target

permissions:
contents: read
pull-requests: write
- pull_request

jobs:
triage:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/labeler@v5
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.0.1

### [Added]

* `Keyword` : ajout d'un exporteur JSON (API Tiles)
* `TileMatrixLimits` : ajout d'un exporteur JSON (API Tiles)

## 2.0.0

### [Added]
Expand Down
2 changes: 1 addition & 1 deletion include/rok4/style/Style.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Style;
* "slope_max": 254
* },
* "palette": {
* "max_value": 255,
* "no_alpha": false,
* "rgb_continuous": true,
* "alpha_continuous": true,
* "colours": [
Expand Down
4 changes: 4 additions & 0 deletions include/rok4/utils/Keyword.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ class Keyword {
}
}

json11::Json to_json() const {
return content;
}

/**
* \~french
* \brief Destructeur par défaut
Expand Down
8 changes: 4 additions & 4 deletions include/rok4/utils/TileMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ friend class TileMatrixSet;
double res;
/**
* \~french \brief Abcisse du point en haut à gauche dans le système de coordonnées associé.
* \~english \brief X-coordinate of the top right corner in the linked coordinate system.
* \~english \brief X-coordinate of the top left corner in the linked coordinate system.
*/
double x0;
/**
* \~french \brief Ordonnée du point en haut à gauche dans le système de coordonnées associé.
* \~english \brief Y-coordinate of the top right corner in the linked coordinate system.
* \~english \brief Y-coordinate of the top left corner in the linked coordinate system.
*/
double y0;
/**
Expand Down Expand Up @@ -186,7 +186,7 @@ friend class TileMatrixSet;
* \brief Retourne l'abscisse du point en haut à gauche dans le système de coordonnées associé.
* \return abscisse
* \~english
* \brief Return the x-coordinate of the top right corner in the linked coordinate system.
* \brief Return the x-coordinate of the top left corner in the linked coordinate system.
* \return x-coordinate
*/
double get_x0();
Expand All @@ -195,7 +195,7 @@ friend class TileMatrixSet;
* \brief Retourne l'ordonnée du point en haut à gauche dans le système de coordonnées associé.
* \return ordonnée
* \~english
* \brief Return the y-coordinate of the top right corner in the linked coordinate system.
* \brief Return the y-coordinate of the top left corner in the linked coordinate system.
* \return y-coordinate
*/
double get_y0();
Expand Down
12 changes: 12 additions & 0 deletions include/rok4/utils/TileMatrixLimits.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,18 @@ class TileMatrixLimits
node.add("MaxTileCol", std::to_string(max_tile_col));
}

json11::Json to_json() const {
json11::Json::object res = json11::Json::object {
{ "tileMatrix", tm_id },
{ "minTileRow", int(min_tile_row) },
{ "maxTileRow", int(max_tile_row) },
{ "minTileCol", int(min_tile_col) },
{ "maxTileCol", int(max_tile_col) }
};

return res;
}

};


Expand Down

0 comments on commit 0847c7b

Please sign in to comment.