Skip to main content

Geospatial data library for Mozambique with geological and administrative datasets

Project description

GeoMoz - Dados Geográficos de Moçambique

Version Python License

GeoMoz é um pacote Python que fornece acesso fácil a dados geográficos de Moçambique, incluindo divisões administrativas (11 províncias, 161 distritos, 459 postos, 11.524 aldeias) e dados geológicos completos.

Inspirado no geobr (Brasil).


🚀 Instalação

pip install geomoz

Com dependências completas:

pip install geomoz geopandas matplotlib folium

⚡ Uso Rápido

import geomoz
import matplotlib.pyplot as plt

# Carregar dados
provincias = geomoz.read_province()
print(f"✅ {len(provincias)} províncias carregadas")

# Criar figura
fig, ax = plt.subplots(figsize=(8, 12))

# Plot
provincias.plot(
    ax=ax,
    column="Provincia",
    cmap="tab20",
    edgecolor="black",
    linewidth=0.8,
    legend=True,
    legend_kwds={"loc": "upper left", "title": "Provincias"}
)

# Ajustes
ax.set_title("Províncias de Moçambique", fontsize=14)
ax.axis("off")

# Mover legenda
leg = ax.get_legend()
leg.set_bbox_to_anchor((1.05, 1))  # fora do mapa

plt.tight_layout()
plt.show()

📊 Dados Disponíveis

Dataset Registros Função
Províncias 11 read_province()
Distritos 161 read_district()
Postos Administrativos 459 read_admin_post()
Aldeias 11.524 read_village() / CachedGeoMoz.read_village()
Geologia ~50.000 read_geology()

🎨 Exemplos

Mapa de Províncias

from geomoz import plot_provinces
plot_provinces(show_names=True, save_path='mapa.png')

Geologia por Província

import geopandas as gpd
from geomoz import read_province, read_geology

province = read_province(name_province="Tete")
geology = read_geology()
geo_tete = gpd.overlay(geology, province, how='intersection')
print(f"Unidades geológicas em Tete: {len(geo_tete)}")

Mapa Web Interativo

import folium
from geomoz import read_province

province = read_province(name_province="Nampula")
m = folium.Map(location=[-14.5, 39], zoom_start=7)
folium.GeoJson(province).add_to(m)
m.save('mapa.html')

📚 Documentação


🛠️ Desenvolvimento

git clone https://github.com/geolithica/geomoz.git
cd geomoz
pip install -e ".[dev]"
pytest

📄 Licença

MIT License - veja LICENSE


GeoMoz - Dados geográficos de Moçambique ao alcance de todos! 🗺️🇲🇿

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

geomoz-0.1.1.tar.gz (16.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geomoz-0.1.1-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file geomoz-0.1.1.tar.gz.

File metadata

  • Download URL: geomoz-0.1.1.tar.gz
  • Upload date:
  • Size: 16.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for geomoz-0.1.1.tar.gz
Algorithm Hash digest
SHA256 58782e0ec5230edfb4edd4f2458cd9a540c0cd39ecb0208e2da5222e5fb2a68f
MD5 07dbf73eb7b4bd91bfc9f99e31c9fc1b
BLAKE2b-256 c9bef78705053554904ffd87dd2d6d329b5c8c237571772ae14c9496750ec91e

See more details on using hashes here.

File details

Details for the file geomoz-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: geomoz-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for geomoz-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f975d974f94adefb2d43246d40ffb35287d5f78262f55cd2b8826de9434ab89
MD5 03d2052c480cef12a54673b198ca1e18
BLAKE2b-256 c194f11a16053566379872cff721f2c867bc5279a0c0a506eafe507d60141d81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page