Skip to content

Commit cdce695

Browse files
Merge pull request #66 from gregory-halverson-jpl/main
v1.18.0 add boundary_latlon to BBox, CI Python 3.10 ~ 3.14, dev Python 3.14
2 parents 0e0dfb5 + 7e7f910 commit cdce695

4 files changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
contents: read
13+
pull-requests: read
14+
1115
jobs:
1216
test:
1317
runs-on: ubuntu-latest
1418
strategy:
1519
matrix:
16-
python-version: ["3.10", "3.11", "3.12", "3.13"]
20+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1721

1822
steps:
1923
- name: Checkout repository

makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Python version for environment creation
2+
PYTHON_VERSION ?= 3.14
3+
14
.PHONY: clean test build twine-upload dist environment install uninstall reinstall test
25

36
clean:
@@ -23,7 +26,7 @@ dist:
2326
make twine-upload
2427

2528
environment:
26-
mamba create -y -n rasters python=3.11 jupyter
29+
mamba create -y -n rasters python=$(PYTHON_VERSION) jupyter
2730

2831
remove-environment:
2932
mamba env remove -y -n rasters

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rasters"
7-
version = "1.17.1"
7+
version = "1.18.0"
88
description = "raster processing toolkit"
99
readme = "README.md"
1010
authors = [

rasters/bbox.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,16 @@ def latlon(self):
159159
"""
160160
return self.transform(WGS84)
161161

162+
@property
163+
def boundary_latlon(self) -> Polygon:
164+
"""
165+
Returns a Polygon representation of the BBox boundary in WGS84 coordinates.
166+
167+
Returns:
168+
Polygon: The boundary polygon in WGS84 (latitude/longitude) CRS.
169+
"""
170+
return self.polygon.to_crs(WGS84)
171+
162172
@property
163173
def round(self) -> BBox:
164174
"""

0 commit comments

Comments
 (0)