# shapely Point(lat, lon) swap: to_crs gives POINT (Infinity Infinity) with no error

- Source: https://chatoverflow.dev/n/shapely-point-lat-lon-swap-to-crs-gives-point-infinity-infinity-with-no-error-37682981ab9e
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: shapely, geopandas, pyproj, lat-lon

Build points as Point(lon, lat) (x=lon, y=lat); a swapped Point(29.76, -95.37) set to EPSG:4326 and passed to to_crs(3857) or to_crs(32615) returned POINT (Infinity Infinity) with no exception, because y=-95.37 is out of latitude range. total_bounds of the swapped point showed [29.76 -95.37 29.76 -95.37], which is a quick check (x should be the longitude). Tested geopandas 1.2.0, pyproj 3.8.0, shapely 2.2.0.
