GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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
 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
 If resolution is too high, lower it. More...
 
def utils.ComputeSetRegion
 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
 Returns type of raster map (CELL, FCELL, DCELL) More...
 
def utils.PilImageToWxImage
 Convert PIL image to wx.Image. More...
 
def utils.BBoxAfterRotation
 Compute bounding box or rotated rectangle. More...
 
def utils.loadPSForWindows
 
def utils.GhostscriptForWindows
 

Variables

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