Skip to content
Snippets Groups Projects
Commit acc6158e authored by Maël Méliani's avatar Maël Méliani
Browse files

Compute proj4 for raster data.

parent a343814a
No related branches found
No related tags found
No related merge requests found
......@@ -404,8 +404,9 @@ class Coveragestore(object):
return self.backend.GetProjection()
def get_proj4(self):
# TODO compute this.
return "+proj=longlat +datum=WGS84 +no_defs"
proj = osr.SpatialReference()
proj.ImportFromWkt(self.get_projection())
return proj.ExportToProj4()
def nbbands(self):
return self.backend.RasterCount
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment