Skip to content

Commit 64f0c43

Browse files
author
Taher Chegini
committed
BUG: Fix the condition for checking input crs. [skip ci]
1 parent 836681a commit 64f0c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pygeoutils/geotools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def geo2polygon(
307307
geom = cast("BaseGeometry", geom)
308308
if geo_crs is not None and crs is not None:
309309
return geo_transform(geom, geo_crs, crs)
310-
elif geo_crs is None and crs is not None:
310+
elif geo_crs is None and crs is None:
311311
return geom
312312
raise InputTypeError("geo_crs/crs", "either both None or both valid CRS")
313313

0 commit comments

Comments
 (0)