Skip to content

Commit 5fa4364

Browse files
committed
fixed units retrieval
1 parent 028b498 commit 5fa4364

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/guides/geometry.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"id": "2ee126e9",
2222
"metadata": {},
2323
"source": [
24-
"# Geometries\n",
24+
"# Geometry\n",
2525
"\n",
2626
"`pytileproj` does not have GDAL and OGR as a direct dependency and instead defines its own classes to store geospatial geometries. These geometries are used as an interface to and from many functions and class methods within `pytileproj`. \n",
2727
"\n",

docs/guides/tiling_system.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@
506506
"name": "python",
507507
"nbconvert_exporter": "python",
508508
"pygments_lexer": "ipython3",
509-
"version": "3.12.12"
509+
"version": "3.12.3"
510510
}
511511
},
512512
"nbformat": 4,

src/pytileproj/tiling_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def pyproj_crs(self) -> pyproj.CRS:
173173
@property
174174
def unit(self) -> str:
175175
"""Return projection unit."""
176-
return self._crs.prime_meridian.unit_name
176+
return self._crs.coordinate_system.to_cf()[0]["units"]
177177

178178
def lonlat_to_xy(self, lon: float, lat: float) -> ProjCoord:
179179
"""Convert geographic to a projected coordinates.

0 commit comments

Comments
 (0)