tclsh$ package require tclgeomap 2
2.0
tclsh$ geomap::georadius km
6366.70701949
tclsh$ geomap::latlonok [list 30.0 -97.0]
1
tclsh$ geomap::latlonok foo
0
tclsh$ geomap::lonbtwn 0 {-10 10}
1
tclsh$ geomap::lonbtwn 180 {-170 170}
1
tclsh$ geomap::lonbtwn -45 {270 360}
1
tclsh$ geomap::lonbtwn 45 {270 360}
0
tclsh$ geomap::gclcross {0 0} {0 10} {5 5} {-5 5}
0.0 5.0
tclsh$ geomap::gclcross {0 0} {10 0} {5 -5} {5 5}
5.019002 0.0
tclsh$ geomap::domnlat 80.0
80.0
tclsh$ geomap::domnlat 100.0
80.0
tclsh$ geomap::domnlon 170.0 0.0
170.0
tclsh$ geomap::domnlon 190.0 0.0
-170.0
tclsh$ geomap::domnlon -10.0 180.0
350.0
tclsh$ geomap::dmstodec {35 10 20}
35.1722222222
tclsh$ geomap::dmstodec {35 10 20 N 97 25 50 W}
35.172222 -97.430556
tclsh$ geomap::dmstodec {35 10.306 N 97 25.854 W}
35.171767 -97.4309
tclsh$ geomap::dectodm {35.171767 -97.4309}
35 10 N 97 26 W
tclsh$ geomap::dectodms {35.171767 -97.4309}
35 10 18 N 97 25 51 W
tclsh$ geomap::cartg 1:10000000
1e-07
tclsh$ geomap::cartg 1.0e-7
1:10000000
|
tclsh$ geomap::projection Mercator 0.0
proj0
tclsh$ proj0 info
Mercator 0.000
tclsh$ proj0 fmlatlon {10.0 10.0}
1111200.0 1116884.875
tclsh$ proj0 tolatlon {1111200.0 1116884.875}
10.0 10.0
tclsh$ geomap::scalept [proj0 fmlatlon {10.0 10.0}] [geomap::cartg 1:10000000]
0.111120000482 0.111688487232
tclsh$ proj0 set LambertEqArea {0.0 0.0}
tclsh$ proj0 info
LambertEqArea { 0.000 0.000 }
tclsh$ proj0 fmlatlon {10.0 10.0}
1097072.625 1113996.75
tclsh$ proj0 tolatlon {1097072.625 1113996.75}
10.0 10.0
tclsh$ geomap::projection PolarStereographic N
proj1
tclsh$ proj0 info
LambertEqArea { 0.000 0.000 }
tclsh$ proj1 info
Stereographic {90.0 0.0}
|
tclsh$ geomap::lnarr fmlist line0 {{0 0} {0 10} {10 10} {10 0} {0 0}}
line0
tclsh$ line0 info
{} {10.0 10.0 0.0 0.0} 1 5 5
tclsh$ line0 descr "Behold my box"
Behold my box
tclsh$ line0 info
{Behold my box} {10.0 10.0 0.0 0.0} 1 5 5
tclsh$ exec mkdir -p lines
tclsh$ cd lines
tclsh$ line0 toxdr line0.xdr
tclsh$ ls -l
total 1
-rw-r--r-- 1 gordonc other 64 Jul 23 11:34 line0.xdr
tclsh$ rename line0 {}
tclsh$ line0 info
invalid command name "line0"
while evaluating {line0 info}
tclsh$ geomap::lnarr fmxdr line1 line0.xdr
line1
tclsh$ line1 info
{Behold my box} {10.0 10.0 0.0 0.0} 1 5 5
tclsh$ line1 containpt {5.0 5.0}
1
tclsh$ line1 containpt {15.0 15.0}
0
tclsh$ geomap::lnarr fmlist lines::line1 {{0 0} {0 -10} {-10 -10} {-10 0} {0 0}}
lines::line1
tclsh$ lines::line1 descr {Another box, in a namespace}
Another box, in a namespace
tclsh$ line1 info
{Behold my box} {10.0 10.0 0.0 0.0} 1 5 5
tclsh$ lines::line1 info
{Another box, in a namespace} {0.0 0.0 -10.0 -10.0} 1 5 5
tclsh$ geomap::lnarr fmlist lines1 [list [line1 tolist] [lines::line1 tolist]]
lines1
tclsh$ lines1 descr {This linearray has two lines}
This linearray has two lines
tclsh$ lines1 info
{This linearray has two lines} {10.0 10.0 -10.0 -10.0} 2 10 5
tclsh$ lines1 tolist
{{0.0 0.0} {0.0 10.0} {10.0 10.0} {10.0 0.0} {0.0 0.0}}
{{0.0 0.0} {0.0 -10.0} {-10.0 -10.0} {-10.0 0.0} {0.0 0.0}}
tclsh$ lines1 containpt {5 -5}
0
tclsh$ lines1 containpt {5 5}
1
tclsh$ lines1 containpt {-5 5}
0
tclsh$ lines1 containpt {-5 -5}
1
|
tclsh$ geomap::place distance {0 0} {10 0}
10.0
tclsh$ geomap::place distance {0 0} {10 0} km
1111.2
tclsh$ geomap::place distance {0 0} {10 0} nmi
600.0
tclsh$ geomap::place distance {0 0} {1 1}
1.414178
tclsh$ geomap::place azrng {0 0} {1 1}
44.995636 1.414178
tclsh$ geomap::place step {0 0} 44.995636 1.414178
1.0 1.0
tclsh$ geomap::place new place1 {0 0}
place1
tclsh$ place1 set
0.0 0.0
tclsh$ place1 step 44.995636 1.414178
1.0 1.0
tclsh$ place1 set {30 -97}
30 -97
tclsh$ geomap::place new place2 {30 -90}
place2
tclsh$ geomap::place azrng place1 place2
88.248366 6.061234
tclsh$ geomap::place new place3 {30 -80}
place3
tclsh$ geomap::place new place4 {30 -70}
place4
tclsh$ place1 inrange 7.0 {place2 place3 place4}
place2
tclsh$ place1 inrange {800 km} {place2 place3 place4}
place2
tclsh$ place1 inrange {4800 km} {place2 place3 place4}
place2 place3 place4
|