folium3 [Python] folium 지도를 html로 저장하기 [Python] Saving a folium map as html folium을 사용하여 생성한 지도를 HTML 파일로 저장하려면, folium의 save() 메소드를 사용하면 됩니다. 다음은 folium을 사용하여 생성한 지도를 HTML 파일로 저장하는 예시 코드입니다. import folium import geopandas as gpd # shp 파일 불러오기 shapefile_path = "example.shp" gdf = gpd.read_file(shapefile_path) # 지도 중심 좌표 설정 center = [37.5, 127] # 지도 객체 생성 map = folium.Map(location=center, zoom_start=10) # shp 파일을 지도에 추가 folium.GeoJson.. 🖥️ IT, 컴퓨터/🐍 Python 2023. 5. 9. [Python] folium :: 폴리움으로 경위도 좌표로 shp 만들어서 동적 지도 만들기 [Python] Create an shp with longitude-latitude coordinates and plot it as a map (folium) 1. 점(point) shp인 경우 import shapefile import geopandas as gpd from shapely.geometry import Point import folium import pandas as pd charger = pd.read_csv("경위도_들어있는_표.csv", encoding = "UTF-8") lat = charger["위도"] lon = charger["경도"] # 경위도 좌표 geometry = list(zip(lon, lat)) # Point 객체로 변환 geometry = [Point(xy) fo.. 🖥️ IT, 컴퓨터/🐍 Python 2023. 4. 25. [Python] 파이썬으로 지도 그리기 (1) Map tile의 종류 (feat. Folium) Open street map Folium defaults to using openstreetmap tiles. You can also access these tiles with: 1 folium.TileLayer('openstreetmap').add_to(my_map) Map Quest Open Similar to open street map, mapquestopen tiles are a good general purpose tile set. 1 folium.TileLayer('mapquestopen').add_to(my_map) MapQuest Open Aerial Mapquest also provides open aerial photography to use as map tiles: 1 folium... 🖥️ IT, 컴퓨터/🐍 Python 2023. 1. 9. 이전 1 다음 반응형