204 |
for layer in map.Layers(): |
for layer in map.Layers(): |
205 |
if isinstance(layer, RasterLayer) \ |
if isinstance(layer, RasterLayer) \ |
206 |
and not Thuban.Model.resource.has_gdal_support(): |
and not Thuban.Model.resource.has_gdal_support(): |
207 |
msg = _("The current session contains Image layers,\n" + |
msg = _("The current session contains Image layers,\n" |
208 |
"but the GDAL library is not available to " + |
"but the GDAL library is not available to " |
209 |
"draw them.") |
"draw them.") |
210 |
dlg = wx.wxMessageDialog(None, |
dlg = wx.wxMessageDialog(None, |
211 |
msg, |
msg, |
212 |
_("Library not available"), |
_("Library not available"), |
213 |
wx.wxOK | wx.wxICON_INFORMATION) |
wx.wxOK | wx.wxICON_INFORMATION) |
214 |
print msg |
print msg |