From acc6158e36b516c0e0a01b42ee44f3aeb79d6831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20M=C3=A9liani?= <m.meliani@neogeo-online.net> Date: Wed, 5 Jun 2013 11:10:00 +0200 Subject: [PATCH] Compute proj4 for raster data. --- src/stores.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stores.py b/src/stores.py index f6d9210..0000b7e 100644 --- a/src/stores.py +++ b/src/stores.py @@ -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 -- GitLab