We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 836681a commit 64f0c43Copy full SHA for 64f0c43
src/pygeoutils/geotools.py
@@ -307,7 +307,7 @@ def geo2polygon(
307
geom = cast("BaseGeometry", geom)
308
if geo_crs is not None and crs is not None:
309
return geo_transform(geom, geo_crs, crs)
310
- elif geo_crs is None and crs is not None:
+ elif geo_crs is None and crs is None:
311
return geom
312
raise InputTypeError("geo_crs/crs", "either both None or both valid CRS")
313
0 commit comments