Metadata-Version: 2.1
Name: open-geodata
Version: 22.6.10
Summary: Dados Espaciais do Brasil
Home-page: https://github.com/open-geodata/open-geodata
Author: Michel Metran
Author-email: michelmetran@gmail.com
Keywords: python,geodata,geoprocessamento
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: Portuguese
Classifier: Intended Audience :: Developers
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: setuptools (>=58.2.0)
Requires-Dist: geopandas (>=0.10.2)
Requires-Dist: folium (>=0.11.0)
Requires-Dist: incremental (~=21.3.0)
Requires-Dist: seaborn (>=0.10)
Requires-Dist: pandas (>=0.10)
Requires-Dist: py7zr (>=0.18.1)
Requires-Dist: branca (>=0.3.2)
Requires-Dist: shapely (>=1.3.0)
Requires-Dist: sidrapy (>=0.1.1)

# Open Geodata

[![Publish Python 🐍 distributions 📦 to PyPI](https://github.com/open-geodata/open-geodata/actions/workflows/publish-to-pypi.yml/badge.svg)](https://github.com/open-geodata/open-geodata/actions/workflows/publish-to-pypi.yml)

<br>

Pacote para disponibilizar dados espaciais!
<br>
Todos os datasets estão com _datum_ WGS84 (EPSG: 4326).

<br>

---

### Instalar

```python
pip3 install open-geodata --upgrade
```

<br>

---

### Como Usar?

```python
from open_geodata import geo

# List geodataframes
geo.get_dataset_names()

# Load geodataframe
geo.load_dataset('sp_250k_wgs84')
```

```python
from open_geodata import lyr

# Add Layers
lyr.base.google_hybrid(min_zoom, max_zoom)
```

```python
from open_geodata import folium_plus

# Create Map
m = folium_plus.adds.create_map_multitiles()
m
```

```python
from open_geodata import converts

converts.df2geojson(df, lat='latitude', long='longitude', remove_coords_properties=True)
```

<br>

---

### _Datasets_

**br_ibge**

Limites de Municípios e Estados.

<br>

**sp_250k**

Limites administrativos municipais do Estado de São Paulo.

<br>

**sp_piracicaba**

Limites do Plano Diretor do Município de Piracicaba.

<br>

---

### Teste

- [Google Colab](https://colab.research.google.com/drive/1s_w9t599OstJ0KS99NusH2EVGYa5twMh?usp=sharing)

<br>

---

### _TODO_

1. <https://github.com/twisted/incremental>
2. Definir os _layers_
3. Participnar dados! https://dev.to/bowmanjd/easily-load-non-python-data-files-from-a-python-package-2e8g
4. import pkg_resources https://stackoverflow.com/questions/779495/access-data-in-package-subdirectory
5. Use of pkg_resources is discouraged in favor of importlib.resources, importlib.metadata, and their backports (importlib_resources, importlib_metadata). Please consider using those libraries instead of pkg_resources. https://setuptools.pypa.io/en/latest/pkg_resources.html
