Skip to content
Advertisement

Tag: matplotlib-basemap

Plot .tif GDAL raster using matplotlib Basemap

I have a bit of code from here that I am using for plotting a geotiff image (Landsat): But, it fails at ct.TransformPoints(xy_source.reshape(2, size).T)) and I’m not sure why. The error it gives me: TypeError: in method ‘CoordinateTransformation_TransformPoints’, argument 1 of type ‘OSRCoordinateTransformationShadow *’ Which I do not understand. Any OSR guru’s out there? Thanks for reading. EDIT 1 The

Advertisement