GRASS Programmer's Manual  6.4.4(2014)-r
psmap/utils.py File Reference

Go to the source code of this file.

Data Structures

class  utils.Rect2D
 Class representing rectangle with floating point values. More...
 
class  utils.Rect2DPP
 Rectangle specified by 2 points (with floating point values). More...
 
class  utils.Rect2DPS
 Rectangle specified by point and size (with floating point values). More...
 
class  utils.UnitConversion
 Class for converting units. More...
 

Namespaces

 utils
 
 psmap.utils
 utilities for wxpsmap (classes, functions)
 

Functions

def utils.convertRGB (rgb)
 Converts wx.Colour(r,g,b,a) to string 'r:g:b' or named color, or named color/r:g:b string to wx.Colour, depending on input. More...
 
def utils.PaperMapCoordinates
 Converts paper (inch) coordinates <-> map coordinates. More...
 
def utils.AutoAdjust
 Computes map scale, center and map frame rectangle to fit region (scale is not fixed) More...
 
def utils.SetResolution (dpi, width, height)
 If resolution is too high, lower it. More...
 
def utils.ComputeSetRegion (self, mapDict)
 Computes and sets region from current scale, map center coordinates and map rectangle. More...
 
def utils.projInfo ()
 Return region projection and map units information, taken from render.py. More...
 
def utils.GetMapBounds
 Run ps.map -b to get information about map bounding box. More...
 
def utils.getRasterType (map)
 Returns type of raster map (CELL, FCELL, DCELL) More...
 
def utils.PilImageToWxImage
 Convert PIL image to wx.Image. More...
 
def utils.BBoxAfterRotation (w, h, angle)
 Compute bounding box or rotated rectangle. More...
 
def utils.loadPSForWindows (self)
 
def utils.GhostscriptForWindows (tile, size, fp)
 

Variables

 utils.havePILImage = True
 
 utils.unitConv
 
 utils.im
 
 utils.mode
 
 utils.size
 
 utils.tile