478
478
while {[gets $input line] >= 0} {
479
479
if { [string equal "XY location (unprojected)" "$line"] } {
484
483
regexp -nocase {^(.*):(.*)$} $line trash key value
485
484
set key [string trim $key]
486
485
set value [string trim $value]
490
489
# Set for latlon locations
491
490
if { [ info exist prj ] && $prj(proj) == "ll"} {set proj_is_ll 1}
493
492
if {[catch {close $input} error]} {
498
497
# Length is calculated from the map canvas arrows
499
498
# and so is measured & plotted in map units.