Malhas temáticas
ibge_malhas_temaList thematic territorial divisions of Brazil (biomes, Legal Amazon, semi-arid, etc.) with codes, names, and a WFS URL for geometry download.
Instructions
Lists what a THEMATIC territorial recorte of Brazil contains: how many features, with which codes and names, and the URL to download its geometry.
Available recortes:
biomas: the six continental biomes
amazonia_legal: Legal Amazon boundary
semiarido: semi-arid area
costeiro: coastal municipalities
fronteira: border-strip municipalities
metropolitana: metropolitan regions
ride: Integrated Development Regions
listar: the catalogue itself, without querying the source
Filtering with codigo: only the recortes that have a per-feature code accept it — biomas (the biome code) and the two municipality ones, costeiro and fronteira (the 7-digit IBGE municipality code). Ask without codigo to see what exists; biome codes come from the source, not from a fixed table.
GEOMETRY IS NOT IN THE RESPONSE, on purpose: one biome polygon alone is over 9 MB. The response carries the attributes plus a canonical WFS URL that returns the recorte with geometry in GeoJSON.
Use a different tool when:
Administrative meshes WITH geometry (country/region/state/municipality outlines) → ibge_malhas
Behavior: read-only and idempotent — a live GET against the public IBGE Geosserviços WFS (IBGE Geociências), which is a different service from the Malhas API and the only one that publishes these recortes. Returns Markdown plus a typed structuredContent payload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tema | Yes | Recorte temático do território: - biomas: os seis biomas continentais - amazonia_legal: limite da Amazônia Legal - semiarido: área do semiárido - costeiro: municípios da zona costeira - fronteira: municípios da faixa de fronteira - metropolitana: regiões metropolitanas - ride: Regiões Integradas de Desenvolvimento - listar: lista os recortes disponíveis, sem consultar a fonte | |
| codigo | No | Filtra uma feição do recorte. Só os recortes que têm código próprio aceitam: biomas (cd_bioma, ex. "1") e os dois de municípios, costeiro e fronteira (código IBGE de 7 dígitos). Nos demais a chamada é recusada com a lista do que aceita. | |
| limite | No | Quantas feições trazer (padrão 50, máx. 600). O total do recorte vem sempre, mesmo quando o limite corta a lista. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tema | Yes | Recorte solicitado (ou 'listar') | |
| temas | No | Lista de recortes disponíveis (somente no modo 'listar') | |
| camada | No | Camada WFS do IBGE Geosserviços consultada | |
| codigo | No | Código usado como filtro, quando informado | |
| feicoes | No | Total de feições do recorte na fonte | |
| registros | No | Atributos de cada feição (sem geometria) | |
| provenance | Yes | Bloco de proveniência (contrato v1.0): fonte, URL, período, extração e licença | |
| attribution | Yes | URLs canônicas das fontes desta resposta (lista de atribuição) | |
| url_geometria | No | URL canônica do WFS que devolve a malha COM geometria, em GeoJSON | |
| feicoes_retornadas | No | Quantas vieram nesta resposta |