I'm try to load this shapefile with Basemap in order to plot it in Python:
But I get the following error:
ValueError: shapefile must have lat/lon vertices - it looks like this one has vertices in map projection coordinates. You can convert the shapefile to geographic coordinates using the shpproj utility from the shapelib tools
I tried using
ogr2ogr as another answer in this site suggested, but for the life of me I can not figure out what parameters I should pass to those programs, as I have zero knowledge about GIS in general. So if anyone here could help me with the conversion command that would be great.
I am on Ubuntu and the code I'm using is pretty simple I guess:
from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt map = Basemap() map.drawmapboundary(fill_color='aqua') map.fillcontinents(color='#ddaa66',lake_color='aqua') map.drawcoastlines() map.readshapefile('periphereies/periphereies', 'periphereies') plt.show()