Skip to main content

alt text

Travis (.org) GitHub Workflow Status Documentation Status image PyPI - Python Version image

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

Release files for geopatra 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geopatra 0.3.0
File Size Uploaded
geopatra-0.3.0.tar.gz 17.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geopatra 0.3.0
File Interpreter ABI Platform
geopatra-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.2 kB

Release files / geopatra-0.3.0.tar.gz

Download URL geopatra-0.3.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
00343574a614a9ddae55489c61b067088b2c3dad183b03bb27be1db7b141b3a5
BLAKE2b-256 checksum
How to use checksums
543d22fff496665f537f4696718a0362360fc7d030f7c238f784b0a48f79136a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.1 Linux/5.4.0-104-generic

Release files / geopatra-0.3.0-py3-none-any.whl

Download URL geopatra-0.3.0-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff3ecd248b9d2efaf072f4e9c511e572442ac39ac6d980c6928b6d470b09617c
BLAKE2b-256 checksum
How to use checksums
6a9a763f8c68ec9b7885c767c93ea8c31893cb65a245a461b5c5b9248886937b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.1 Linux/5.4.0-104-generic

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page