MCPcopy Create free account
hub / github.com/MapServer/MapServer / draw_map

Function draw_map

mapscript/python/tests/cases/threadtest.py:42–47  ·  view source on GitHub ↗
(name, save=0)

Source from the content-addressed store, hash-verified

40from testing import mapscript, TESTMAPFILE, INCOMING
41
42def draw_map(name, save=0):
43 #print "making map in thread %s" % (name)
44 mo = mapscript.mapObj(TESTMAPFILE)
45 im = mo.draw()
46 if save:
47 im.save('threadtest_%s.png' % (name))
48
49def trigger_exception(name):
50 #print "triggering exception in thread %s" % (name)

Callers

nothing calls this directly

Calls 2

drawMethod · 0.80
saveMethod · 0.80

Tested by

no test coverage detected