Skip to content

Commit fde7c6c

Browse files
committed
Merge remote-tracking branch 'upstream/master' into MiraMonVector-fix-stringlist,-integerlist,--case
2 parents 6ea9158 + b4a3fde commit fde7c6c

File tree

175 files changed

+8493
-3258
lines changed

Some content is hidden

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

175 files changed

+8493
-3258
lines changed

.github/workflows/cmake_builds.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ jobs:
218218
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/install-gdal/lib
219219
$GITHUB_WORKSPACE/install-gdal/bin/gdalinfo --version
220220
PYTHONPATH=$GITHUB_WORKSPACE/install-gdal/lib/python3.8/site-packages python3 -c "from osgeo import gdal;print(gdal.VersionInfo(None))"
221+
# Test fix for https://github.com/conda-forge/gdal-feedstock/issues/995
222+
PYTHONWARNINGS="error" PYTHONPATH=$GITHUB_WORKSPACE/install-gdal/lib/python3.8/site-packages python3 -c "from osgeo import gdal"
221223
PYTHONPATH=$GITHUB_WORKSPACE/install-gdal/lib/python3.8/site-packages python3 $GITHUB_WORKSPACE/scripts/check_doc.py
222224
- name: CMake with rpath
223225
run: |
@@ -431,7 +433,7 @@ jobs:
431433
cfitsio freexl geotiff libjpeg-turbo libpq libspatialite libwebp-base pcre pcre2 postgresql \
432434
sqlite tiledb zstd cryptopp cgal doxygen librttopo libkml openssl xz \
433435
openjdk ant qhull armadillo blas blas-devel libblas libcblas liblapack liblapacke blosc libarchive \
434-
arrow-cpp pyarrow libaec libheif libavif cmake
436+
arrow-cpp pyarrow libaec libheif libavif cmake fsspec
435437
- name: Check CMake version
436438
shell: bash -l {0}
437439
run: |

.github/workflows/fedora_rawhide/build.sh

+10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ cmake ${GDAL_SOURCE_DIR:=..} \
1010
-DCMAKE_CXX_FLAGS="-std=c++20 -Werror -O1 -D_FORTIFY_SOURCE=2" \
1111
-DCMAKE_SHARED_LINKER_FLAGS="-lstdc++" \
1212
-DUSE_CCACHE=ON \
13+
-DEMBED_RESOURCE_FILES=ON \
1314
-DCMAKE_INSTALL_PREFIX=/usr \
1415
-DWERROR_DEV_FLAG="-Werror=dev"
1516
make -j$(nproc)
1617
make -j$(nproc) install DESTDIR=/tmp/install-gdal
18+
19+
ctest -V -j $(nproc)
20+
21+
rm -rf data
22+
cmake ${GDAL_SOURCE_DIR:=..} \
23+
-DUSE_ONLY_EMBEDDED_RESOURCE_FILES=ON
24+
rm -rf /tmp/install-gdal
25+
make -j$(nproc)
26+
make -j$(nproc) install DESTDIR=/tmp/install-gdal

.github/workflows/linux_build.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -264,18 +264,31 @@ jobs:
264264
# FIXME the default BUILD_CMD here isn't working...we get an error
265265
# about the quotes not matching.
266266
- name: Build
267+
env:
268+
TRAVIS: yes
269+
TRAVIS_BRANCH: ${{ matrix.travis_branch }}
270+
BUILD_NAME: ${{ matrix.travis_branch }}
267271
run: |
268272
if test -f ".github/workflows/${{ matrix.id }}/${{ matrix.build_script }}"; then
269273
BUILD_CMD="$(pwd)/.github/workflows/${{ matrix.id }}/${{ matrix.build_script }}"
270274
else
271275
BUILD_CMD="sh -c 'cmake .. && make -j$(nproc)'"
272276
fi
273277
278+
# For cache
279+
mkdir -p .gdal
280+
274281
mkdir -p build-${{ matrix.id }}
275282
docker run --name gdal-build \
276283
--rm \
284+
-e CI \
285+
-e GITHUB_WORKFLOW \
286+
-e TRAVIS \
287+
-e TRAVIS_BRANCH \
288+
-e BUILD_NAME \
277289
-e "GDAL_SOURCE_DIR=$(pwd)" \
278290
-u $(id -u ${USER}):$(id -g ${USER}) \
291+
-v $(pwd)/.gdal:/.gdal:rw \
279292
-v $(pwd):$(pwd):rw \
280293
-v ${{ github.workspace }}/.ccache:/.ccache:rw \
281294
--workdir $(pwd)/build-${{ matrix.id }} \
@@ -322,7 +335,7 @@ jobs:
322335
fi
323336
324337
# For cache
325-
mkdir .gdal
338+
mkdir -p .gdal
326339
327340
docker run \
328341
-e CI \

.github/workflows/ubuntu_24.04/Dockerfile.ci

+22
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,25 @@ RUN python3 -m pip install -U --break-system-packages -r /tmp/requirements.txt
158158
# cfchecker requires udunits2
159159
RUN apt-get install -y --allow-unauthenticated libudunits2-0 libudunits2-data
160160
RUN python3 -m pip install --break-system-packages cfchecker
161+
162+
RUN python3 -m pip install --break-system-packages fsspec
163+
164+
# Manually install ADBC packages from Ubuntu 22.04 as there are no 24.04 packages at time of writing.
165+
RUN curl -LO -fsS https://apache.jfrog.io/artifactory/arrow/ubuntu/pool/jammy/main/a/apache-arrow-adbc/libadbc-driver-manager102_14-1_amd64.deb \
166+
&& curl -LO -fsS https://apache.jfrog.io/artifactory/arrow/ubuntu/pool/jammy/main/a/apache-arrow-adbc/libadbc-driver-manager-dev_14-1_amd64.deb \
167+
&& curl -LO -fsS https://apache.jfrog.io/artifactory/arrow/ubuntu/pool/jammy/main/a/apache-arrow-adbc/libadbc-driver-sqlite102_14-1_amd64.deb \
168+
&& curl -LO -fsS https://apache.jfrog.io/artifactory/arrow/ubuntu/pool/jammy/main/a/apache-arrow-adbc/libadbc-driver-sqlite-dev_14-1_amd64.deb \
169+
&& curl -LO -fsS https://apache.jfrog.io/artifactory/arrow/ubuntu/pool/jammy/main/a/apache-arrow-adbc/libadbc-driver-snowflake102_14-1_amd64.deb \
170+
&& curl -LO -fsS https://apache.jfrog.io/artifactory/arrow/ubuntu/pool/jammy/main/a/apache-arrow-adbc/libadbc-driver-snowflake-dev_14-1_amd64.deb \
171+
&& dpkg -i libadbc-driver-manager102_14-1_amd64.deb \
172+
&& dpkg -i libadbc-driver-manager-dev_14-1_amd64.deb \
173+
&& dpkg -i libadbc-driver-sqlite102_14-1_amd64.deb \
174+
&& dpkg -i libadbc-driver-sqlite-dev_14-1_amd64.deb \
175+
&& dpkg -i libadbc-driver-snowflake102_14-1_amd64.deb \
176+
&& dpkg -i libadbc-driver-snowflake-dev_14-1_amd64.deb
177+
178+
# Install libduckdb
179+
RUN curl -LO -fsS https://github.com/duckdb/duckdb/releases/download/v1.1.2/libduckdb-linux-amd64.zip \
180+
&& unzip libduckdb-linux-amd64.zip libduckdb.so \
181+
&& mv libduckdb.so /usr/lib/x86_64-linux-gnu \
182+
&& rm -f libduckdb-linux-amd64.zip

.github/workflows/ubuntu_24.04/expected_gdalinfo_formats.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
145145
JPEGXL -raster- (rwv): JPEG-XL (*.jxl)
146146
GPKG -raster,vector- (rw+vs): GeoPackage (*.gpkg, *.gpkg.zip)
147147
SQLite -raster,vector- (rw+v): SQLite / Spatialite / RasterLite2 (*.sqlite, *.db)
148-
OpenFileGDB -raster,vector- (rw+v): ESRI FileGDB (*.gdb)
148+
OpenFileGDB -raster,vector- (rw+v): ESRI FileGeodatabase (using OpenFileGDB) (*.gdb)
149149
CAD -raster,vector- (rovs): AutoCAD Driver (*.dwg)
150150
PLSCENES -raster,vector- (ro): Planet Labs Scenes API
151151
NGW -raster,vector- (rw+s): NextGIS Web

.github/workflows/ubuntu_24.04/expected_ogrinfo_formats.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
4242
PostgreSQL -vector- (rw+): PostgreSQL/PostGIS
4343
MySQL -vector- (rw+): MySQL
4444
OCI -vector- (rw+): Oracle Spatial
45-
OpenFileGDB -raster,vector- (rw+v): ESRI FileGDB (*.gdb)
45+
OpenFileGDB -raster,vector- (rw+v): ESRI FileGeodatabase (using OpenFileGDB) (*.gdb)
4646
FileGDB -vector- (rw+): ESRI FileGDB (*.gdb)
4747
DXF -vector- (rw+v): AutoCAD DXF (*.dxf)
4848
CAD -raster,vector- (rovs): AutoCAD Driver (*.dwg)
@@ -82,6 +82,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
8282
JSONFG -vector- (rw+v): OGC Features and Geometries JSON (*.json)
8383
MiraMonVector -vector- (rw+v): MiraMon Vectors (.pol, .arc, .pnt) (*.pol, *.arc, *.pnt)
8484
XODR -vector- (ro): OpenDRIVE - Open Dynamic Road Information for Vehicle Environment (*.xodr)
85+
ADBC -vector- (ro): Arrow Database Connectivity
8586
TIGER -vector- (rov): U.S. Census TIGER/Line
8687
AVCBin -vector- (rov): Arc/Info Binary Coverage
8788
AVCE00 -vector- (rov): Arc/Info E00 (ASCII) Coverage (*.e00)

.github/workflows/windows_conda_expected_gdalinfo_formats.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
144144
STACIT -raster- (rovs): Spatio-Temporal Asset Catalog Items
145145
NSIDCbin -raster- (rov): NSIDC Sea Ice Concentrations binary (.bin) (*.bin)
146146
GPKG -raster,vector- (rw+vs): GeoPackage (*.gpkg, *.gpkg.zip)
147-
OpenFileGDB -raster,vector- (rw+v): ESRI FileGDB (*.gdb)
147+
OpenFileGDB -raster,vector- (rw+v): ESRI FileGeodatabase (using OpenFileGDB) (*.gdb)
148148
CAD -raster,vector- (rovs): AutoCAD Driver (*.dwg)
149149
PLSCENES -raster,vector- (ro): Planet Labs Scenes API
150150
NGW -raster,vector- (rw+s): NextGIS Web

.github/workflows/windows_conda_expected_ogrinfo_formats.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
3939
PGeo -vector- (ro): ESRI Personal GeoDatabase (*.mdb)
4040
MSSQLSpatial -vector- (rw+): Microsoft SQL Server Spatial Database (BCP)
4141
PostgreSQL -vector- (rw+): PostgreSQL/PostGIS
42-
OpenFileGDB -raster,vector- (rw+v): ESRI FileGDB (*.gdb)
42+
OpenFileGDB -raster,vector- (rw+v): ESRI FileGeodatabase (using OpenFileGDB) (*.gdb)
4343
DXF -vector- (rw+v): AutoCAD DXF (*.dxf)
4444
CAD -raster,vector- (rovs): AutoCAD Driver (*.dwg)
4545
FlatGeobuf -vector- (rw+v): FlatGeobuf (*.fgb)
@@ -77,6 +77,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
7777
PMTiles -vector- (rw+v): ProtoMap Tiles (*.pmtiles)
7878
JSONFG -vector- (rw+v): OGC Features and Geometries JSON (*.json)
7979
MiraMonVector -vector- (rw+v): MiraMon Vectors (.pol, .arc, .pnt) (*.pol, *.arc, *.pnt)
80+
ADBC -vector- (ro): Arrow Database Connectivity
8081
TIGER -vector- (rov): U.S. Census TIGER/Line
8182
AVCBin -vector- (rov): Arc/Info Binary Coverage
8283
AVCE00 -vector- (rov): Arc/Info E00 (ASCII) Coverage (*.e00)

.pre-commit-config.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ repos:
55
- id: black
66
exclude: >
77
(?x)^(
8-
swig/python/osgeo/|
8+
swig/python/osgeo/__init__.py|
9+
swig/python/osgeo/gdalnumeric.py|
910
autotest/ogr/data/
1011
)
1112
- repo: https://github.com/timothycrosley/isort
@@ -14,7 +15,8 @@ repos:
1415
- id: isort
1516
exclude: >
1617
(?x)^(
17-
swig/python/osgeo/|
18+
swig/python/osgeo/__init__.py|
19+
swig/python/osgeo/gdalnumeric.py|
1820
autotest/ogr/data/
1921
)
2022
- repo: https://github.com/pycqa/flake8
@@ -23,7 +25,8 @@ repos:
2325
- id: flake8
2426
exclude: >
2527
(?x)^(
26-
swig/python/osgeo/|
28+
swig/python/osgeo/__init__.py|
29+
swig/python/osgeo/gdalnumeric.py|
2730
examples/|
2831
autotest/ogr/data/
2932
)
@@ -54,6 +57,7 @@ repos:
5457
frmts/grib/degrib/degrib|
5558
frmts/grib/degrib/g2clib|
5659
port/utf8.h|
60+
ogr/ogrsf_frmts/adbc/ogr_adbc_internal.h|
5761
ogr/ogrsf_frmts/cad/libopencad/|
5862
ogr/ogrsf_frmts/geojson/libjson/|
5963
ogr/ogrsf_frmts/flatgeobuf/flatbuffers/|

NEWS.md

+10
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ GTiff driver:
217217
* use main dataset GetSiblingFiles() for overviews
218218
* SRS writer: do not use EPSG:4326 if angular unit is not degree
219219
* make driver optional (but must be explicitly disabled)
220+
* tif_jxl: writer: propagate DISTANCE/QUALITY setting to extra channel
221+
* fix memory leak when trying to open COG in update mode
220222
* Internal libtiff: resync with upstream
221223

222224
HEIF driver:
@@ -435,13 +437,16 @@ Zarr driver:
435437
when possible
436438
* Add OGRWKBTransform() for in-place coordinate transformation of WKB geometries
437439
* OGR_GreatCircle_ API: do not hardcode Earth radius
440+
* ogr_core.h: suppress warning when building with -Wpedantic for C < 23 (#2322)
438441

439442
### OGRSpatialReference
440443

441444
* OGRSpatialReference::FindMatches(): improve when input SRS doesn't have
442445
expected axis order
443446
* OGRSpatialReference::EPSGTreatsAsLatLong()/EPSGTreatsAsNorthingEasting():
444447
remove the check on the EPSG authority
448+
* Add OSRGetAuthorityListFromDatabase() to get the list of CRS authorities used
449+
in the PROJ database.
445450

446451
### Utilities
447452

@@ -470,6 +475,7 @@ Arrow ecosystem:
470475
* Arrow/Parquet/generic arrow: add write support for arrow.json extension
471476
* Add a Arrow VSI file system (for libarrow >= 16.0) allowing to use GDAL
472477
VSI file systems as libarrow compatible file systems.
478+
* Add (minimum) support for libarrow 18.0.0
473479

474480
Arrow driver
475481
* add read support for StringView and BinaryView (but not in OGR generic Arrow
@@ -521,6 +527,7 @@ GPKG driver:
521527
* prevent from creating field with same name, or with the name of the geometry
522528
field
523529
* CreateField(): check we are not reaching the max number of fields
530+
* SQLite/GPKG: turn on SQLite 'PRAGMA secure_delete=1' by default
524531

525532
HANA driver:
526533
* Add support for REAL_VECTOR type (#10499)
@@ -607,6 +614,7 @@ WFS driver:
607614
## SWIG bindings
608615

609616
* Python/Java: replace sprintf() with snprintf() to avoid warnings on OSX
617+
* fix memleak in gdal.GetConfigOptions()
610618

611619
### Python bindings
612620

@@ -623,6 +631,8 @@ WFS driver:
623631
* make MDArray.Write(array_of_strings) work with a 0-d string variable
624632
* Avoid linear scan in gdal_array.NumericTypeCodeToGDALTypeCode (#10694)
625633
* Dataset.Close(): invalidate children before closing dataset
634+
* __init__.py: remove calls to warnings.simplefilter() (#11140)
635+
* fix compatibility issue with SWIG 4.3.0 and PYTHONWARNINGS=error
626636

627637
### Java bindings
628638

0 commit comments

Comments
 (0)