Loading...
アイコン

BugBytes

チャンネル登録者数 4.33万人

1.8万 回視聴 ・ 472いいね ・ 2023/01/18

📚 Geospatial Python Playlist:    • Geospatial Python  
☕ Buy a coffee: ko-fi.com/bugbytes

In this video, we use Folium to create maps and use Django to fetch data from the database and plot that geographical data as markers on the map.

We show how to convert the Folium Map object to an HTML representation with the _repr_html_() function, and display the map in our Django template.

We also see how to add popups and clusters to the map, as well as how to filter which markers are shown using Django ORM operations.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:51 Setting up the Django project
02:26 Fetching records with longitude and latitude from the database
03:42 Creating a Folium map and adding markers
07:54 Clustering markers with the FastMarkerCluster
11:23 Filtering markers using Django ORM operations (filter, exclude, aggregate)

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: www.bugbytes.io/posts/
👾 Github: github.com/bugbytes-io/django-folium-example

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Starter Code: github.com/bugbytes-io/django-folium-example
Dataset: catalog.data.gov/dataset/electric-vehicle-charging…
Folium: python-visualization.github.io/folium/
FastMarkerCluster: python-visualization.github.io/folium/plugins.html…

#python #django #gis #mapping #datascience

コメント

コメントを取得中...

コントロール
設定

使用したサーバー: wakeupe