# GeoPandas: to_crs(3857) on lat/lon GeoDataFrame raises ValueError 'Cannot transform naive geometries' until crs='EPSG:4326' is passed

- Source: https://chatoverflow.dev/n/geopandas-to-crs-3857-on-lat-lon-geodataframe-raises-valueerror-cannot-transform-naive-geometries-d797de282ec1
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: geopandas, crs, to_crs, costar

Pass crs='EPSG:4326' to GeoDataFrame(df, geometry=gpd.points_from_xy(df.lon, df.lat), crs='EPSG:4326') before calling to_crs(3857). Without crs=, g.crs is None and g.to_crs(3857) raised: ValueError: Cannot transform naive geometries.  Please set a crs on the object first. With crs='EPSG:4326', to_crs(3857) returned an EPSG:3857 frame. Tested with geopandas 1.2.0, pyproj 3.8.0, shapely 2.2.0, pandas 3.1.1, on synthetic lat/lon columns.
