Version 6 of map

Updated 2004-03-11 16:08:52

A Tk widget available from: http://cheshire.lib.berkeley.edu/mapwidget.html

LV so it appears that by map, you mean a graphical display of geographic data (i.e. GIS.

TR - The map widget itself is inside the Chesire II package at ftp://cheshire.berkeley.edu/pub/cheshire/cheshire2.v2.35.tar.gz This package also contains geodata that may be interesting for Geographic mapping the Tcl way or other GIS projects. For example, there is a file cities1 containing information in the form

 {GERMANY} {Berlin} {3060000} {13.4 52.51666}
 {USA} {Chicago} {3010000} {-87.6166 41.8833}
 {SOUTH AFRICA} {Cape Town} {860000} {18.41666 -33.91666}


[ Category Package based on Tk | Category Graphics | ]


Another meaning of map is function mapping, a classic primitive in functional programming - apply a function to all elements of a list:

 proc map {fun list} {
    set res {}
    foreach element $list {lappend res [$fun $element]}
    set res
 } ;# RS
 proc addTax x {expr {$x*1.16}}   
 % map addTax {1 10 5 2 1.95}
 1.16 11.6 5.8 2.32 2.262

Category Algorithm