geopandas multi-point to line/surface process

created at 07-02-2021 views: 5

In the process of using geopandas, it is necessary to convert points to polygons or other formats. The conversion process is as follows:

1. First convert the fields of geometry format attributes to numpy format

xj=np.dstack((GeoSeries(mr['geometry']).x, GeoSeries(mr['geometry']).y))

2. apply data in numpy format into shaply's information function for conversion


Realization of json format conversion

xx=[x['geometry']['coordinates'] for x in xx['features']]
created at:07-02-2021
edited at: 07-02-2021: