/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/renderer.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/renderer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2711 by dpinte, Mon Sep 18 14:27:02 2006 UTC revision 2712 by bernhard, Sun Oct 15 23:27:05 2006 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001-2005 by Intevation GmbH  # Copyright (c) 2001-2006 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]> (2001-2003)  # Bernhard Herzog <[email protected]> (2001-2003)
4  # Jonathan Coles <[email protected]> (2003)  # Jonathan Coles <[email protected]> (2003)
# Line 47  from Thuban.version import versions Line 47  from Thuban.version import versions
47  if Thuban.Model.resource.has_gdal_support():  if Thuban.Model.resource.has_gdal_support():
48      from gdalwarp import ProjectRasterFile      from gdalwarp import ProjectRasterFile
49    
50    verbose = 0 # whether to talk more on stdout
51    
52  # Map the strings used for the format parameter of the draw_raster_data  # Map the strings used for the format parameter of the draw_raster_data
53  # method to the appropriate wxWindows constants  # method to the appropriate wxWindows constants
# Line 127  class MapRenderer(BaseRenderer): Line 128  class MapRenderer(BaseRenderer):
128                  options = options & ~2 # ALPHA_MASK not supported                  options = options & ~2 # ALPHA_MASK not supported
129    
130              try:              try:
131                    if verbose > 0:
132                        print "doing ProjectRasterFile '%s' -> '%s'" % \
133                                    (srcProj, dstProj)
134                        print "extents:", extents, "resolution:", resolution
135                        print "dimensions:", dimensions, "options:", options
136                  ret = ProjectRasterFile(layer.GetImageFilename(),                  ret = ProjectRasterFile(layer.GetImageFilename(),
137                                          srcProj, dstProj,                                          srcProj, dstProj,
138                                          extents, resolution, dimensions,                                          extents, resolution, dimensions,

Legend:
Removed from v.2711  
changed lines
  Added in v.2712

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26