This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
howtos:toolcoding:mapex5 [2011/06/14 18:06] chris.strashok created |
howtos:toolcoding:mapex5 [2011/06/17 16:04] (current) chris.strashok |
||
---|---|---|---|
Line 5: | Line 5: | ||
localinformant province[] = create (; object=set, delimiter=",", \ | localinformant province[] = create (; object=set, delimiter=",", \ | ||
allowDuplicate=on, \ | allowDuplicate=on, \ | ||
- | elemNamesFromColNum=1, firstLine=2, \ | + | elemNamesFromLineNum=1, firstCol=1, \ |
- | lastLine=7, \ | + | lastCol=6, \ |
file=$fullFileName) | file=$fullFileName) | ||
- | localinformant location[] = create (; object=set, delimiter=",", \ | + | localinformant location[] = create (; object=set, \ |
- | allowDuplicate=on, \ | + | elemName1="central", \ |
- | elemNamesFromLineNum=1, firstCol=2, \ | + | elemName2="east", \ |
- | lastCol=4, \ | + | elemName3="west") |
- | 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, \ | + | local provinceData[p] = create (; dim=province, \ |
dataFormat="odometer", \ | dataFormat="odometer", \ | ||
delimiter=",", \ | delimiter=",", \ | ||
- | firstLine=2, firstCol=2, \ | + | firstLine=2, firstCol=1, \ |
ignoreExtraLines=on, \ | ignoreExtraLines=on, \ | ||
- | ignoreExtraCols=on, \ | + | ignoreExtraCols=on, \ |
file=$fullFileName) | file=$fullFileName) | ||
</code> | </code> |