Check for gdal support before importing gdalwarp.
(MapRenderer.render_map): Only try to optimize if we have gdal
support otherwise nothing will get drawn.
(MapCanvas.FitMapToWindow): This may be called during startup
before a map has been created. Check if map is None before
using it and do nothing if it is.
|