Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kmturley/geo
Calculating line segments from points
https://github.com/kmturley/geo
Last synced: 1 day ago
JSON representation
Calculating line segments from points
- Host: GitHub
- URL: https://github.com/kmturley/geo
- Owner: kmturley
- Created: 2014-02-14T00:39:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-17T00:52:27.000Z (almost 10 years ago)
- Last Synced: 2024-05-02T00:59:44.921Z (7 months ago)
- Language: JavaScript
- Homepage: https://kimturley.co.uk/geo/index.html
- Size: 613 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Geo
Calculates all possible combinations of line segments and shows the distances of points from each. You can view a demo of this working here:
http://kmturley.github.io/geo/Instructions for use:
* In Google Earth right-click a folder that contains placemarks and choose 'Save As'
* Ensure you change the save option to be .kml and save the file somewhere on your computer
* Open Geo index.html in your browser to show the start screen
* Now open the kml file you previously saved in a plain text editor such as Notepad
* Copy and paste the source code into the Geo textarea, making sure there are no spaces around the code.
* Enter a max distance the points are allowed to be from the line to register as a valid line (set this higher to start with)
* Enter a minimum number of points the line should contain (Every line has two points already start/finish so put 3 or more)
* Click 'Load Results' to start the script running
Problem solving:* Avoid having too many points as it slows down the browser
* Ensure there isn't any space around the source code because this prevents the xml from being read
Obtaining kml files:Some useful links to generate kml files automatically for you:
* http://toolserver.org/~para/cgi-bin/kmlexport?article=paste_wikipedia_article_url_here
* http://www.megalithic.co.uk/
* http://earthquake.usgs.gov/earthquakes/search/