Skip to content

Commit

Permalink
Merge branch 'OSGeo:master' into i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichigmf authored Oct 30, 2024
2 parents 4a99a4b + 51b8698 commit abda041
Show file tree
Hide file tree
Showing 217 changed files with 9,442 additions and 3,588 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cmake_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ jobs:
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/install-gdal/lib
$GITHUB_WORKSPACE/install-gdal/bin/gdalinfo --version
PYTHONPATH=$GITHUB_WORKSPACE/install-gdal/lib/python3.8/site-packages python3 -c "from osgeo import gdal;print(gdal.VersionInfo(None))"
# Test fix for https://github.com/conda-forge/gdal-feedstock/issues/995
PYTHONWARNINGS="error" PYTHONPATH=$GITHUB_WORKSPACE/install-gdal/lib/python3.8/site-packages python3 -c "from osgeo import gdal"
PYTHONPATH=$GITHUB_WORKSPACE/install-gdal/lib/python3.8/site-packages python3 $GITHUB_WORKSPACE/scripts/check_doc.py
- name: CMake with rpath
run: |
Expand Down Expand Up @@ -418,7 +420,6 @@ jobs:
- uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
with:
activate-environment: gdalenv
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
auto-update-conda: true
Expand All @@ -433,7 +434,7 @@ jobs:
cfitsio freexl geotiff libjpeg-turbo libpq libspatialite libwebp-base pcre pcre2 postgresql \
sqlite tiledb zstd cryptopp cgal doxygen librttopo libkml openssl xz \
openjdk ant qhull armadillo blas blas-devel libblas libcblas liblapack liblapacke blosc libarchive \
arrow-cpp pyarrow libaec libheif libavif cmake
arrow-cpp pyarrow libaec libheif libavif cmake fsspec
- name: Check CMake version
shell: bash -l {0}
run: |
Expand Down Expand Up @@ -526,7 +527,6 @@ jobs:
- uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
with:
activate-environment: gdalenv
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
auto-update-conda: true
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:

- uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
with:
#miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
channels: conda-forge
Expand Down
37 changes: 30 additions & 7 deletions .github/workflows/coverity_scan/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,33 @@ cmake ${GDAL_SOURCE_DIR:=..} \

/tmp/cov-analysis-linux64/bin/cov-build --dir cov-int make "-j$(nproc)"
tar czf cov-int.tgz cov-int
curl \
--form token=$COVERITY_SCAN_TOKEN \
--form email=$COVERITY_SCAN_EMAIL \
--form file=@cov-int.tgz \
--form version=master \
--form description="`git rev-parse --abbrev-ref HEAD` `git rev-parse --short HEAD`" \
https://scan.coverity.com/builds?project=GDAL

apt-get update -y
apt-get install -y jq

## Below from https://scan.coverity.com/projects/gdal/builds/new

# Initialize a build. Fetch a cloud upload url.
curl -X POST \
-d version=master \
-d description="$(git rev-parse --abbrev-ref HEAD) $(git rev-parse --short HEAD)" \
-d token=$COVERITY_SCAN_TOKEN \
-d email=$COVERITY_SCAN_EMAIL \
-d file_name="cov-int.tgz" \
https://scan.coverity.com/projects/749/builds/init \
| tee response

# Store response data to use in later stages.
upload_url=$(jq -r '.url' response)
build_id=$(jq -r '.build_id' response)

# Upload the tarball to the Cloud.
curl -X PUT \
--header 'Content-Type: application/json' \
--upload-file cov-int.tgz \
$upload_url

# Trigger the build on Scan.
curl -X PUT \
-d token=$COVERITY_SCAN_TOKEN \
https://scan.coverity.com/projects/749/builds/$build_id/enqueue
10 changes: 10 additions & 0 deletions .github/workflows/fedora_rawhide/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ cmake ${GDAL_SOURCE_DIR:=..} \
-DCMAKE_CXX_FLAGS="-std=c++20 -Werror -O1 -D_FORTIFY_SOURCE=2" \
-DCMAKE_SHARED_LINKER_FLAGS="-lstdc++" \
-DUSE_CCACHE=ON \
-DEMBED_RESOURCE_FILES=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWERROR_DEV_FLAG="-Werror=dev"
make -j$(nproc)
make -j$(nproc) install DESTDIR=/tmp/install-gdal

ctest -V -j $(nproc)

rm -rf data
cmake ${GDAL_SOURCE_DIR:=..} \
-DUSE_ONLY_EMBEDDED_RESOURCE_FILES=ON
rm -rf /tmp/install-gdal
make -j$(nproc)
make -j$(nproc) install DESTDIR=/tmp/install-gdal
15 changes: 14 additions & 1 deletion .github/workflows/linux_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,18 +264,31 @@ jobs:
# FIXME the default BUILD_CMD here isn't working...we get an error
# about the quotes not matching.
- name: Build
env:
TRAVIS: yes
TRAVIS_BRANCH: ${{ matrix.travis_branch }}
BUILD_NAME: ${{ matrix.travis_branch }}
run: |
if test -f ".github/workflows/${{ matrix.id }}/${{ matrix.build_script }}"; then
BUILD_CMD="$(pwd)/.github/workflows/${{ matrix.id }}/${{ matrix.build_script }}"
else
BUILD_CMD="sh -c 'cmake .. && make -j$(nproc)'"
fi
# For cache
mkdir -p .gdal
mkdir -p build-${{ matrix.id }}
docker run --name gdal-build \
--rm \
-e CI \
-e GITHUB_WORKFLOW \
-e TRAVIS \
-e TRAVIS_BRANCH \
-e BUILD_NAME \
-e "GDAL_SOURCE_DIR=$(pwd)" \
-u $(id -u ${USER}):$(id -g ${USER}) \
-v $(pwd)/.gdal:/.gdal:rw \
-v $(pwd):$(pwd):rw \
-v ${{ github.workspace }}/.ccache:/.ccache:rw \
--workdir $(pwd)/build-${{ matrix.id }} \
Expand Down Expand Up @@ -322,7 +335,7 @@ jobs:
fi
# For cache
mkdir .gdal
mkdir -p .gdal
docker run \
-e CI \
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/ubuntu_24.04/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,25 @@ RUN python3 -m pip install -U --break-system-packages -r /tmp/requirements.txt
# cfchecker requires udunits2
RUN apt-get install -y --allow-unauthenticated libudunits2-0 libudunits2-data
RUN python3 -m pip install --break-system-packages cfchecker

RUN python3 -m pip install --break-system-packages fsspec

# Manually install ADBC packages from Ubuntu 22.04 as there are no 24.04 packages at time of writing.
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 \
&& 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 \
&& curl -LO -fsS https://apache.jfrog.io/artifactory/arrow/ubuntu/pool/jammy/main/a/apache-arrow-adbc/libadbc-driver-sqlite102_14-1_amd64.deb \
&& 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 \
&& curl -LO -fsS https://apache.jfrog.io/artifactory/arrow/ubuntu/pool/jammy/main/a/apache-arrow-adbc/libadbc-driver-snowflake102_14-1_amd64.deb \
&& 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 \
&& dpkg -i libadbc-driver-manager102_14-1_amd64.deb \
&& dpkg -i libadbc-driver-manager-dev_14-1_amd64.deb \
&& dpkg -i libadbc-driver-sqlite102_14-1_amd64.deb \
&& dpkg -i libadbc-driver-sqlite-dev_14-1_amd64.deb \
&& dpkg -i libadbc-driver-snowflake102_14-1_amd64.deb \
&& dpkg -i libadbc-driver-snowflake-dev_14-1_amd64.deb

# Install libduckdb
RUN curl -LO -fsS https://github.com/duckdb/duckdb/releases/download/v1.1.2/libduckdb-linux-amd64.zip \
&& unzip libduckdb-linux-amd64.zip libduckdb.so \
&& mv libduckdb.so /usr/lib/x86_64-linux-gnu \
&& rm -f libduckdb-linux-amd64.zip
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
JPEGXL -raster- (rwv): JPEG-XL (*.jxl)
GPKG -raster,vector- (rw+vs): GeoPackage (*.gpkg, *.gpkg.zip)
SQLite -raster,vector- (rw+v): SQLite / Spatialite / RasterLite2 (*.sqlite, *.db)
OpenFileGDB -raster,vector- (rw+v): ESRI FileGDB (*.gdb)
OpenFileGDB -raster,vector- (rw+v): ESRI FileGeodatabase (using OpenFileGDB) (*.gdb)
CAD -raster,vector- (rovs): AutoCAD Driver (*.dwg)
PLSCENES -raster,vector- (ro): Planet Labs Scenes API
NGW -raster,vector- (rw+s): NextGIS Web
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ubuntu_24.04/expected_ogrinfo_formats.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
PostgreSQL -vector- (rw+): PostgreSQL/PostGIS
MySQL -vector- (rw+): MySQL
OCI -vector- (rw+): Oracle Spatial
OpenFileGDB -raster,vector- (rw+v): ESRI FileGDB (*.gdb)
OpenFileGDB -raster,vector- (rw+v): ESRI FileGeodatabase (using OpenFileGDB) (*.gdb)
FileGDB -vector- (rw+): ESRI FileGDB (*.gdb)
DXF -vector- (rw+v): AutoCAD DXF (*.dxf)
CAD -raster,vector- (rovs): AutoCAD Driver (*.dwg)
Expand Down Expand Up @@ -82,6 +82,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
JSONFG -vector- (rw+v): OGC Features and Geometries JSON (*.json)
MiraMonVector -vector- (rw+v): MiraMon Vectors (.pol, .arc, .pnt) (*.pol, *.arc, *.pnt)
XODR -vector- (ro): OpenDRIVE - Open Dynamic Road Information for Vehicle Environment (*.xodr)
ADBC -vector- (ro): Arrow Database Connectivity
TIGER -vector- (rov): U.S. Census TIGER/Line
AVCBin -vector- (rov): Arc/Info Binary Coverage
AVCE00 -vector- (rov): Arc/Info E00 (ASCII) Coverage (*.e00)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
STACIT -raster- (rovs): Spatio-Temporal Asset Catalog Items
NSIDCbin -raster- (rov): NSIDC Sea Ice Concentrations binary (.bin) (*.bin)
GPKG -raster,vector- (rw+vs): GeoPackage (*.gpkg, *.gpkg.zip)
OpenFileGDB -raster,vector- (rw+v): ESRI FileGDB (*.gdb)
OpenFileGDB -raster,vector- (rw+v): ESRI FileGeodatabase (using OpenFileGDB) (*.gdb)
CAD -raster,vector- (rovs): AutoCAD Driver (*.dwg)
PLSCENES -raster,vector- (ro): Planet Labs Scenes API
NGW -raster,vector- (rw+s): NextGIS Web
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/windows_conda_expected_ogrinfo_formats.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
PGeo -vector- (ro): ESRI Personal GeoDatabase (*.mdb)
MSSQLSpatial -vector- (rw+): Microsoft SQL Server Spatial Database (BCP)
PostgreSQL -vector- (rw+): PostgreSQL/PostGIS
OpenFileGDB -raster,vector- (rw+v): ESRI FileGDB (*.gdb)
OpenFileGDB -raster,vector- (rw+v): ESRI FileGeodatabase (using OpenFileGDB) (*.gdb)
DXF -vector- (rw+v): AutoCAD DXF (*.dxf)
CAD -raster,vector- (rovs): AutoCAD Driver (*.dwg)
FlatGeobuf -vector- (rw+v): FlatGeobuf (*.fgb)
Expand Down Expand Up @@ -77,6 +77,7 @@ Supported Formats: (ro:read-only, rw:read-write, +:update, v:virtual-I/O s:subda
PMTiles -vector- (rw+v): ProtoMap Tiles (*.pmtiles)
JSONFG -vector- (rw+v): OGC Features and Geometries JSON (*.json)
MiraMonVector -vector- (rw+v): MiraMon Vectors (.pol, .arc, .pnt) (*.pol, *.arc, *.pnt)
ADBC -vector- (ro): Arrow Database Connectivity
TIGER -vector- (rov): U.S. Census TIGER/Line
AVCBin -vector- (rov): Arc/Info Binary Coverage
AVCE00 -vector- (rov): Arc/Info E00 (ASCII) Coverage (*.e00)
Expand Down
10 changes: 7 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ repos:
- id: black
exclude: >
(?x)^(
swig/python/osgeo/|
swig/python/osgeo/__init__.py|
swig/python/osgeo/gdalnumeric.py|
autotest/ogr/data/
)
- repo: https://github.com/timothycrosley/isort
Expand All @@ -14,7 +15,8 @@ repos:
- id: isort
exclude: >
(?x)^(
swig/python/osgeo/|
swig/python/osgeo/__init__.py|
swig/python/osgeo/gdalnumeric.py|
autotest/ogr/data/
)
- repo: https://github.com/pycqa/flake8
Expand All @@ -23,7 +25,8 @@ repos:
- id: flake8
exclude: >
(?x)^(
swig/python/osgeo/|
swig/python/osgeo/__init__.py|
swig/python/osgeo/gdalnumeric.py|
examples/|
autotest/ogr/data/
)
Expand Down Expand Up @@ -54,6 +57,7 @@ repos:
frmts/grib/degrib/degrib|
frmts/grib/degrib/g2clib|
port/utf8.h|
ogr/ogrsf_frmts/adbc/ogr_adbc_internal.h|
ogr/ogrsf_frmts/cad/libopencad/|
ogr/ogrsf_frmts/geojson/libjson/|
ogr/ogrsf_frmts/flatgeobuf/flatbuffers/|
Expand Down
Loading

0 comments on commit abda041

Please sign in to comment.