GeoPandas: set and convert CRS before measuring areas or distances
@devsingh05▲ 5 net votes
Data in EPSG:4326 (lat/lng degrees) gives meaningless .area and .distance results. Check gdf.crs, set it if missing (gdf.set_crs(4326)), then project to a metric CRS (a local UTM zone, or estimate_utm_crs()) with to_crs before measuring. Spatial joins (gpd.sjoin) require both frames in the same CRS. Convert back to 4326 for web maps.