Interactive Maps with Geopandas
Project description
Create Interactive maps 🗺️ with your geodataframe
Geopatra extends geopandas for interactive mapping and attempts to wrap the goodness of amazing mapping libraries like Folium, Plotly, Kepler.gl, hvplot etc for rapidly creating interactive maps with Geodataframes
You can already create interactive maps easily with geopandas and Folium/ Plotly/ Kepler.gl. Geopatra is merely meant to make this easier and is more geared towards ease and currently does not support complex maps or intricate style control
Installation
Everything is always a pip away
pip install geopatra
Basic Usage
To quickly plot a geodataframe with folium, you gotta understand workflows in geopandas and folium.
import folium
import geopandas
world = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres'))
m = folium.Map(location = [4,10], zoom_start = 3)
folium.GeoJson(world.__geo_interface__).add_to(m)
With Geopatra all the parameters you set with folium become optional so you don't have to care about folium
import geopatra
m = world.folium.plot()
Now you have a folium map object, which you can now use for more complex mapflows
Check out docs for more examples
Development
Clone the repo
git clone git@github.com:Sangarshanan/geopatra.git
Run pre-commit install
to install pre-commit into your git hooks. pre-commit will now run on every commit
Install the package with the amazing poetry
poetry install
Make the bla-bla-bla changes to code and run the tests and when full moon is nigh, build & publish
poetry build
poetry publish
To update versions
poetry add geopandas@^0.8.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file geopatra-0.3.0.tar.gz
.
File metadata
- Download URL: geopatra-0.3.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.1 Linux/5.4.0-104-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00343574a614a9ddae55489c61b067088b2c3dad183b03bb27be1db7b141b3a5 |
|
MD5 | f98684c51836a03e2d029d2a8edcc2cb |
|
BLAKE2b-256 | 543d22fff496665f537f4696718a0362360fc7d030f7c238f784b0a48f79136a |
File details
Details for the file geopatra-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: geopatra-0.3.0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.1 Linux/5.4.0-104-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff3ecd248b9d2efaf072f4e9c511e572442ac39ac6d980c6928b6d470b09617c |
|
MD5 | 97b9e5d208adb949b06cb70375fa8b9e |
|
BLAKE2b-256 | 6a9a763f8c68ec9b7885c767c93ea8c31893cb65a245a461b5c5b9248886937b |