Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trailbehind/elevationservicetester
Test for bad results from a geojson elevation lookup service
https://github.com/trailbehind/elevationservicetester
Last synced: 3 days ago
JSON representation
Test for bad results from a geojson elevation lookup service
- Host: GitHub
- URL: https://github.com/trailbehind/elevationservicetester
- Owner: trailbehind
- License: mit
- Created: 2015-07-27T18:18:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-11T21:19:44.000Z (about 9 years ago)
- Last Synced: 2023-04-21T10:26:34.327Z (over 1 year ago)
- Language: Python
- Size: 5.04 MB
- Stars: 0
- Watchers: 25
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ElevationServiceTester
Test for bad results and missing data from a GeoJSON elevation lookup service.
Test works by dividing the planet into 1 degree cells, picking 9 points from each cell, and looking up their elevation.
If no points in a cell are over land the cell will not be looked up.
Whether or not a cell is on land is determined looking up the point in the [Natural Earth 1:10M land dataset](http://www.naturalearthdata.com/downloads/10m-physical-vectors/10m-land/)# Usage
`./test.py http://example.com/geojson/`
Results will be saved in a file named status.geojson, and are in the format of a GeoJSON feature collection of polygons, 1 for each cell over land, color coded for status of each cell.
* Cells that returned a server error are colored red.
* Cells that returned an elevation of 0 for all points are colored orange. If all results are 0 it is most likely bad or missing data.
* Cells that returned an elevation other than 0 for at least 1 point are colored green.# Acknowledgments
This was built for testing an elevation service running on [https://github.com/perliedman/elevation-service](https://github.com/perliedman/elevation-service).