将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轮廓。



欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
arduino JAVA串行数据接收非法字符   logging Create log method在java中记录当前执行方法的参数及其值   使用maven使用参数构建java项目   java在尝试失败后关闭   从excel工作表内容生成java xml   java Apache HttpClient:setConnectTimeout()vs.setConnectionTimeOlive()vs.setSocketTimeout()   Java的性能。forEach(列表::添加)vs。collect(Collectors.toList())   java生成给定数字的金字塔?   netbeans 8.2,windows 10上的java调试器错误   java glassfish部署错误   用java C++加密CryptoAPI SIMPLEBLOB   java Tomee jpa设置   需要使用Java/Selenium或任何语言从Googe TAG manager提取数据层信息以实现自动化   azure如何在Java中为Iterable的for循环内创建计数器并获取计数器变量的值   java JDialog未显示最小化/关闭按钮   java断言true,来自两个方法的变量