I am trying to use a shapefile of Great Britain to display some heatmap results on top of it. My data is in EPSG 4326 (longitude, latitude), but the shapefile is in EPSG 27700. I tried re-projecting it, but somehow this goes wrong for England. I have only just started working with geopandas (and spatial data), so maybe this is an obvious mistake.
import pandas as pd import numpy as np import geopandas as gpd UK_map = gpd.read_file(r'C:\Users\Downloads\Countries__December_2017__Boundaries-shp\Countries__December_2017__Boundaries.shp') UK_map = UK_map.to_crs(epsg=4326)
When I check UK_map with
UK_map.plot() before transformation, everything seems fine.
But after transformation, England has lots of "inf" in geometry:
Can anyone help?