Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Created December 7, 2018 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiolucero/8a60df7d299dff62226419be18069e5c to your computer and use it in GitHub Desktop.
Save sergiolucero/8a60df7d299dff62226419be18069e5c to your computer and use it in GitHub Desktop.
chile comunas shapefile
# https://gis.stackexchange.com/questions/113799/how-to-read-a-shapefile-in-python
# http://geospatialpython.com/2011/09/reading-shapefiles-from-cloud.html
# https://medium.com/@loldja/reading-shapefile-zips-from-a-url-in-python-3-93ea8d727856
# http://andrewgaidus.com/Reading_Zipped_Shapefiles/
# https://gis.stackexchange.com/questions/113799/how-to-read-a-shapefile-in-python
@sergiolucero
Copy link
Author

sergiolucero commented Feb 22, 2019

import folium, pandas as pd
import geopandas as gp

comunas = gp.read_file('Comunas/rm.shp')
fm = folium.Map(location=centroide, width=1100, height=550,
            zoom_start=12, tiles=tiles)
folium.GeoJson(comunas,name='comunas').add_to(fm)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment