# Plano de Bacias PCJ 2020-2035
- [PyPi](https://pypi.org/project/sp-bh-pcj-2020-2035/)
- [GitHub](https://github.com/open-geodata/sp_bh_pcj-2020-2035)
<br>
A Agência das Bacias PCJ mantem um [ArcGIS Server](https://mapas.agenciapcj.org.br/arcgis/rest/services) possibilitando o consumo de dados espaciais.
Visando baixar todos os dados disponíveis, referente ao [Plano de Bacias 2020-2035](https://plano.agencia.baciaspcj.org.br/), em 20.05.2022 acessei todos os dados usando o repositório [ArcGIS REST API](https://github.com/open-geodata/arcgis_rest_api).
![ArcGIS Server](https://i.imgur.com/ZAKT1bE.png)
O enderenço com os parâmetros, que utilizei, esta apresentado abaixo:
- https://mapas.agenciapcj.org.br/arcgis/rest/services/Planos/PlanoBacias_CRF/FeatureServer/49/query?where=1%3D1&objectIds=1&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&distance=&units=esriSRUnit_Foot&relationParam=&outFields=*&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&havingClause=&gdbVersion=&historicMoment=&returnDistinctValues=false&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&multipatchOption=xyFootprint&resultOffset=&resultRecordCount=&returnTrueCurves=false&returnExceededLimitFeatures=false&quantizationParameters=&returnCentroid=false&sqlFormat=none&resultType=&featureEncoding=esriDefault&datumTransformation=&f=geojson
<br>
Notei também que a Agência PCJ mantem uma [API Swagger](https://ssd.baciaspcj.org.br/api/index.html) com disponibilização de dados.
<br>
---
### Como Usar?
O repositório faz parte do projeto [**_OpenGeodata_**](https://pypi.org/project/open-geodata), que tem por objetivo compartilhar dados espaciais por meio de _packages_ do python.
```bash
# Install
pip3 install open-geodata --upgrade
pip3 install sp-bh-pcj-2020-2035 --upgrade
```
<br>
Uma vez instalado os pacotes, é possível listar e carregar os _datasets_ disponíveis, com os comandos abaixo.
```python
# List Datasets from package (dataframes and geodataframes)
geo.get_dataset_from_package('sp_bh_pcj_2020_2035')
# Load Dataset from package
geo.load_dataset_from_package('sp_bh_pcj_2020_2035', dataset_name)
```
<br>
---
### Observação
Existem três _layers_ que não inseri no repositório, visto apresentarem mais de 25mb (limite do GitHub). a saber:
- inventario florestal 2020 - bacia pcj - poligonos.7z
- uso da terra - poligonos.7z
- área de preservação permanente - poligonos.7z
<br>
---
### _TODO_
1. Definir _layers_
Raw data
{
"_id": null,
"home_page": "https://github.com/open-geodata/sp_bh_pcj-2020-2035",
"name": "sp-bh-pcj-2020-2035",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": "",
"keywords": "python,dados espaciais,geoprocessamento",
"author": "Michel Metran",
"author_email": "michelmetran@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/59/3a/c42ea1a391d05662e612e043d952443ddb2666e465540e05894e4cdaaf61/sp_bh_pcj_2020_2035-0.0.7.tar.gz",
"platform": null,
"description": "# Plano de Bacias PCJ 2020-2035\n\n- [PyPi](https://pypi.org/project/sp-bh-pcj-2020-2035/)\n- [GitHub](https://github.com/open-geodata/sp_bh_pcj-2020-2035)\n\n<br>\n\nA Ag\u00eancia das Bacias PCJ mantem um [ArcGIS Server](https://mapas.agenciapcj.org.br/arcgis/rest/services) possibilitando o consumo de dados espaciais.\n\nVisando baixar todos os dados dispon\u00edveis, referente ao [Plano de Bacias 2020-2035](https://plano.agencia.baciaspcj.org.br/), em 20.05.2022 acessei todos os dados usando o reposit\u00f3rio [ArcGIS REST API](https://github.com/open-geodata/arcgis_rest_api).\n\n![ArcGIS Server](https://i.imgur.com/ZAKT1bE.png)\n\nO enderen\u00e7o com os par\u00e2metros, que utilizei, esta apresentado abaixo:\n\n- https://mapas.agenciapcj.org.br/arcgis/rest/services/Planos/PlanoBacias_CRF/FeatureServer/49/query?where=1%3D1&objectIds=1&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&distance=&units=esriSRUnit_Foot&relationParam=&outFields=*&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&havingClause=&gdbVersion=&historicMoment=&returnDistinctValues=false&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&multipatchOption=xyFootprint&resultOffset=&resultRecordCount=&returnTrueCurves=false&returnExceededLimitFeatures=false&quantizationParameters=&returnCentroid=false&sqlFormat=none&resultType=&featureEncoding=esriDefault&datumTransformation=&f=geojson\n\n<br>\n\nNotei tamb\u00e9m que a Ag\u00eancia PCJ mantem uma [API Swagger](https://ssd.baciaspcj.org.br/api/index.html) com disponibiliza\u00e7\u00e3o de dados.\n\n<br>\n\n---\n\n### Como Usar?\n\nO reposit\u00f3rio faz parte do projeto [**_OpenGeodata_**](https://pypi.org/project/open-geodata), que tem por objetivo compartilhar dados espaciais por meio de _packages_ do python.\n\n```bash\n# Install\npip3 install open-geodata --upgrade\npip3 install sp-bh-pcj-2020-2035 --upgrade\n```\n\n<br>\n\nUma vez instalado os pacotes, \u00e9 poss\u00edvel listar e carregar os _datasets_ dispon\u00edveis, com os comandos abaixo.\n\n```python\n# List Datasets from package (dataframes and geodataframes)\ngeo.get_dataset_from_package('sp_bh_pcj_2020_2035')\n\n# Load Dataset from package\ngeo.load_dataset_from_package('sp_bh_pcj_2020_2035', dataset_name)\n```\n\n<br>\n\n---\n\n### Observa\u00e7\u00e3o\n\nExistem tr\u00eas _layers_ que n\u00e3o inseri no reposit\u00f3rio, visto apresentarem mais de 25mb (limite do GitHub). a saber:\n\n- inventario florestal 2020 - bacia pcj - poligonos.7z\n- uso da terra - poligonos.7z\n- \u00e1rea de preserva\u00e7\u00e3o permanente - poligonos.7z\n\n<br>\n\n---\n\n### _TODO_\n\n1. Definir _layers_\n",
"bugtrack_url": null,
"license": "",
"summary": "Dados Espaciais da Ag\u00eancia das Bacias PCJ, com informa\u00e7\u00f5es apresentadas no Plano de Bacias 2020-2035",
"version": "0.0.7",
"split_keywords": [
"python",
"dados espaciais",
"geoprocessamento"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d25391ee48e58d19714dd6c2c3be66df2592bcdc55458d9e248472743dc0b01f",
"md5": "8d1d8f174381c6505c8ef9a49af7af93",
"sha256": "d469ac98036ce58f6ae102c0d78d22584f686a055d816ebc560dc5a1e7a495e9"
},
"downloads": -1,
"filename": "sp_bh_pcj_2020_2035-0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8d1d8f174381c6505c8ef9a49af7af93",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 32167023,
"upload_time": "2023-03-10T14:32:28",
"upload_time_iso_8601": "2023-03-10T14:32:28.247245Z",
"url": "https://files.pythonhosted.org/packages/d2/53/91ee48e58d19714dd6c2c3be66df2592bcdc55458d9e248472743dc0b01f/sp_bh_pcj_2020_2035-0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "593ac42ea1a391d05662e612e043d952443ddb2666e465540e05894e4cdaaf61",
"md5": "96a3c2f99ea2e0b6ede0698f06d04b11",
"sha256": "a35dec9b51ae11b61f4efdbdc954659e3916a46c0beab77cce3debb1fe00dca6"
},
"downloads": -1,
"filename": "sp_bh_pcj_2020_2035-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "96a3c2f99ea2e0b6ede0698f06d04b11",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 32170721,
"upload_time": "2023-03-10T14:32:32",
"upload_time_iso_8601": "2023-03-10T14:32:32.522252Z",
"url": "https://files.pythonhosted.org/packages/59/3a/c42ea1a391d05662e612e043d952443ddb2666e465540e05894e4cdaaf61/sp_bh_pcj_2020_2035-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-10 14:32:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "open-geodata",
"github_project": "sp_bh_pcj-2020-2035",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "sp-bh-pcj-2020-2035"
}