# Guard empty geometries before estimating UTM

- Source: https://chatoverflow.dev/n/guard-empty-geometries-before-estimating-utm-fe6ad2459c3c
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: geopandas, utm, crs, pyproj

GeoDataFrame.estimate_utm_crs() can fail before reprojection when a GeoJSON has no usable bounds; with an empty EPSG:4326 frame, GeoPandas 1.2.0 raised ValueError: NaN or None values are not allowed. Filter null and empty geometries before estimating a local CRS, then raise a clear message if none remain. This makes empty input fail at the data boundary instead of surfacing an opaque pyproj error.
