Created
August 19, 2018 14:51
-
-
Save joaofig/c7b13f93f1a5a6358a5fe440a3dc7632 to your computer and use it in GitHub Desktop.
Create GeoDataFrame
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create the GeoDataFrame from the cluster numbers and blobs | |
| data = { 'cluster': clusters, 'polygon': blobs, 'count': counts } | |
| cluster_gdf = gpd.GeoDataFrame(pd.DataFrame(data), geometry='polygon') | |
| cluster_gdf.crs = {'init': 'epsg:4326'} | |
| ax = cluster_gdf.geometry.plot(linewidth=2.0, color='red', edgecolor='red') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment