Snake Grid Header

Using SnakeGrid

User interface

The user interface is divided into three bands. In the application management area the user can access the help file and load the required parameter file. Once this has been loaded (see below) the selected grid will apply to either single point conversion or multiple point conversion.

SnakeGrid User Interface Application Management Area
Single Point Conversion Area
Multiple Point Conversion Area

 

The single point and multiple point modes are described in separate sections below.

Loading a parameter file

At start-up the coordinate conversion boxes will be greyed out and the program cannot be used. It will continue so until an appropriate parameter file has been selected.

User interface - loading a parameter file

To load a parameter file, simply click on the “Open Snakegrid Parameter File” button and this will bring up a dialogue box allowing the file to be browsed for and loaded in the usual way.

If a valid parameter file is opened, the point conversion boxes will be activated and the title bar will change to read “SnakeGrid” followed by the name of the grid. The user should check that the correct one has been loaded – this name will also be printed on the first line of any output file. In the image below it can be seen that the parameter file relating to the grid ABCGrid_2008 has been loaded.

Once a parameter file has been loaded it is not possible to load another without exiting the application. This is to prevent accidental re-loading of a different parameter file during subsequent use.

User interface - loading a parameter file

Only parameter files that have been created expressly for the SnakeGrid software may be used. These have been encrypted to prevent the use of invalid files.

Single point conversion

The conversion of individual points between ellipsoidal and grid coordinates is carried out within the “single point conversion” area in the middle of the user interface. This may be carried out in either direction.

Simply fill in the values in the boxes shown, and then convert by pressing the arrow. The right arrow converts ellipsoidal coordinates to grid, and the left arrow performs the conversion from grid to ellipsoidal.

The ellipsoidal coordinates are to be entered in decimal degrees, with North and East the positive directions. When entering values it is helpful to bear in mind that 0.000 000 01 degrees (10-8) is approximately 1mm – therefore eight places of decimals are shown when the conversion is made from grid coordinates.

The Easting and Northing values in the boxes shown are in the system of the grid named in the title bar. They are in metres, with three decimal places as standard.

Batch conversion

Input and output formats supported

 Tabulated below are the file formats currently supported by SnakeGrid. It should be emphasised that ONLY latitude and longitude OR easting and northing are relevant to the coordinate conversion. However, in order to handle pre-existing file formats in which the points are associated with IDs, heights, code strings, and so on, there is the option to read these in and write them to the output file alongside the converted coordinates.

The following generic points apply to the tables below:

ID

Alphanumeric text string – must be continuous with no spaces.

 

LAT

 

Latitude (decimal degrees except where stated, positive north).

LONG

 

Longitude (decimal degrees except where stated, positive east).

h

Height (floating point number, will be echoed in the output if required.

 

t1, t2, t3

Text strings – must be continuous with no spaces. Will be echoed in the output if required.

 

LAT_DMS

Latitude in degrees, minutes and seconds. To be followed by the hemisphere (N or S).

The symbols ° ' " are required as this is designed to accept output from GPS processing software. There should be no spaces between the values and the symbols (that is, it should read 52°, not 52 °.

LONG_DMS

Longitude in degrees, minutes and seconds. To be followed by the hemisphere (E or W).

 

E

Easting (metres)

 

N

Northing (metres)

 

If the “Ignore header” box is ticked then the program will ignore the first line of the input file. Any further lines of header will be treated as incorrectly formatted points.

Files may be tab delimited or comma separated. The software will automatically determine which type the input file is.

For ellipsoidal coordinates:

Code

Format and example

 

LL1

LAT  LONG

 

51.12345564 -0.23425211

 

LL2

ID LAT LONG h

 

AAA67 51.12345564 -0.23425211 129.234

 

LL3

 

ID LAT LONG tt3

 

AAA 51.12345564 -0.23425211 129.234 CX123 AA BB

 

LL4

LAT_DMS LONG_DMS

 

51° 09' 21.95560" N 2° 28' 16.48343" W

 

LL5

ID LAT_DMS LONG_DMS

 

P129.A 51° 09' 21.95560" N 2° 28' 16.48343" W

LL6

ID LAT_DMS LONG_DMS h

 

P129.A 51° 09' 21.95560" N 2° 28' 16.48343" W 127.302

 

 

For grid coordinates:

EN1

E N

 

234873.234 392023.232

 

EN2

ID N

 

P129A 234873.234 392023.232

 

EN3

ID E N h t1 t2 t3

 

P129A 234873.234 392023.232 127.302 AAAAA BBBBB CCCCC

 

EN4

ID E N h

 

P129A 234873.234 392023.232 127.302

 

 

For each of the above, comma separated format is an acceptable alternative. For example, LL5 could be of the form:

P129.A,51°,09',21.95560",N,2°,28',16.48343",W

The format of the output file may be any of those listed above, provided that the information required is present. That is, a format specifying ID for example cannot be selected if it was not supplied in the input file. However, a format that shows less information than the input file is acceptable. Once the format of the input file is selected, only the permissible output formats will be shown.

The permissible combinations of input and output file formats are shown in the table below:

INPUT FORMAT

PERMISSIBLE OUTPUTS

LL1

EN1

LL2

EN1, EN2, EN4

LL3

EN1, EN3

LL4

EN1

LL5

EN1, EN2

LL6

EN1, EN2, EN4

EN1

LL1, LL4

EN2

LL1, LL4, LL5

EN3

LL1, LL2, LL3, LL4, LL5, LL6

EN4

LL1, LL2, LL4, LL5, LL6

Either tab delimited or comma separated format may be selected for the output file by clicking the appropriate button in the output file area.

Conversion procedure

To convert files, first select the direction of the conversion – that is, whether it is to be from ellipsoidal to grid or vice versa. This is indicated by the buttons in the middle of the lower part of the screen:

User interface - conversion procedure

The input file can then be selected by simply pressing the “Open Input File” button and navigating in the conventional way. The file found is shown in the left hand window at the bottom. The format is selected from the list shown.

Next select or assign an output file in a similar way by pressing “Open Output File”. This can be made comma separated or tab delimited by clicking the appropriate button. The name of the selected file is shown in the right hand window at the bottom.

Finally, press “process” and the conversion will be carried out. The progress is shown in the window indicating the number of points processed so far.

Once the processing is complete the name of the output file will be cleared in order to prevent accidental overwrites.

The output file will always show a header that names the grid in the first line, followed by the data headers.

Should any input point not be accepted the output file will write for that line “Invalid point:” followed by a reproduction of the line of the input file. The rest of the file will be unaffected.

There are two main reasons for a point being marked as invalid. Either it is not within the acceptable geographic area (has the right parameter file been loaded?) or the format is incorrect. This may have come about through – for example – accidentally specifying LL2 format when it is in LL1, and so the software is failing to find ID and height values on each line.

Quotes Open GreenSnakeGrid is an excellent example of technology transfer from UCL.  I am very glad to note that UCL Business team has been able to successfully commercialize the technology and it is being used by major industrial clients including Network Rail and Severn Partnerships.     Prof. Nick Tyler, Head of Civil, Environmental and Geomatic Engineering Department, UCL

 The logo for UCLB
UCL Business has been instrumental in identifying, developing and commercialising  SnakeGrid . We provided proof of concept funding at an early stage to develop a commercially viable prototype and undertook all business support activities.   Dr. Steven Schooling , Director, Physical Science and Engineering, UCL Business PLC.