线段简化的几种算法
2022年7月2日 20:14
原文:https://www.codeproject.com/Articles/114797/Polyline-Simplification#headingDPN
整篇记录属于翻译,原作者实现的语言是C++,但是我看不懂这类代码,于是自己用Python实现了一遍,其中可能会有错误的地方,欢迎指出来让我改正。
```python
from shapefile import Reader, Writer
import numpy as np
import math
import matplotlib.pyplot as plt
```
```python
# 该shapefile文件内含一条线段,坐标系为:3857
shp = ...