Skip to content

Commit

Permalink
Merge branch 'OSGeo:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
a0x8o authored May 14, 2024
2 parents 6e5fc24 + e187124 commit 99107b0
Show file tree
Hide file tree
Showing 86 changed files with 1,482 additions and 1,027 deletions.
1 change: 0 additions & 1 deletion .github/workflows/android_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:

android_cmake_build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/asan/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ find -L \
! -name ogr_gpsbabel.py `# new-delete-type-mismatch error in gpsbabel binary that we can't suppress` \
! -name "__init__.py" \
! -path 'ogr/data/*' \
! -name test_gdal_merge.py \
! -name test_gdal_retile.py \
-print \
-exec ./pytest_wrapper.sh {} \; \
| tee ./test-output.txt
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/clang_static_analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:

clang_static_analyzer:
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:

cppcheck_2004:
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
Expand All @@ -43,6 +42,29 @@ jobs:
cd build
../scripts/cppcheck.sh
cppcheck_2404:
runs-on: ubuntu-latest
container: ubuntu:24.04
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Install Requirements
run: |
apt update
apt install -y cppcheck libsqlite3-dev ccache sqlite3 libproj-dev cmake g++ make
- name: Run cmake
run: |
mkdir build
cd build
cmake ..
- name: Run cppcheck test
run: |
cd build
../scripts/cppcheck.sh
code_quality_checks:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -135,7 +157,6 @@ jobs:

validate_xml:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ permissions:
jobs:
build:
name: Conda ${{ matrix.platform }}
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"

runs-on: ${{ matrix.platform }}
strategy:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/linux_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ permissions:
jobs:

linux-build:
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"

# Store the components of the container name as environment variables:
# ${CONTAINER_REGISTRY}/${CONTAINER_REGISTRY_USER}/${CONTAINER_NAME}:${CONTAINER_TAG}
Expand Down Expand Up @@ -111,8 +110,7 @@ jobs:
container: ubuntu_22.04
build_script: build.sh
test_script: test.sh
# We force the host OS to be 20.04 to avoid "AddressSanitizer:DEADLYSIGNAL"
os: ubuntu-20.04
os: ubuntu-22.04

- name: Ubuntu 20.04, gcc
id: ubuntu_20.04
Expand Down Expand Up @@ -168,6 +166,13 @@ jobs:
echo "CACHE_CONTAINER_TAG_CLEAN=${CACHE_CONTAINER_TAG_CLEAN}" >> ${GITHUB_ENV}
echo "CONTAINER_NAME_FULL=${CONTAINER_REGISTRY}/${CONTAINER_REGISTRY_USER,,}/${CONTAINER_NAME}:${CONTAINER_TAG_CLEAN}" >>${GITHUB_ENV}
# Work around segfaults in ASan/MSan jobs
# Cf https://github.com/libjpeg-turbo/libjpeg-turbo/commit/2dfe6c0fe9e18671105e94f7cbf044d4a1d157e6
# and https://github.com/actions/runner-images/issues/9491
- name: Set up build
run: |
sudo sysctl vm.mmap_rnd_bits=28
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
macos_build:
# Arm64
runs-on: macos-14
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:

- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:

windows_build:
runs-on: windows-2022
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"

strategy:
matrix:
Expand Down
9 changes: 6 additions & 3 deletions alg/gdalrasterize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,8 @@ static CPLErr GDALRasterizeGeometriesInternal(
* <ul>
* <li>"ALL_TOUCHED": May be set to TRUE to set all pixels touched
* by the line or polygons, not just those whose center is within the polygon
* or that are selected by brezenhams line algorithm. Defaults to FALSE.</li>
* (behavior is unspecified when the polygon is just touching the pixel center)
* or that are selected by Brezenham's line algorithm. Defaults to FALSE.</li>
* <li>"BURN_VALUE_FROM": May be set to "Z" to use the Z values of the
* geometries. dfBurnValue is added to this before burning.
* Defaults to GDALBurnValueSrc.GBV_UserBurnValue in which case just the
Expand Down Expand Up @@ -1432,7 +1433,8 @@ static CPLErr GDALRasterizeGeometriesInternal(
* not exceed the cache.</li>
* <li>"ALL_TOUCHED": May be set to TRUE to set all pixels touched
* by the line or polygons, not just those whose center is within the polygon
* or that are selected by brezenhams line algorithm. Defaults to FALSE.
* (behavior is unspecified when the polygon is just touching the pixel center)
* or that are selected by Brezenham's line algorithm. Defaults to FALSE.
* <li>"BURN_VALUE_FROM": May be set to "Z" to use the Z values of the</li>
* geometries. The value from padfLayerBurnValues or the attribute field value
* is added to this before burning. In default case dfBurnValue is burned as it
Expand Down Expand Up @@ -1806,7 +1808,8 @@ CPLErr GDALRasterizeLayers(GDALDatasetH hDS, int nBandCount, int *panBandList,
* pointer.</li>
* <li>"ALL_TOUCHED": May be set to TRUE to set all pixels touched
* by the line or polygons, not just those whose center is within the polygon
* or that are selected by brezenhams line algorithm. Defaults to FALSE.</li>
* (behavior is unspecified when the polygon is just touching the pixel center)
* or that are selected by Brezenham's line algorithm. Defaults to FALSE.</li>
* <li>"BURN_VALUE_FROM": May be set to "Z" to use
* the Z values of the geometries. dfBurnValue or the attribute field value is
* added to this before burning. In default case dfBurnValue is burned as it
Expand Down
Loading

0 comments on commit 99107b0

Please sign in to comment.