Changeset 34461 in project


Ignore:
Timestamp:
08/30/17 19:12:30 (3 weeks ago)
Author:
kon
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/geo-utils

    r34460 r34461  
    1515=== Module geopoint
    1616
    17 === Usage
     17==== Usage
    1818
    1919<enscript language=scheme>
     
    2121</enscript>
    2222
    23 === Argument Conventions
     23==== Argument Conventions
    2424
    2525; {{GP}} : {{geopoint}}.
     
    2727; {{LON}} : longitude {{real}}.
    2828
    29 === make-geopoint
     29==== make-geopoint
    3030
    3131<procedure>(make-geopoint LAT LON) => geopoint</procedure>
    3232
    33 === geopoint?
     33==== geopoint?
    3434
    3535<procedure>(geopoint? OBJ) => boolean</procedure>
    3636
    37 === check-geopoint
     37==== check-geopoint
    3838
    3939<procedure>(check-geopoint LOC OBJ [VARNAM]) => geopoint</procedure>
    4040
    41 === error-geopoint
     41==== error-geopoint
    4242
    4343<procedure>(error-geopoint LOC OBJ [VARNAM])</procedure>
    4444
    45 === geopoint-latitude
     45==== geopoint-latitude
    4646
    4747<procedure>(geopoint-latitude GP) => real</procedure>
    4848
    49 === geopoint-longitude
     49==== geopoint-longitude
    5050
    5151<procedure>(geopoint-longitude GP) => real</procedure>
    5252
    53 === geopoint-strictly-above
     53==== geopoint-strictly-above
    5454
    5555<procedure>(geopoint-strictly-above GP1 GP2) => boolean</procedure>
    5656
    57 === geopoint-above
     57==== geopoint-above
    5858
    5959<procedure>(geopoint-above GP1 GP2) => boolean</procedure>
    6060
    61 === geopoint-strictly-below
     61==== geopoint-strictly-below
    6262
    6363<procedure>(geopoint-strictly-below GP1 GP2) => boolean</procedure>
    6464
    65 === geopoint-below
     65==== geopoint-below
    6666
    6767<procedure>(geopoint-below GP1 GP2) => boolean</procedure>
    6868
    69 === geopoint-strictly-left
     69==== geopoint-strictly-left
    7070
    7171<procedure>(geopoint-strictly-left GP1 GP2) => boolean</procedure>
    7272
    73 === geopoint-left
     73==== geopoint-left
    7474
    7575<procedure>(geopoint-left GP1 GP2) => boolean</procedure>
    7676
    77 === geopoint-strictly-right
     77==== geopoint-strictly-right
    7878
    7979<procedure>(geopoint-strictly-right GP1 GP2) => boolean</procedure>
    8080
    81 === geopoint-right
     81==== geopoint-right
    8282
    8383<procedure>(geopoint-right GP1 GP2) => boolean</procedure>
    8484
    85 === geopoint=
     85==== geopoint=
    8686
    8787<procedure>(geopoint= GP1 GP2) => boolean</procedure>
    8888
    89 === geopoint<
     89==== geopoint<
    9090
    9191<procedure>(geopoint< GP1 GP2) => boolean</procedure>
    9292
    93 === geopoint>
     93==== geopoint>
    9494
    9595<procedure>(geopoint> GP1 GP2) => boolean</procedure>
    9696
    97 === geopoint<=
     97==== geopoint<=
    9898
    9999<procedure>(geopoint<= GP1 GP2) => boolean</procedure>
    100100
    101 === geopoint>=
     101==== geopoint>=
    102102
    103103<procedure>(geopoint>= GP1 GP2) => boolean</procedure>
     
    106106=== Module geobox
    107107
    108 === Usage
     108==== Usage
    109109
    110110<enscript language=scheme>
     
    112112</enscript>
    113113
    114 === Argument Conventions
     114==== Argument Conventions
    115115
    116116; {{GB}} : {{geobox}}.
    117117
    118 === make-geobox
     118==== make-geobox
    119119
    120120<procedure>(make-geobox GP-MIN GP-MAX) => geobox</procedure>
    121121
    122 === geobox?
     122==== geobox?
    123123
    124124<procedure>(geobox? OBJ) => boolean</procedure>
    125125
    126 === check-geobox
     126==== check-geobox
    127127
    128128<procedure>(check-geobox LOC OBJ [VARNAM]) => geobox</procedure>
    129129
    130 === error-geobox
     130==== error-geobox
    131131
    132132<procedure>(error-geobox LOC OBJ [VARNAM])</procedure>
    133133
    134 === geobox-minimum
     134==== geobox-minimum
    135135
    136136<procedure>(geobox-minimum GB) => geopoint</procedure>
    137137
    138 === geobox-maximum
     138==== geobox-maximum
    139139
    140140<procedure>(geobox-maximum GB) => geopoint</procedure>
    141141
    142 === geobox=
     142==== geobox=
    143143
    144144<procedure>(geobox= GB1 GB2) => boolean</procedure>
    145145
    146 === geobox<
     146==== geobox<
    147147
    148148<procedure>(geobox< GB1 GB2) => boolean</procedure>
    149149
    150 === geobox>
     150==== geobox>
    151151
    152152<procedure>(geobox> GB1 GB2) => boolean</procedure>
    153153
    154 === geobox<=
     154==== geobox<=
    155155
    156156<procedure>(geobox<= GB1 GB2) => boolean</procedure>
    157157
    158 === geobox>=
     158==== geobox>=
    159159
    160160<procedure>(geobox>= GB1 GB2) => boolean</procedure>
    161161
    162 === geopoint-within-box
     162==== geopoint-within-box
    163163
    164164<procedure>(geopoint-within-box GP GB) => boolean</procedure>
     
    167167=== Module geopolygon
    168168
    169 === Usage
     169==== Usage
    170170
    171171<enscript language=scheme>
     
    173173</enscript>
    174174
    175 === Argument Conventions
     175==== Argument Conventions
    176176
    177177; {{GPOLY}} : {{geopolygon}}.
    178178
    179 === make-geopolygon
     179==== make-geopolygon
    180180
    181181<procedure>(make-geopolygon GP ...) => geopolygon</procedure>
     
    187187{{GPS}} is {{(or (list-of geopoint) (vector-of geopoint))}}.
    188188
    189 === geopolygon?
     189==== geopolygon?
    190190
    191191<procedure>(geopolygon? OBJ) => boolean</procedure>
    192192
    193 === check-geopolygon
     193==== check-geopolygon
    194194
    195195<procedure>(check-geopolygon LOC OBJ [VARNAM]) => geopolygon</procedure>
    196196
    197 === error-geopolygon
     197==== error-geopolygon
    198198
    199199<procedure>(error-geopolygon LOC OBJ [VARNAM])</procedure>
    200200
    201 === geopolygon
     201==== geopolygon
    202202
    203203<procedure>(geopolygon GP...) => geopolygon</procedure>
    204204
    205 === geopolygon-closed?
     205==== geopolygon-closed?
    206206
    207207<procedure>(geopolygon-closed? GPOLY) => boolean</procedure>
     
    209209Polygon has the same initial and final {{geopoint}}.
    210210
    211 === geopolygon-open?
     211==== geopolygon-open?
    212212
    213213<procedure>(geopolygon-open? GPOLY) => boolean</procedure>
     
    215215Polygon does not have the same initial and final {{geopoint}}.
    216216
    217 === geopolygon-bounding-box
     217==== geopolygon-bounding-box
    218218
    219219<procedure>(geopolygon-bounding-box GPOLY) => geobox</procedure>
     
    222222=== Module geopoint-utils
    223223
    224 === Usage
     224==== Usage
    225225
    226226<enscript language=scheme>
     
    228228</enscript>
    229229
    230 === geopoint-in-closed-polygon?
     230==== geopoint-in-closed-polygon?
    231231
    232232<procedure>(geopoint-in-closed-polygon? GP GPOLY [INTERSECTS? intersects?-pnp]) => boolean</procedure>
     
    240240Treats an open geopolygon as closed.
    241241
    242 === intersects?-pnp
     242==== intersects?-pnp
    243243
    244244<procedure>(intersects?-pnp PI PJ LAT LON) => boolean</procedure>
    245245
    246 === intersects?-pip
     246==== intersects?-pip
    247247
    248248<procedure>(intersects?-pip PI PJ LAT LON) => boolean</procedure>
     
    251251=== Module geo-utils
    252252
    253 === Usage
     253==== Usage
    254254
    255255<enscript language=scheme>
     
    257257</enscript>
    258258
    259 === earth-flattening
     259==== earth-flattening
    260260
    261261<variable>earth-flattening</variable>
    262262
    263 === earth-radius-miles
     263==== earth-radius-miles
    264264
    265265<variable>earth-radius-miles</variable>
    266266
    267 === earth-radius-kilometers
     267==== earth-radius-kilometers
    268268
    269269<variable>earth-radius-kilometers</variable>
    270270
    271 
    272 === pythagorean-distance
     271==== pythagorean-distance
    273272
    274273<procedure>(pythagorean-distance LAT1 LON1 LAT2 LON2) => real</procedure>
    275274
    276 === pythagorean-distance*
     275==== pythagorean-distance*
    277276
    278277<procedure>(pythagorean-distance* LAT1 LON1 LAT2 LON2) => real</procedure>
    279278
    280 === spherical-surface-distance
     279==== spherical-surface-distance
    281280
    282281<procedure>(spherical-surface-distance LAT1 LON1 LAT2 LON2 (R EARTH-RADIUS-MILES)) => real</procedure>
    283282
    284 === great-circle-distance
     283==== great-circle-distance
    285284
    286285<procedure>(great-circle-distance LAT1 LON1 LAT2 LON2 (R EARTH-RADIUS-MILES)) => real</procedure>
    287286
    288 === great-circle-distance-radians
     287==== great-circle-distance-radians
    289288
    290289<procedure>(great-circle-distance-radians LAT1 LON1 LAT2 LON2 (R EARTH-RADIUS-MILES)) => real</procedure>
    291290
    292 === approximate-ellipsoid-distance
     291==== approximate-ellipsoid-distance
    293292
    294293<procedure>(approximate-ellipsoid-distance LAT1 LON1 LAT2 LON2 (R EARTH-RADIUS-MILES)) => real</procedure>
    295294
    296 === great-circle-azimuth
     295==== great-circle-azimuth
    297296
    298297<procedure>(great-circle-azimuth LAT1 LON1 LAT2 LON2 [PREC 5]) => real</procedure>
    299298
    300 === great-circle-position
     299==== great-circle-position
    301300
    302301<procedure>(great-circle-position LAT LON DIS AZI (R EARTH-RADIUS-MILES)) => (values latitude longitude)</procedure>
     
    305304=== Module geo-dms
    306305
    307 === Usage
     306==== Usage
    308307
    309308<enscript language=scheme>
     
    311310</enscript>
    312311
    313 === Argument Conventions
     312==== Argument Conventions
    314313
    315314; {{D}} : degrees {{real}}.
     
    319318; {{PAD}} : padding between elements {{string}}.
    320319
    321 === degree-minute-second-text
     320==== degree-minute-second-text
    322321
    323322<procedure>(degree-minute-second-text [DMS-TEXT]) => (list-of string)</procedure>
     
    326325suffix> <minutes suffix> <seconds suffix>)}}.
    327326
    328 === dms->degree
     327==== dms->degree
    329328
    330329<procedure>(dms->degree D M S) => real</procedure>
    331330
    332 === degree->dms
     331==== degree->dms
    333332
    334333<procedure>(degree->dms DEG) => (values D M S)</procedure>
     
    336335Returns the degree+minutes+seconds for the degrees {{DEG}} {{real}}.
    337336
    338 === dms->string
     337==== dms->string
    339338
    340339<procedure>(dms->string D M S [LAT? [LEADING-DIR? [PAD ""]]]) => string</procedure>
     
    344343Example: 122°45'10"W
    345344
    346 === dms->string*
     345==== dms->string*
    347346
    348347<procedure>(dms->string* D M S [PAD ""]) => string</procedure>
     
    350349Example: 122°45'10"
    351350
    352 === string-dms->degree
     351==== string-dms->degree
    353352
    354353<procedure>(string-dms->degree STR [LAT?]) => real</procedure>
Note: See TracChangeset for help on using the changeset viewer.