(MapCanvas.OnPaint): Add a try/except block
around the redraw routine to try to catch problems that the user
may create by selecting invalid projections for the data set and
map. Clears the display if there are any problems and prints the
error.
(MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
rectangle.
|