Changeset 4577 for trunk/gui/scripts/mapviewer.tcl
- Timestamp:
- Jul 27, 2014, 1:43:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mapviewer.tcl
r4576 r4577 882 882 "coords" { 883 883 set len [llength $args] 884 if {$len <4} {885 puts stderr " Coords out of range"884 if {$len == 4} { 885 puts stderr "Map coords out of range" 886 886 } elseif {$len < 6} { 887 887 foreach { x y z } [lrange $args 1 end] break 888 puts stderr " Coords: $x $y $z"888 puts stderr "Map coords: $x $y $z" 889 889 } elseif {$len < 7} { 890 890 foreach { x y z screenX screenY } [lrange $args 1 end] break 891 puts stderr " Coords($screenX,$screenY): $x $y $z"891 puts stderr "Map coords($screenX,$screenY): $x $y $z" 892 892 } else { 893 893 foreach { x y z screenX screenY srs vert } [lrange $args 1 end] break 894 puts stderr " Coords($screenX,$screenY): $x $y $z {$srs} {$vert}"894 puts stderr "Map coords($screenX,$screenY): $x $y $z {$srs} {$vert}" 895 895 } 896 896 } … … 918 918 set len [llength $args] 919 919 if {$len == 5} { 920 puts stderr "Screen Coords out of range"920 puts stderr "Screen coords out of range" 921 921 } else { 922 922 foreach { x y z worldX worldY worldZ } [lrange $args 1 end] break 923 puts stderr " Coords($worldX,$worldY,$worldZ): $x $y $z"923 puts stderr "Screen coords($worldX,$worldY,$worldZ): $x $y $z" 924 924 } 925 925 }
Note: See TracChangeset
for help on using the changeset viewer.