Skip to content

Commit eca6160

Browse files
committed
Update GDAL to v3.9.0
2 parents c1d58bf + bb5ea61 commit eca6160

File tree

7,495 files changed

+843262
-54934
lines changed

Some content is hidden

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

7,495 files changed

+843262
-54934
lines changed

.clang-format

+3-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ SpacesInSquareBrackets: false
6565
Standard: Cpp11
6666
TabWidth: 4
6767
UseTab: Never
68-
68+
# Add line breaks
69+
SeparateDefinitionBlocks: Always
70+
EmptyLineBeforeAccessModifier: LogicalBlock
6971
---
7072
Language: Json
7173
BasedOnStyle: llvm

.git-blame-ignore-revs

+2-1
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,5 @@ cb5dc009cf60be71f12b2718017da4621c92c561
196196
a11bca1150f65804c78b1f3e7ad2f0ef3e47035b
197197
9ea22d57af187eb018a4fc84577381be0817fe95
198198
5247bbb4b27c7bf7cd6074deeeac087c1a4144b8
199-
d7e5c0055c176ff6e70da7aa47a29654ece08ce1
199+
d7e5c0055c176ff6e70da7aa47a29654ece08ce1
200+
c39127b8dca9228e728a56dd93fc8ebf7c212060

.github/ISSUE_TEMPLATE.md

-40
This file was deleted.
+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Bug report
2+
description: Create a bug report.
3+
labels:
4+
- 'Bug'
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report correctly. Do NOT use GitHub to post any questions or support requests! They will be closed immediately and ignored.
10+
11+
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.
12+
13+
- type: textarea
14+
id: what
15+
attributes:
16+
label: What is the bug?
17+
description: |
18+
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.
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
id: steps
24+
attributes:
25+
label: Steps to reproduce the issue
26+
description: |
27+
Steps, code extract and/or sample datasets to reproduce the behavior.
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: about-info
33+
attributes:
34+
label: Versions and provenance
35+
description: |
36+
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.
37+
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.
38+
validations:
39+
required: true
40+
41+
- type: textarea
42+
id: additional-context
43+
attributes:
44+
label: Additional context
45+
description: |
46+
Add any other context about the problem here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Feature request
2+
description: Suggest a feature idea.
3+
labels:
4+
- 'enhancement'
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this feature request correctly.
10+
11+
- type: textarea
12+
id: what
13+
attributes:
14+
label: Feature description
15+
description: A clear and concise description of what you want to happen.
16+
validations:
17+
required: true
18+
19+
- type: textarea
20+
id: Additional
21+
attributes:
22+
label: Additional context
23+
description: |
24+
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.
25+
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.

.github/ISSUE_TEMPLATE/config.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
blank_issues_enabled: false
2+
3+
contact_links:
4+
5+
- name: Question
6+
url: https://gis.stackexchange.com/
7+
about: >
8+
Questions should go to the gdal-dev mailing list at https://lists.osgeo.org/mailman/listinfo/gdal-dev
9+
or other support forums such as https://gis.stackexchange.com/.
10+
GitHub issues are for bug reports and suggestions for new features.

.github/PULL_REQUEST_TEMPLATE.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ should be formatted as "component/filename: Describe what the commit does (fixes
77
so that anyone that parses 'git log' immediately knows what a commit is about.
88
Do not hesitate to provide more context in the longer part of the commit message.
99
10-
GOOD: "GTiff: fix wrong color interpretation with -co ALPHA=YES (fixes #1234)
10+
For example:
11+
12+
"GTiff: fix wrong color interpretation with -co ALPHA=YES (fixes #1234)
1113
1214
When -co ALPHA=YES was used, but PHOTOMETRIC was not specified, the ExtraSample
1315
tag was wrongly set to unspecified.
1416
"
1517
16-
BAD: "Fix crash", "fix #1234"
18+
The GDAL project requires specific code formatting for C/C++ and Python code.
19+
This is largely automated with the pre-commit tool.
20+
Consult how to [install and set it up](https://gdal.org/development/dev_practices.html#commit-hooks)
1721
18-
In case you need several iterations to make continuous integration happy,
19-
please squash your commits in a single one at the end. See
20-
[Contributing](https://github.com/OSGeo/gdal/blob/master/CONTRIBUTING.md)
22+
More generally, consult [development practices](https://gdal.org/development/dev_practices.html)
2123
-->
2224

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

2931
- [ ] ADD YOUR TASKS HERE
32+
- [ ] Make sure code is correctly formatted (cf [pre-commit configuration](https://gdal.org/development/dev_practices.html#commit-hooks))
3033
- [ ] Add test case(s)
3134
- [ ] Add documentation
3235
- [ ] Updated Python API documentation (swig/include/python/docs/)
+64-19
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,75 @@
11
FROM alpine:edge
22

33
RUN apk add \
4-
linux-headers gnu-libiconv-dev \
5-
g++ make ccache cmake \
6-
proj-dev proj proj-util \
7-
curl-dev tiff-dev \
8-
zlib-dev zstd-dev xz-dev snappy-dev \
9-
libjpeg-turbo-dev libpng-dev openjpeg-dev libwebp-dev expat-dev libkml-dev \
10-
py3-numpy-dev python3-dev py3-setuptools py3-numpy py3-pip swig \
11-
poppler-dev postgresql-dev \
12-
openexr-dev libheif-dev xerces-c-dev geos-dev cfitsio-dev \
13-
netcdf-dev libaec-dev hdf5-dev freexl-dev \
14-
lz4-dev blosc-dev libdeflate-dev brotli-dev uriparser-dev \
4+
apache-arrow-dev \
5+
armadillo-dev \
6+
basisu-dev \
7+
blosc-dev \
8+
brunsli-dev \
9+
ccache \
10+
cfitsio-dev \
11+
cmake \
12+
curl-dev \
13+
expat-dev \
14+
freexl-dev \
15+
gcc \
16+
g++ \
17+
geos-dev \
18+
giflib-dev \
19+
gnu-libiconv-dev \
20+
hdf5-dev \
21+
json-c-dev \
22+
kealib-dev \
23+
libaec-dev \
1524
libarchive-dev \
16-
kealib-dev libjxl-dev \
17-
json-c-dev giflib-dev \
18-
libspatialite-dev librasterlite2-dev \
25+
libdeflate-dev \
26+
libgeotiff-dev \
27+
libheif-dev \
28+
libjpeg-turbo-dev \
29+
libjxl-dev \
30+
libkml-dev \
31+
libpng-dev \
32+
libpq-dev \
33+
librasterlite2-dev \
34+
libspatialite-dev \
35+
libtirpc-dev \
36+
libwebp-dev \
37+
libxml2-dev \
38+
libxslt-dev \
39+
linux-headers \
40+
lz4-dev \
41+
make \
1942
mariadb-connector-c-dev \
43+
netcdf-dev \
44+
odbc-cpp-wrapper-dev \
45+
ogdi-dev \
46+
openexr-dev \
47+
openjpeg-dev \
48+
openssl-dev \
2049
pcre2-dev \
50+
podofo-dev \
51+
poppler-dev \
52+
proj-dev \
53+
proj-util \
54+
py3-pyarrow \
55+
py3-pyarrow-pyc \
56+
py3-numpy \
57+
py3-numpy-dev \
58+
py3-pip \
59+
py3-setuptools \
60+
python3-dev \
2161
qhull-dev \
62+
sfcgal-dev \
63+
snappy-dev \
64+
sqlite-dev \
65+
swig \
66+
tiledb-dev \
67+
tiff-dev \
2268
unixodbc-dev \
23-
libpq-dev \
24-
apache-arrow-dev \
25-
py3-pyarrow py3-pyarrow-pyc \
26-
libxml2-dev \
27-
podofo-dev
69+
xerces-c-dev \
70+
xz-dev \
71+
zlib-dev \
72+
zstd-dev
2873

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

.github/workflows/alpine/build.sh

+27-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,38 @@
22

33
set -e
44

5+
cat << EOF > /tmp/foo.cpp
6+
#include <cstdio>
7+
extern "C" void DeclareDeferredFOO(void);
8+
void DeclareDeferredFOO()
9+
{
10+
FILE* f = fopen("/tmp/DeclareDeferredFOO_has_been_run.bin", "wb");
11+
if (f)
12+
fclose(f);
13+
}
14+
EOF
15+
516
cmake ${GDAL_SOURCE_DIR:=..} \
617
-DCMAKE_BUILD_TYPE=Release \
18+
-DCMAKE_UNITY_BUILD=ON \
719
-DUSE_CCACHE=ON \
820
-DCMAKE_INSTALL_PREFIX=/usr \
921
-DIconv_INCLUDE_DIR=/usr/include/gnu-libiconv \
1022
-DIconv_LIBRARY=/usr/lib/libiconv.so \
11-
-DCMAKE_C_FLAGS=-Werror -DCMAKE_CXX_FLAGS=-Werror -DWERROR_DEV_FLAG="-Werror=dev"
23+
-DADD_EXTERNAL_DEFERRED_PLUGIN_FOO=/tmp/foo.cpp \
24+
-DCMAKE_C_FLAGS=-Werror -DCMAKE_CXX_FLAGS="-std=c++23 -Werror" -DWERROR_DEV_FLAG="-Werror=dev"
1225
make -j$(nproc)
1326
make -j$(nproc) install DESTDIR=/tmp/install-gdal
27+
<<<<<<< HEAD
28+
=======
29+
30+
# To check if DeclareDeferredFOO() is called by GDALAllRegister()
31+
apps/gdalinfo --version
32+
33+
if test -f /tmp/DeclareDeferredFOO_has_been_run.bin; then
34+
echo "DeclareDeferredFOO() has been run"
35+
else
36+
echo "DeclareDeferredFOO() has NOT been run"
37+
exit 1
38+
fi
39+
>>>>>>> v3.9.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
FROM i386/alpine:edge
2+
3+
RUN apk add \
4+
apache-arrow-dev \
5+
armadillo-dev \
6+
bash \
7+
basisu-dev \
8+
blosc-dev \
9+
brunsli-dev \
10+
ccache \
11+
cfitsio-dev \
12+
cmake \
13+
curl-dev \
14+
expat-dev \
15+
freexl-dev \
16+
gcc \
17+
g++ \
18+
geos-dev \
19+
giflib-dev \
20+
gnu-libiconv-dev \
21+
hdf5-dev \
22+
json-c-dev \
23+
kealib-dev \
24+
libaec-dev \
25+
libarchive-dev \
26+
libdeflate-dev \
27+
libgeotiff-dev \
28+
libheif-dev \
29+
libjpeg-turbo-dev \
30+
libjxl-dev \
31+
libkml-dev \
32+
libpng-dev \
33+
libpq-dev \
34+
librasterlite2-dev \
35+
libspatialite-dev \
36+
libtirpc-dev \
37+
libwebp-dev \
38+
libxml2-dev \
39+
libxslt-dev \
40+
linux-headers \
41+
lz4-dev \
42+
make \
43+
mariadb-connector-c-dev \
44+
netcdf-dev \
45+
odbc-cpp-wrapper-dev \
46+
ogdi-dev \
47+
openexr-dev \
48+
openjpeg-dev \
49+
openssl-dev \
50+
pcre2-dev \
51+
podofo-dev \
52+
poppler-dev \
53+
proj-dev \
54+
proj-util \
55+
py3-pyarrow \
56+
py3-pyarrow-pyc \
57+
py3-numpy \
58+
py3-numpy-dev \
59+
py3-pip \
60+
py3-setuptools \
61+
python3-dev \
62+
qhull-dev \
63+
sfcgal-dev \
64+
snappy-dev \
65+
sqlite-dev \
66+
swig \
67+
tiff-dev \
68+
unixodbc-dev \
69+
xerces-c-dev \
70+
xz-dev \
71+
zlib-dev \
72+
zstd-dev
73+
74+
COPY requirements.txt /tmp/
75+
RUN python3 -m pip install --break-system-packages -U -r /tmp/requirements.txt

0 commit comments

Comments
 (0)