https://github.com/ismailsunni/qgis-encoded-polyline
A simple QGIS plugin to load an encoded polyline
https://github.com/ismailsunni/qgis-encoded-polyline
encoded-polyline plugin polyline qgis
Last synced: 4 months ago
JSON representation
A simple QGIS plugin to load an encoded polyline
- Host: GitHub
- URL: https://github.com/ismailsunni/qgis-encoded-polyline
- Owner: ismailsunni
- License: gpl-2.0
- Created: 2022-01-26T21:40:28.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T08:14:31.000Z (over 3 years ago)
- Last Synced: 2025-01-19T11:26:56.897Z (6 months ago)
- Topics: encoded-polyline, plugin, polyline, qgis
- Language: Python
- Homepage: https://plugins.qgis.org/plugins/encoded-polyline/
- Size: 8.77 MB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
Encoded Polyline QGIS Plugin
The plugin helps you to decode and visualize an encoded polyline and load it on QGIS as a memory layer.
*Encoded Polyline Dialog*
*Sample output: Yogyakarta Ring Road*
## Why?
It helps to decode or visualize an encoded polyline easier. Especially with a long polyline. I used it for debugging Valhalla's result because the online tool available is limited in functionalities (e.g. can't compare two polylines, hang if the line is long, or not possible to save the result)
## Features
- Custom layer name
- Custom precision (Google uses 5, OpenStreetMap uses 6)
- Some samples included## About Encoded Polyline
Polyline encoding is a lossy compression algorithm that allows you to store a series of coordinates as a single string. See more explanation by Google Maps [here](https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
## Alternatives
- [Interactive Polyline Encoder Utility](https://developers.google.com/maps/documentation/utilities/polylineutility). It only supports 5 digits precision
- [Valhalla Demo Tool](https://valhalla.github.io/demos/polyline/)## Acknowledgments
- Python code for decoding encoded polyline: https://github.com/frederickjansen/polyline
- Icon is a modification from QGIS's icon: https://github.com/qgis/QGIS/blob/master/images/themes/default/mActionAddPolyline.svg