I have a geopandas dataframe gdf
gdf
ID longitude latitude geometry
0 80 103.619501 1.2810 POINT (103.619500987 1.281)
1 81 103.619501 1.2855 POINT (103.619500987 1.2855)
Following this suggestion I create a square buffer around it with a distance bd
defined as:
bd = abs((gdf['latitude'][0]-gdf['latitude'][1])/2)
And finally I am able to get the following:
buffer = gdf.buffer(bd)
envelope = buffer.envelope
f, ax = plt.subplots(figsize=(7.5, 7.5))
envelope.plot(color='white', edgecolor='gray',ax=ax)
gdf.plot(ax=ax)
How can I set a distance bd
that corresponds to 500 meters?