如何通过python / jupyter在Mapbox中渲染多边形数据

时间:2019-05-21 19:39:40

标签: gis mapbox mapbox-gl-js mapbox-gl geopandas

我将一些ArcGIS数据转换为geojson:

    values  geometry
0   74.6906 POLYGON ((-9236522 4858133, -9235453 4858064, -9235477 4857695, -9235931 4857721, -9235939 4857597, -9237082 4857688, -9237054 4858165, -9236522 4858133))
1   96.4081 POLYGON ((-9235477 4857695, -9235558 4856443, -9236173 4856480, -9236107 4857608, -9235939 4857597, -9235931 4857721, -9235477 4857695))
2   92.6004 POLYGON ((-9236173 4856480, -9235558 4856443, -9235620 4855435, -9236368 4855486, -9236377 4855334, -9237457 4855402, -9237439 4855928, -9237186 4855921, -9237150 4856542, -9236173 4856480))
3   93.4172 POLYGON ((-9235783 4860191, -9235863 4858871, -9236488 4858911, -9236470 4859179, -9236314 4859158, -9236297 4859445, -9236404 4859449, -9236387 4860205, -9235783 4860191))
4   36.5780 POLYGON ((-9235863 4858871, -9235878 4858615, -9235420 4858586, -9235453 4858064, -9236522 4858133, -9236488 4858911, -9235863 4858871))

但是我不清楚如何通过python在Mapbox中呈现此数据。

我已经看到了很多绘制单个点的例子:

https://github.com/mapbox/mapboxgl-jupyter

但是对于多边形没有任何帮助。在Mapbox中渲染多边形的最佳方法是什么。谢谢!

0 个答案:

没有答案