Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/OSGeo/gdal into grib-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NaderCHASER committed Sep 23, 2024
2 parents d11e74f + 24b161c commit c6e9843
Show file tree
Hide file tree
Showing 4,615 changed files with 694,337 additions and 366,425 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 3 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 4
UseTab: Never

# Add line breaks
SeparateDefinitionBlocks: Always
EmptyLineBeforeAccessModifier: LogicalBlock
---
Language: Json
BasedOnStyle: llvm
48 changes: 32 additions & 16 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
[flake8]
max_line_length = 88
ignore =
C408 # Unnecessary dict/list/tuple call - rewrite as a literal
E203 # whitespace before ':' - doesn't work well with black
E225 # missing whitespace around operator - let black worry about that
E262 # inline comment should start with '# '
E265 # block comment should start with '# '
E266 # too many leading '#' for block comment
E302 # expected 2 blank lines, found 1
E402 # module level import not at top of file
E501 # line too long - let black handle that
E711 # comparison to None should be
E712 # comparison to False/True should be
E741 # ambiguous variable name
F405 # may be undefined, or defined from star imports
W291 # trailing
W503 # line break occurred before a binary operator - let black worry about that
W504 # line break occurred adter a binary operator - let black worry about that
# Unnecessary dict/list/tuple call - rewrite as a literal
C408
# whitespace before ':' - doesn't work well with black
E203
# missing whitespace around operator - let black worry about that
E225
# inline comment should start with '# '
E262
# block comment should start with '# '
E265
# too many leading '#' for block comment
E266
# expected 2 blank lines, found 1
E302
# module level import not at top of file
E402
# line too long - let black handle that
E501
# comparison to None should be
E711
# comparison to False/True should be
E712
# ambiguous variable name
E741
# may be undefined, or defined from star imports
F405
# trailing
W291
# line break occurred before a binary operator - let black worry about that
W503
# line break occurred adter a binary operator - let black worry about that
W504
per-file-ignores =
.cmake-format.py:F821
3 changes: 2 additions & 1 deletion .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,5 @@ cb5dc009cf60be71f12b2718017da4621c92c561
a11bca1150f65804c78b1f3e7ad2f0ef3e47035b
9ea22d57af187eb018a4fc84577381be0817fe95
5247bbb4b27c7bf7cd6074deeeac087c1a4144b8
d7e5c0055c176ff6e70da7aa47a29654ece08ce1
d7e5c0055c176ff6e70da7aa47a29654ece08ce1
c39127b8dca9228e728a56dd93fc8ebf7c212060
40 changes: 0 additions & 40 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/10_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Bug report
description: Create a bug report.
labels:
- 'Bug'
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report correctly. Do NOT use this form to post any questions or support requests! They will be closed immediately and ignored.
The GDAL project is made of contributions from various individuals and organizations, each with their own focus. The issue you are facing is not necessarily in the priority list of those contributors and consequently there is no guarantee that it will be addressed in a timely manner. If this bug report or feature request is high-priority for you, and you cannot address it yourself, we suggest engaging a GDAL developer or support organisation and financially sponsoring a fix.
- type: textarea
id: what
attributes:
label: What is the bug?
description: |
If you think there is an issue with coordinate order in GDAL 3.0, then it is likely an intended behavior. See https://github.com/OSGeo/gdal/issues/1974 for more explanations.
validations:
required: true

- type: textarea
id: steps
attributes:
label: Steps to reproduce the issue
description: |
Steps, code extract and/or sample datasets to reproduce the behavior.
validations:
required: true

- type: textarea
id: about-info
attributes:
label: Versions and provenance
description: |
Please indicate the operating system (e.g "Windows 11", or "Linux Ubuntu 22.04") and the GDAL version, for example by pasting the output of ``gdalinfo --version``. Please also indicate how you got the GDAL binary. For example: self-built, package coming from the Linux distribution, from OSGeo4W, from Conda-Forge, from vcpkg, etc.
Note that the GDAL project supports only the current version https://gdal.org/download.html#current-release so it should be used for testing. Or at least the newest easily available version for your platform.
validations:
required: true

- type: textarea
id: additional-context
attributes:
label: Additional context
description: |
Add any other context about the problem here.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/20_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Feature request
description: Suggest a feature idea.
labels:
- 'enhancement'
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request correctly.
- type: textarea
id: what
attributes:
label: Feature description
description: A clear and concise description of what you want to happen.
validations:
required: true

- type: textarea
id: Additional
attributes:
label: Additional context
description: |
Add any other context about the feature request here. Open source is community driven, please consider a way to support this work either by hiring developers, supporting the GDAL project, find someone to submit a pull request.
If the change required is important, you should consider writing a [GDAL RFC](https://gdal.org/development/rfc/index.html) or hiring someone to, and announce your work on the maiing list.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
blank_issues_enabled: false

contact_links:

- name: Question
url: https://gis.stackexchange.com/
about: >
Questions should go to the gdal-dev mailing list at https://lists.osgeo.org/mailman/listinfo/gdal-dev
or other support forums such as https://gis.stackexchange.com/.
GitHub issues are for bug reports and suggestions for new features.
13 changes: 8 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ should be formatted as "component/filename: Describe what the commit does (fixes
so that anyone that parses 'git log' immediately knows what a commit is about.
Do not hesitate to provide more context in the longer part of the commit message.
GOOD: "GTiff: fix wrong color interpretation with -co ALPHA=YES (fixes #1234)
For example:
"GTiff: fix wrong color interpretation with -co ALPHA=YES (fixes #1234)
When -co ALPHA=YES was used, but PHOTOMETRIC was not specified, the ExtraSample
tag was wrongly set to unspecified.
"
BAD: "Fix crash", "fix #1234"
The GDAL project requires specific code formatting for C/C++ and Python code.
This is largely automated with the pre-commit tool.
Consult how to [install and set it up](https://gdal.org/development/dev_practices.html#commit-hooks)
In case you need several iterations to make continuous integration happy,
please squash your commits in a single one at the end. See
[Contributing](https://github.com/OSGeo/gdal/blob/master/CONTRIBUTING.md)
More generally, consult [development practices](https://gdal.org/development/dev_practices.html)
-->

## What does this PR do?
Expand All @@ -27,6 +29,7 @@ please squash your commits in a single one at the end. See
## Tasklist

- [ ] ADD YOUR TASKS HERE
- [ ] Make sure code is correctly formatted (cf [pre-commit configuration](https://gdal.org/development/dev_practices.html#commit-hooks))
- [ ] Add test case(s)
- [ ] Add documentation
- [ ] Updated Python API documentation (swig/include/python/docs/)
Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
39 changes: 0 additions & 39 deletions .github/workflows/alpine.yml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/alpine/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
FROM alpine:edge

RUN apk add \
apache-arrow-dev \
armadillo-dev \
basisu-dev \
blosc-dev \
brunsli-dev \
ccache \
cfitsio-dev \
cmake \
curl-dev \
expat-dev \
freexl-dev \
gcc \
g++ \
geos-dev \
giflib-dev \
gnu-libiconv-dev \
hdf5-dev \
json-c-dev \
kealib-dev \
libaec-dev \
libarchive-dev \
libavif-dev \
libdeflate-dev \
libgeotiff-dev \
libheif-dev \
libjpeg-turbo-dev \
libjxl-dev \
libkml-dev \
libpng-dev \
libpq-dev \
librasterlite2-dev \
libspatialite-dev \
libtirpc-dev \
libwebp-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
lz4-dev \
make \
mariadb-connector-c-dev \
netcdf-dev \
odbc-cpp-wrapper-dev \
ogdi-dev \
openexr-dev \
openjpeg-dev \
openssl-dev \
pcre2-dev \
podofo-dev \
poppler-dev \
proj-dev \
proj-util \
py3-pyarrow \
py3-pyarrow-pyc \
py3-numpy \
py3-numpy-dev \
py3-pip \
py3-setuptools \
python3-dev \
qhull-dev \
sfcgal-dev \
snappy-dev \
sqlite-dev \
tiledb-dev \
tiff-dev \
unixodbc-dev \
xerces-c-dev \
xz-dev \
zlib-dev \
zstd-dev

COPY requirements.txt /tmp/
RUN python3 -m pip install --break-system-packages -U -r /tmp/requirements.txt

RUN apk add git autoconf automake libtool bison && \
git clone --branch "${SWIG_GIT_TAG:-master}" --depth 1 https://github.com/swig/swig.git swig-git && \
cd swig-git && \
./autogen.sh && \
./configure --prefix=/usr && \
make -j$(nproc) && \
make install
37 changes: 37 additions & 0 deletions .github/workflows/alpine/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

set -e

cat << EOF > /tmp/foo.cpp
#include <cstdio>
extern "C" void DeclareDeferredFOO(void);
void DeclareDeferredFOO()
{
FILE* f = fopen("/tmp/DeclareDeferredFOO_has_been_run.bin", "wb");
if (f)
fclose(f);
}
EOF

cmake ${GDAL_SOURCE_DIR:=..} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_UNITY_BUILD=ON \
-DUSE_CCACHE=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DIconv_INCLUDE_DIR=/usr/include/gnu-libiconv \
-DIconv_LIBRARY=/usr/lib/libiconv.so \
-DADD_EXTERNAL_DEFERRED_PLUGIN_FOO=/tmp/foo.cpp \
-DCMAKE_CXX_STANDARD=23 \
-DCMAKE_C_FLAGS=-Werror -DCMAKE_CXX_FLAGS="-Werror" -DWERROR_DEV_FLAG="-Werror=dev"
make -j$(nproc)
make -j$(nproc) install DESTDIR=/tmp/install-gdal

# To check if DeclareDeferredFOO() is called by GDALAllRegister()
apps/gdalinfo --version

if test -f /tmp/DeclareDeferredFOO_has_been_run.bin; then
echo "DeclareDeferredFOO() has been run"
else
echo "DeclareDeferredFOO() has NOT been run"
exit 1
fi
Loading

0 comments on commit c6e9843

Please sign in to comment.