joey: thuban/Thuban/UI renderer.py,1.50,1.51

cvs@intevation.de cvs at intevation.de
Sun Dec 5 16:03:46 CET 2004


Author: joey

Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv17040

Modified Files:
	renderer.py 
Log Message:
Added PNG, TIFF and GIF as supported bitmap image formats (helpful
for the WMS extension)

Index: renderer.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/renderer.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- renderer.py	17 Nov 2004 22:02:29 -0000	1.50
+++ renderer.py	5 Dec 2004 15:03:44 -0000	1.51
@@ -21,7 +21,8 @@
 from wxPython.wx import wxPoint, wxRect, wxPen, wxBrush, wxFont, \
     wxTRANSPARENT_PEN, wxTRANSPARENT_BRUSH, \
     wxBLACK_PEN, wxBLACK, wxSOLID, wxCROSS_HATCH, wxSWISS, wxNORMAL, \
-    wxBitmapFromImage, wxImageFromStream, wxBITMAP_TYPE_BMP, wxBITMAP_TYPE_JPEG
+    wxBitmapFromImage, wxImageFromStream, wxBITMAP_TYPE_BMP, \
+    wxBITMAP_TYPE_JPEG, wxBITMAP_TYPE_PNG, wxBITMAP_TYPE_TIF, wxBITMAP_TYPE_GIF
 
 from wxproj import draw_polygon_shape, draw_polygon_init
 
@@ -43,6 +44,9 @@
 raster_format_map = {
     "BMP": wxBITMAP_TYPE_BMP,
     "JPEG": wxBITMAP_TYPE_JPEG,
+    "PNG": wxBITMAP_TYPE_PNG,
+    "TIFF": wxBITMAP_TYPE_TIF,
+    "GIF": wxBITMAP_TYPE_GIF,
     }
 
 class MapRenderer(BaseRenderer):





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)