This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Stack-based Douglas Peucker line simplification routine | |
returned is a reduced GLatLng array | |
After code by Dr. Gary J. Robinson, | |
Environmental Systems Science Centre, | |
University of Reading, Reading, UK | |
*/ | |
function GDouglasPeucker (source, kink) | |
/* source[] Input coordinates in GLatLngs */ | |
/* kink in metres, kinks above this depth kept */ |