Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 创建饼状地质画板_Python 3.x_Geopandas - Fatal编程技术网

Python 3.x 创建饼状地质画板

Python 3.x 创建饼状地质画板,python-3.x,geopandas,Python 3.x,Geopandas,我希望在给定圆多边形、圆心和交点时创建一个饼图形状 圆心: from shapely.geometry import Point import geopandas as gpd gdf = gpd.GeoDataFrame({'col1': ['center'], 'geometry': [Point(-0.402436, 51.515403)]}) 圆多边形: crcl = gdf.geometry.buffer(0.18) 交叉点: gdf2 = gpd.GeoDataFrame({'

我希望在给定圆多边形、圆心和交点时创建一个饼图形状

圆心:

from shapely.geometry import Point
import geopandas as gpd

gdf = gpd.GeoDataFrame({'col1': ['center'], 'geometry': [Point(-0.402436, 51.515403)]})
圆多边形:

crcl = gdf.geometry.buffer(0.18)
交叉点:

gdf2 = gpd.GeoDataFrame({'col1': ['pnt1','pnt2'], 'geometry': [Point(-0.3257, 51.3528),Point(-0.2740, 51.6414)]})
我正在尝试创建以下饼状多边形:

crcl = gdf.geometry.buffer(0.18)

最好的方法是什么