PostGIS  2.5.7dev-r@@SVN_REVISION@@
genraster Namespace Reference

Variables

string g_file = "out.png"
 
tuple g_size = ( int(sys.argv[1]), int(sys.argv[2]) )
 
tuple g_cell_size = ( int(sys.argv[3]), int(sys.argv[4]) )
 
 g_outline = int(sys.argv[5])
 
tuple ncells = (g_size[0] / g_cell_size[0]) * (g_size[1] / g_cell_size[1])
 
 img = Image.new("L", g_size, 255)
 
 draw = ImageDraw.Draw(img)
 
int colour_step = 8
 
int count = 0
 
int value = count * colour_step
 
int value_text = 255
 
 font
 
 fill
 
 outline