Skip to main content

A tool which uses google elevation API to batch process geographical line-of-sight calculations from .csv files

Project description

Overview

This application allows the user to batch process multiple line of sight queries and output them in graphical form, using data from the Google Elevation API. A .kml file is also produced for viewing in Google Earth.

History

I wrote this application after being frustrated at the lack of simple, free tools for processing large batches of line of sight calculations. I watched a co-worker spend an entire shift re-entering the same data again and again over 100 hundred times and save the output as a screenshot which then had to be cropped in MS paint.

Originally it was used to compare airport radars to proposed wind turbine developments however I have modified the original to be used for any generic location or object you desire. I hope this helps someone out.

Installation

Cloning

git clone https://github.com/MHenderson1988/line-of-sight-analysis.git

Run main/view/gui.py and follow the on-screen instructions.

Before you start

To run the application, in it's current form, you will require -

  • A valid 'Google Elevation API' key
  • 2x Valid .csv files

Valid CRS (Coordinate reference systems)

Currently the application can convert between the following -

  • Decimal latitude/longitude
  • Eastings and Northings (OSBG36)

Example .csv file

An example of a valid .csv file using decimal latitude/longitude

.csv files must use valid headers of -

  • latitude/easting
  • longitude/northing
  • height
  • name

The above example uses decimal latitude/longitude.

Row 1 - Latitude (Float) Row 2 - Longitude (Float) Row 3 - Height, in metres (int/float) Row 4 - Unique name (String)

Example output

Graphical output will look like this -

An example of the matplotlib output

The green line shows the path taken between the top point of the first and second locations. Below is the imposed elevation data which has been manipulated to the simulated curvature of the earth (shown by the orange arc).

The plotted line which illustrates the line of sight will be coloured green if line of sight exists. If a disruption to the view is detected then the line will be coloured red.

Current limitations

Currently the application has the following limitations -

  • Earth curvature is calculated, assuming that the Earth is a perfect sphere
  • Only Google Elevation API is currently supported
  • Only natural terrain is accounted for. This application does not take foliage or man-made objects/buildings into account

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geographic-line-of-sight-1.0.3.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geographic_line_of_sight-1.0.3-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file geographic-line-of-sight-1.0.3.tar.gz.

File metadata

  • Download URL: geographic-line-of-sight-1.0.3.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for geographic-line-of-sight-1.0.3.tar.gz
Algorithm Hash digest
SHA256 4da937685762986ce11b6d90a890830955a79ebcf67a92fe0616ab513ccede7c
MD5 add1d64e34417b122833844da1ccedd1
BLAKE2b-256 cc14222c15c1fa7533adca9bb1c5b8058111a8be84eeccc8f3c051d1c6cfd11d

See more details on using hashes here.

File details

Details for the file geographic_line_of_sight-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: geographic_line_of_sight-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for geographic_line_of_sight-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 92a5975c05d85487311f29c9a1fa50bcc17baa4176a53b18c587bde8b9c3f08d
MD5 eb06c17762f2dea8ef49c1ec0d548271
BLAKE2b-256 dff7470198d37f49cdbfc4db69978abc21ca8fbb084deccd9c03b06814f879ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page