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
from geomoz import quick_map

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

# Mapa rápido
quick_map(provinces, column='Provincia')

# Hierarquia completa
districts = geomoz.read_district()
posts = geomoz.read_admin_post()
villages = geomoz.read_village()  # Usar cache para aldeias!

📊 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.0.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.0-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geomoz-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 96a74f13a5e40e3910b0d0c7108174e9b8d3d4189f5a51f8f42c702537ac6fd0
MD5 57058fd49409c74d44eeb0ffa6cac171
BLAKE2b-256 201e44889c2a2a11c5efc6b24ef2f47e9f5a2d91fb7fe941c6d3c03cd583103f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: geomoz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d10d1c2f7e893ac9f2e75e52b77ac88ae001c0c61db85f582b6bb1c843b15aa
MD5 5e5fa907dafdd83efb28ab0062bbf6b2
BLAKE2b-256 b262bd28aa01b2704f9978e0a8aa0494ff29840d1ce0f6d67f289456080be4b1

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