Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the mgrs Reference Manual, version 1.0, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 14:24:08 2020 GMT+0.
• Introduction | What mgrs is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
#+TITLE: mgrs This is a Common Lisp library to convert coordinates between Latitude/Longitude and MGRS. * API In the library, latitude and longitude are represented by real numbers (degrees), positive for northern latitude and eastern longitudes, and negative for southern latitude and western longitudes. #+BEGIN_SRC lisp (lat/lon->mgrs latitude longitude &optional precision) -> string #+END_SRC Return the MGRS locator for the given /latitude/ and /longitude/. The /precision/ (in meters) of the locator can be 1, 10, 100, 1000, 10000. #+BEGIN_SRC lisp (mgrs->lat/lon locator) -> list #+END_SRC Return the latitude and longitude for the southwest corner of the given MGRS /locator/ square. * Examples Load the library: #+BEGIN_SRC lisp > (asdf:load-system "mgrs") ... #+END_SRC Get the MGRS locator of Munich: #+BEGIN_SRC lisp > (mgrs:lat/lon->mgrs 48.146660d0 11.60833d0) "32UPU9401035891" #+END_SRC Same thing with a lower precision (100 meters): #+BEGIN_SRC lisp > (mgrs:lat/lon->mgrs 48.146660d0 11.60833d0 100) "32UPU940358" #+END_SRC Get back the latitude and longitude of Munich: #+BEGIN_SRC lisp > (mgrs:mgrs->lat/lon "32UPU9401035891") (48.146655723267834d0 11.60832570541976d0) #+END_SRC * Tests The tests require the /fiveam/ library. #+BEGIN_SRC lisp (asdf:test-system "mgrs") #+END_SRC
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The mgrs system |
Guillaume Le Vaillant
GPL-3
Convert coordinates between Latitude/Longitude and MGRS.
1.0
utm-ups
mgrs.asd (file)
mgrs.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The mgrs.asd file | ||
• The mgrs/mgrs.lisp file |
Next: The mgrs/mgrs․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
mgrs.asd
mgrs (system)
Previous: The mgrs․asd file, Up: Lisp files [Contents][Index]
mgrs (system)
mgrs.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The mgrs package |
mgrs.lisp (file)
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
Return the MGRS locator for the given LATITUDE and LONGITUDE. The PRECISION (in meters) of the locator can be 1, 10, 100, 1000, 10000.
Return the latitude and longitude for the southwest corner of the given MGRS LOCATOR square.
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal functions |
Previous: Internal definitions, Up: Internal definitions [Contents][Index]
Return the false easting for a UPS BAND.
Return the false northing for a UPS BAND.
Return the number associated to letter C.
Return tle latitude and longitude for the given MGRS coordinates.
Return tle latitude and longitude for the given MGRS coordinates.
Return the minimum northing of a UTM BAND.
Return the MGRS locator for the given UPS coordinates.
Return the MGRS locator for the given UTM coordinates.
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L M |
---|
Jump to: | F L M |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | F L M U |
---|
Jump to: | F L M U |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | M P S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
M | |||
mgrs : | The mgrs system | ||
mgrs : | The mgrs package | ||
| |||
P | |||
Package, mgrs : | The mgrs package | ||
| |||
S | |||
System, mgrs : | The mgrs system | ||
|
Jump to: | M P S |
---|