AminetAminet
Search:
84739 packages online
About
Recent
Browse
Search
Upload
Setup
Services

misc/sci/lltogr.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:latitude/longitude to/from NGR
Author:K.D.Bennett
Type:misc/sci
Architecture:ppc-amigaos
Date:2013-07-28
Download:misc/sci/lltogr.lha - View contents
Readme:misc/sci/lltogr.readme
Downloads:758

I have made some modifications to the original source as I
was trying to get Channel Islands grid references working.
As a result CI and XD prefixed squares now work, and there
is an additional cigrtoll for WV and WA references, which
may or may not work as expected. -- Chris


Programs for conversion of latitude and longitude to national 
grids of Great Britain and Ireland, and vice versa

K.D. Bennett

Department of Plant Sciences
University of Cambridge

This package consists of four utility programs to make 
conversions from latitude and longitude to national grid co-
ordinates for Great Britain and Ireland. They are not finely 
polished programs, but working utilities that do a job. There is 
a limited amount of checking on the input, for example, but 
bizarre input may produce bizarre results.

The programs are:

lltogbgr            Converts latitude and longitude to
                    co-ordinates of the Great Britain grid

lltoirgr            Converts latitude and longitude to
                    co-ordinates of the Ireland grid

gbgrtoll            Converts co-ordinates of the Great
                    Briatin grid to latitude and longitude

irgrtoll            Converts co-ordinates of the Ireland
                    grid to latitude and longitude

Each program can be run with no options, in which case it will 
prompt for input.

Input grid values should be in the form "TL933937" (for Great 
Britain) and "C367821" (for Ireland): note that there are no 
spaces.

Input latitude and longitude values on the command line take the 
form "1 34 56 55 32 10", where the first three values are 
degrees, minutes and seconds for longitude, and the second three 
values are degrees, minutes and seconds for latitude. All six 
values must be present, but decimals are allowed, and values can 
be zero: "1 30 30 55 30 0" is equivalent to "1 30.5 0 55.5 0 0". 
For longitudes WEST of Greenwich, the degree value should be 
entered as negative.

If the lltoxxgr programs are run without options, they prompt for 
each of the six input values in turn.

Conversion from longitude and latitude is by exact calculation 
using formulae and constants from the publications of the 
Ordnance Surveys of the two areas (see below). The reverse 
calculation is by successive approximation (make a guess, see how 
close it is, make a better guess, etc), and thus takes a little 
longer.

Output has been tested against examples given by the Ordnance 
Surveys and against values from maps. I use these programs, and I 
have put some effort into checking their accuracy. But I cannot 
accept responsibility for any errors or problems caused by use of 
these programs.

If you use the programs and find them useful, please let me know. 
If you use them and find them in error, I would also be 
interested to know.

The programs are available by anonymous ftp to
ftp-palecol.plantsci.cam.ac.uk, in directory pub/ll-to-gr.
There is zipped package of the four MS-DOS executables, together 
with a copy of this README (ll-to-gr.zip), and a gzipped archive 
file (ll-to-gr.tar.gzip) of the source code, a makefile, and a 
copy of this README. The source code is ANSI C, with no frills, 
and should compile on any ANSI C compiler.


References

Ordnance Survey 1995. The ellipsoid and the Transverse Mercator 
Projection. Geodetic Information Paper No 1. Ordnance Survey, 
Southampton.

Ordnance Survey 1950. Constants, formulae and methods used in 
Transverse Mercator Projection. HMSO, London.

Ordnance Survey 1967. The history of the retriangulation of Great 
Britain 1935-1962. HMSO, London.

Ordnance Survey 1953. Tables for the Transverse Mercator 
Projection of Ireland. Ordnance Survey Office, Dublin.


Disclaimer

Copyright (C) 1994 by K.D. Bennett.  No portion of these programs 
may be reproduced for use by a commercial facility without 
express written consent of the author. This work is supported in 
part by the University of Cambridge. Neither the author, nor this 
institution, nor any of its employees, makes any warranty, 
express or implied, or assumes any legal liability or 
responsibility for the usefulness of any portion of this program.  
This copyright message and disclaimer must accompany any 
reproduced portion of this program.





Contents of misc/sci/lltogr.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                 2141    5385  39.8% -lh6- c3a8 Mar 11 18:53 ll-to-gr/cigrtoll.c
[unknown]                  550    1020  53.9% -lh6- be0b Jun  2  1995 ll-to-gr/conv.h
[unknown]                 1051    2565  41.0% -lh6- 709e Jun  2  1995 ll-to-gr/func.c
[unknown]                 1164    2400  48.5% -lh6- 3554 Mar 10 23:14 ll-to-gr/func.o
[unknown]                 6392   71555   8.9% -lh6- 6dbd Mar 16 12:58 ll-to-gr/gbgrtoll
[unknown]                 2391    6417  37.3% -lh6- b781 Mar 16 12:58 ll-to-gr/gbgrtoll.c
[unknown]                 4072    7868  51.8% -lh6- bacf Mar 16 12:58 ll-to-gr/gbgrtoll.o
[unknown]                 5433   70547   7.7% -lh6- 3265 Mar 16 21:31 ll-to-gr/irgrtoll
[unknown]                 1956    5062  38.6% -lh6- e27f Mar 16 21:30 ll-to-gr/irgrtoll.c
[unknown]                 3199    6084  52.6% -lh6- 4fb1 Mar 16 21:31 ll-to-gr/irgrtoll.o
[unknown]                 6127   71593   8.6% -lh6- 44fb Mar 10 23:14 ll-to-gr/lltogbgr
[unknown]                 2241    6158  36.4% -lh6- 184a Jun  2  1995 ll-to-gr/lltogbgr.c
[unknown]                 3838    7752  49.5% -lh6- 24ca Mar 10 23:14 ll-to-gr/lltogbgr.o
[unknown]                  472    1302  36.3% -lh6- 356a Jun  2  1995 ll-to-gr/lltogr.i
[unknown]                 5328   70813   7.5% -lh6- c4f2 Mar 10 23:14 ll-to-gr/lltoirgr
[unknown]                 1882    5131  36.7% -lh6- 1d09 Jun  2  1995 ll-to-gr/lltoirgr.c
[unknown]                 3067    6372  48.1% -lh6- b9e7 Mar 10 23:14 ll-to-gr/lltoirgr.o
[unknown]                  258     662  39.0% -lh6- db61 Mar 11 18:53 ll-to-gr/makefile
[unknown]                 1709    3985  42.9% -lh6- f1b4 Jun  2  1995 ll-to-gr/README
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total        19 files   53271  352671  15.1%            Jul 28 10:15
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>