GIS4DEV / GIS4DEV.github.io

Open Source GIScience & GIS for Development
1 stars 12 forks source link

Mapping projected hospitals in python #42

Closed josephholler closed 3 years ago

josephholler commented 3 years ago

A few folks wanted to make a projected map at the end, and were stuck at the last bit of trying to map hospitals with their projected geometries rather than their X and Y coordinates. Here's an adjustment to the ouput_map function to map hospitals with their geometry data.

def output_map(output_grid, base_map, hospitals, resource):
    ax=output_grid.plot(column=resource, cmap='OrRd',figsize=(18,12), legend=True, zorder=1)
    base_map.plot(ax=ax, facecolor="none", edgecolor='gray', lw=0.1)
    hospitals.plot(ax=ax, markersize=10, zorder=1, c='blue')
josephholler commented 3 years ago

See Geopandas mapping and plotting tools