将matplotlib等高线图转换为geojson
geojsoncontour的Python项目详细描述
#Geojsoncontour
[![构建状态](https://travis-ci.org/bartromgens/geojsoncontour.svg?branch=master)(https://travis-ci.org/bartromgens/geojsoncontour)[![PYPI版本](https://badge.fury.io/py/geojsoncontour.svg)(https://badge.fury.io/py/geojsoncontour)[![覆盖状态](https://coveralls.io/repos/github/bartromgens/geojsoncontour/badge.svg?branch=master)(https://coveralls.io/github/bartromgens/geojsoncontour?branch=master)
一个python 3模块,用于将matplotlib等高线图转换为geojson。支持等高线和等高线图。
作为交互式滑动地图上的矢量层,如[OpenLayers](https://github.com/openlayers/ol3)和[Leafle](https://github.com/leafle/leafle)。
使用geojsoncontour的演示项目:[climatemaps.romgens.com](http://climatemaps.romgens.com)
![geojson等高线演示用法](https://raw.githubusercontent.com/bartromgens/geojson contour/master/data/example廑climatemaps.png)
```
$pip安装geojson contour
``
python
import numpy
import numpy
import matplotlibplotlib.pyplot as plt
impimpimport geojsonconcontour
;创建等高线数据lon-range,lat-range,z
<;您的代码在这里>;
;从网格(lat,lon)数据创建等高线图绘制等高线图
figure=plt.figure()
ax figure.add subplot(111)
contour=ax.等高线(lon)等高线(lon)等高线(lon)的等高线(lon)的等高线(lon范围,lat_range,z,cmap=plt.cm.jet)
unit='m'
)
```
对于填充等高线图(`matplotlib.courtf`),请使用'courtf廑u geojson`。
有关简单但完整的示例,请参见[example廑contour.py](examples/example廑contourf.py)和[example廑contourf.py]。
map是在线的geojson呈现程序[geojson.io](http://geojson.io)。
[tippecanoe](https://github.com/mapbox/tippecanoe)如果性能有问题,您需要平铺您的geojson轮廓。
[![构建状态](https://travis-ci.org/bartromgens/geojsoncontour.svg?branch=master)(https://travis-ci.org/bartromgens/geojsoncontour)[![PYPI版本](https://badge.fury.io/py/geojsoncontour.svg)(https://badge.fury.io/py/geojsoncontour)[![覆盖状态](https://coveralls.io/repos/github/bartromgens/geojsoncontour/badge.svg?branch=master)(https://coveralls.io/github/bartromgens/geojsoncontour?branch=master)
一个python 3模块,用于将matplotlib等高线图转换为geojson。支持等高线和等高线图。
作为交互式滑动地图上的矢量层,如[OpenLayers](https://github.com/openlayers/ol3)和[Leafle](https://github.com/leafle/leafle)。
使用geojsoncontour的演示项目:[climatemaps.romgens.com](http://climatemaps.romgens.com)
![geojson等高线演示用法](https://raw.githubusercontent.com/bartromgens/geojson contour/master/data/example廑climatemaps.png)
```
$pip安装geojson contour
``
python
import numpy
import numpy
import matplotlibplotlib.pyplot as plt
impimpimport geojsonconcontour
;创建等高线数据lon-range,lat-range,z
<;您的代码在这里>;
;从网格(lat,lon)数据创建等高线图绘制等高线图
figure=plt.figure()
ax figure.add subplot(111)
contour=ax.等高线(lon)等高线(lon)等高线(lon)的等高线(lon)的等高线(lon范围,lat_range,z,cmap=plt.cm.jet)
unit='m'
)
```
对于填充等高线图(`matplotlib.courtf`),请使用'courtf廑u geojson`。
有关简单但完整的示例,请参见[example廑contour.py](examples/example廑contourf.py)和[example廑contourf.py]。
map是在线的geojson呈现程序[geojson.io](http://geojson.io)。
[tippecanoe](https://github.com/mapbox/tippecanoe)如果性能有问题,您需要平铺您的geojson轮廓。