Spherical Geometry and Vincenty’s Formulae

Wikipedia has detailed articles on:
Spherical Geometry  and
Vincenty’s Formulae (for geometric calculations on an ellipsoid).

The spreadsheet Vincenty.zip uses those resources to perform the following calculations, using both on-sheet calculations and VBA user-defined functions (UDF’s):

  1. Calculation of distance and azimuth angles given latitude and longitude for two points.
  2. Calculation of latitude and longitude and azimuth for a second point, given the position and azimuth for the first point.
  3. Calculation of the area inside a closed polygon, using the excess angle method.

The spreadsheet contains full open source code, and documentation for the on-sheet calculations.  Examples are shown in the screenshots below (click any image for full-size view):

Input  and  geometry constants required for the VincentyLen  Function:

The on-sheet calculation follows the procedure given in the Wikipedia article.  The VincentyLen function returns the same end results (in bold), and can also return the intermediate results:

The  VincentyCoord function solves the “Direct Problem”, returning the latitude and longitude for a point at a specified distance and bearing from another point:

The VincentyArea Function finds the area inside a polygon specified by the latitude and longitude for a series of points, listed in clockwise order, using the “Excess angle method”. Note that as well as the returning the area, if the optional second argument is set to 2 the function returns additional data for each segment of the polygon, as shown in columns H to L below:

The VincentyArea function has been used to calculate the area of the Australian mainland, using a series of 2900 points:

The data for the points is listed with longitude first then latitude.  All three functions have an optional third “XY” argument to deal with this convention with the values:

  • 1 (default) – Latitude then Longitude
  • 2 – Longitude, Latitude
Posted in Computing - general, Coordinate Geometry, Excel, Maths, Newton, UDFs, VBA | Tagged , , , , , , | 7 Comments

Melanie Safka + Miley Cyrus

I have previously posted a link to a young Melanie singing Look What They Done to my Song, Ma. 

45 years later, she got together with Miley Cyrus to sing the song again, and they both look like they had great fun in the process:

Posted in Bach | Tagged , , | Leave a comment

Import Data from a Picture to Excel

The myOnlineTraininghub blog recently had a post entitled
Import Data from a Picture to Excel
which sounded promising, since I often need to extract data from Autocad files saved to a pdf.

From the link, it seems that if I had a Mac with Excel365 then I could do that, but:

  • The app is not available for Windows
  • The versions for iPhone and Android work by switching to camera mode when you select the “import data” icon, so that you can take a picture of printed images.

First results from the Android version were disappointing.  This table from Roark’s Formulas for Stress and Strain:

was converted into this data:
No doubt more care with taking the original photo would help, but the ability to work with existing image files (including pdf) or screen shots, preferably from a Windows computer, would make the whole process a lot easier and more reliable.

I’ll keep an eye on new developments, but at the moment it seems more trouble than it is worth.

Posted in Computing - general, Excel | Tagged , , , | 1 Comment

Wembley Tower 2

Following from the previous post, nearly all of the 68 designs for the Wembley Tower were in steel or iron, but there was just one with a truly unique design feature, it was to be built of concrete:

If it had won the competition, and been successfully completed, it would have been by far the tallest concrete structure in the World, and would have remained so until the completion of the Toronto Tower over 80 years later:

Posted in Concrete, Newton | Tagged , , | Leave a comment

The Wembly Tower

Late in the 19th Century a group of Londoners decided that London should have a tower taller and grander than the Eiffel Tower.  A competition was held, and construction started at the then rural area near Wembly, but construction and financial difficulties led to the cancellation of the project when it had only reached 47 metres height.  “The London Stump” was eventually blown up and sold for scrap in 1904.

The document detailing all 68 entries to the competition can now be viewed on-line:

A catalogue of the 68 competitive designs for the great tower for- London 1890

The link above has a copy of the complete competition catalogue, including drawings and descriptive text of each entry:

Also see: A Doomed Attempt at Out-Eiffelling Eiffel for images and commentary on a selection of the entrants.

Posted in Newton | Tagged , , | Leave a comment