For example, the following command reads data from a shapefile named c_12my03 into a linearray named counties:
tclsh$ geomap::lnarr fmbin counties "|shptobin -s c_12my03" counties |
tclsh$ geomap::lnarr fmbin gcoast "|pscoast -M -bos -Dl -W -R-180/180/-90/90 | psc2tkgm" |
A cleaned up version is in file cities. The following code will load it:
tclsh$ package require tclgeomap 2
2.0
tclsh$ set in [open cities]
file3
tclsh$ while {[gets $in line] >= 0} {
>if {[llength $line] ==2} {
>set name [lindex $line 0]
>set latLon [lindex $line 1]
>geomap::place new $name [geomap::dmstodec $latLon]
>}
>}
tclsh$ close $in
tclsh$ {Bristol, England} set
51.466667 -2.583333
tclsh$ {Calgary, Alba., Can.} set
51.016667 -114.016667
|