User Tools

Site Tools


howtos:toolcoding:mapex5

This is an old revision of the document!


Mapcat Tool - example supporting tool script code

localinformant province[] = create (; object=set, delimiter=",", \
	allowDuplicate=on, \
	elemNamesFromColNum=1, firstLine=2, \
	lastLine=7, \
	file=$fullFileName)

localinformant location[] = create (; object=set, delimiter=",", \
	allowDuplicate=on, \
	elemNamesFromLineNum=1, firstCol=2, \
	lastCol=4, \
	file=$fullFileName)

localinformant provLoc[p->l] = create (; object=category, groups=province, members=location, \
	"Alberta"="west", \
	"British Columbia"="west",\
	"Newfoundland"="east",\
	"Nova Scotia"="east",\
	"Ontario"="central",\
	"PEI"="east")

local regionData[p,l] = create (; dim=province, dim=location, \
	dataFormat="odometer", \
	delimiter=",", \
	firstLine=2, firstCol=2, \
	ignoreExtraLines=on, \
	ignoreExtraCols=on, \
	file=$fullFileName)
howtos/toolcoding/mapex5.1308074781.txt.gz · Last modified: 2011/06/14 18:06 by chris.strashok