[Git][debian-gis-team/rasterio][upstream] New upstream version 1.4.0~rc1

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Tue Sep 10 04:31:28 BST 2024



Bas Couwenberg pushed to branch upstream at Debian GIS Project / rasterio


Commits:
3c4e9e15 by Bas Couwenberg at 2024-09-10T05:12:42+02:00
New upstream version 1.4.0~rc1
- - - - -


6 changed files:

- .github/workflows/tests.yaml
- CHANGES.txt
- README.rst
- docs/topics/transforms.rst
- rasterio/__init__.py
- rasterio/warp.py


Changes:

=====================================
.github/workflows/tests.yaml
=====================================
@@ -149,7 +149,7 @@ jobs:
         # macos-13 is OSX Intel
         # macos-14 is OSX Arm64
         os: [macos-13, macos-14]
-        python-version: ['3.9', '3.10', '3.11']
+        python-version: ['3.9', '3.10', '3.11', '3.12']
         include:
           - os: ubuntu-latest
             python-version: '3.10'
@@ -158,42 +158,38 @@ jobs:
     steps:
       - uses: actions/checkout at v4
 
-      - name: Conda Setup
-        uses: conda-incubator/setup-miniconda at v3
+      - name: Setup Conda
+        uses: mamba-org/setup-micromamba at v1
         with:
-          miniforge-variant: Mambaforge
-          miniforge-version: latest
-          use-mamba: true
-          auto-update-conda: true
-          use-only-tar-bz2: false
+          init-shell: bash
+          environment-name: test
+          create-args: >-
+            python=${{ matrix.python-version }}
+            libgdal
+            geos=3.11
+            cython=3
+            numpy
 
       - name: Install Env
         shell: bash -l {0}
         run: |
-          conda config --prepend channels conda-forge
-          conda config --set channel_priority strict
-          conda create -n test python=${{ matrix.python-version }} libgdal geos=3.11 cython=3 numpy
-          conda activate test
-          python -m pip install -e . --no-use-pep517 || python -m pip install -e .
-          python -m pip install -r requirements-dev.txt
+          micromamba run -n test python -m pip install -e . --no-use-pep517 || micromamba run -n test python -m pip install -e .
+          micromamba run -n test python -m pip install -r requirements-dev.txt
 
       - name: Check and Log Environment
         shell: bash -l {0}
         run: |
-          conda activate test
-          python -V
-          conda info
+          micromamba run -n test python -V
+          micromamba info
 
       - name: Test with Coverage (Ubuntu)
         if: matrix.os == 'ubuntu-latest'
         shell: bash -l {0}
         run: |
-          conda activate test
-          python -m pytest -v -m "not wheel" -rxXs --cov rasterio --cov-report term-missing -k "not issue2353"
+          micromamba run python -m pytest -v -m "not wheel" -rxXs --cov rasterio --cov-report term-missing -k "not issue2353"
 
       - name: Test with Coverage (OSX)
         if: "${{matrix.os}} == 'macos-13' || ${{matrix.os}} == 'macos-14'"
         shell: bash -l {0}
         run: |
-          conda activate test
-          python -m pytest -v -m "not wheel" -rxXs  --cov rasterio --cov-report term-missing -k "not test_target_aligned_pixels and not test_reproject_error_propagation and not test_outer_boundless_pixel_fidelity and not issue2353"
+           micromamba run python -m pytest -v -m "not wheel" -rxXs  --cov rasterio --cov-report term-missing -k "not test_target_aligned_pixels and not test_reproject_error_propagation and not test_outer_boundless_pixel_fidelity and not issue2353"


=====================================
CHANGES.txt
=====================================
@@ -1,6 +1,14 @@
 Changes
 =======
 
+1.4.0rc1 (2024-09-09)
+---------------------
+
+This is the first 1.4.0 release candidate. There have been no changes since
+1.4b2.
+
+1.4.0 requires Python >= 3.9 and GDAL >= 3.5.
+
 1.4b2 (2024-08-30)
 ------------------
 


=====================================
README.rst
=====================================
@@ -20,9 +20,9 @@ Geographic information systems use GeoTIFF and other formats to organize and
 store gridded, or raster, datasets. Rasterio reads and writes these formats and
 provides a Python API based on N-D arrays.
 
-Rasterio 1.4 works with Python 3.9+, Numpy 1.21+, and GDAL 3.3+. Official
-binary packages for Linux, macOS, and Windows with most built-in format
-drivers plus HDF5, netCDF, and OpenJPEG2000 are available on PyPI.
+Rasterio 1.4 works with Python >= 3.9, Numpy >= 1.24, and GDAL >= 3.5. Official
+binary packages for Linux, macOS, and Windows with most built-in format drivers
+plus HDF5, netCDF, and OpenJPEG2000 are available on PyPI.
 
 Read the documentation for more details: https://rasterio.readthedocs.io/.
 


=====================================
docs/topics/transforms.rst
=====================================
@@ -69,17 +69,21 @@ a value of 0 is assumed.
             transformer.xy(0, 0)
     (-123.47959047080701, 49.52794990575094)
 
-A first order correction would be to use a mean elevation value for the image
+A constant height offset can be specified using the ``rpc_height`` keyword argument. This is useful 
+for datasets with little elevation change. In this case, ``rpc_height`` is assumed to be an average
+height above sea level for ground in the target scene, while ``zs`` is the height above ground of coordinates.
 
 .. code-block:: python
 
     >>> with rasterio.open('RGB.byte.rpc.vrt') as src:
-            transformer = rasterio.trasform.RPCTransformer(src.rpcs)
-            transformer.xy(0, 0, zs=src.rpcs.height_off)
-    (-123.48096552376548, 49.528097381526386)
-
-Better yet is to sample height values from a digital elevation model (DEM). 
-:class:`.RPCTransformer` allows for options to be passed to :cpp:func:`GDALCreateRPCTransformerV2`
+            # 100 meters above sea level    
+            transformer = rasterio.transform.RPCTransformer(src.rpcs, rpc_height=100)
+            transformer.xy(0, 0, zs=0)
+    (-123.4811362101663, 49.52811584352445)
+
+When a constant height offset is not sufficient, sample height values from a digital elevation model (DEM).
+using the ``rpc_dem`` keyword argument. :class:`.RPCTransformer` allows for options to be passed to 
+:cpp:func:`GDALCreateRPCTransformerV2`
 
 .. code-block:: python
 


=====================================
rasterio/__init__.py
=====================================
@@ -81,7 +81,7 @@ except ImportError:
     have_vsi_plugin = False
 
 __all__ = ['band', 'open', 'pad', 'Band', 'Env', 'CRS']
-__version__ = "1.4b2"
+__version__ = "1.4.0rc1"
 __gdal_version__ = gdal_version()
 __proj_version__ = ".".join([str(version) for version in get_proj_version()])
 __geos_version__ = ".".join([str(version) for version in get_geos_version()])


=====================================
rasterio/warp.py
=====================================
@@ -218,7 +218,7 @@ def reproject(
         be raised if this parameter is defined together with src_transform
         or gcps.
     src_geoloc_array : array-like, optional
-        A pair of 2D arrays holding x and y coordinates, like a like
+        A pair of 2D arrays holding x and y coordinates, like
         a dense array of ground control points that may be used in place
         of src_transform.
     src_crs: CRS or dict, optional



View it on GitLab: https://salsa.debian.org/debian-gis-team/rasterio/-/commit/3c4e9e150159774bf9021a63dd9db63b31f6cb10

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/rasterio/-/commit/3c4e9e150159774bf9021a63dd9db63b31f6cb10
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240910/0ec51e19/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list