The Áreas de Preservação Permanente of Brazil's Forest Code (Lei 12.651/2012, art. 4): the margins of rivers from the channel's edge by their width (30 m below 10 m wide, 50 m to 50, 100 m to 200, 200 m to 600, 500 m beyond), of natural lakes by their area (100 m, 50 m up to 20 ha; 30 m in urban zones), 50 m around springs and from veredas, slopes above 45°, hilltops, land above 1,800 m and protected classes (mangroves, restingas); in rural areas consolidated by 22 July 2008, art. 61-A's narrower margins by the property's fiscal modules (rivers and lakes 5, 8 and 15 m up to 1, 2 and 4 modules, lakes 30 m and rivers the programme's width beyond; springs 15 m; veredas 30 or 50 m). In map units of metres.
Input
Type
What it is
rivers
map
the rivers' channels (non-zero)
river_width
map
the width of the river at its cells, metres
lakes
map
the natural lakes and lagoons (non-zero)
urban
map
the urban zones (non-zero): lakes' margins of 30 m
springs
vector
the springs (points)
veredas
map
the veredas' flooded areas (non-zero)
slope
map
the slope, degrees (above 45°)
elevation
map
the elevation, metres (above 1,800 m)
hilltops
map
the hilltops' APPs (surface.hilltop, non-zero)
landcover
map
the land cover, for the protected classes
properties
map
the rural properties (ids), for the consolidated areas
consolidated
map
the rural areas consolidated by 2008 (non-zero)
Output
Type
What it is
app
map
the APP of every cell: 1 river, 2 lake, 3 spring, 4 vereda, 5 slope, 6 hilltop, 7 altitude, 8 protected class (the first that applies); 0 none
table
table
a row per kind: kind (1-8), cells, area_ha (overlaps in each)
Setting
Type
What it is
river_width
number
the rivers' width without a map, metres (default 5)
protected_classes
any
the classes of landcover that are APP (a list)
fiscal_module
number
the fiscal module, hectares (with consolidated)
over_four_modules
number
the river margin of consolidated areas of properties above 4 modules, metres (default 20: the PRA's, 20 to 100)
The balance of every rural property's Reserva Legal (Lei 12.651/2012): the share of its area it must keep in native vegetation (art. 12: 80% in the Amazon's forests, 35% in its cerrado, 20% in its campos gerais and the rest of the country; a map of the share, or one for all), its native vegetation counted outside the APPs and, as art. 15 allows, inside them, and its deficit or surplus; the properties of up to 4 fiscal modules on 22 July 2008 keep only the vegetation they had then (art. 67).
Input
Type
What it is
propertiesrequired
map
the rural properties (ids)
vegetationrequired
map
the native vegetation (non-zero)
share
map
the Reserva Legal's share of every cell, percent
app
map
the APPs (forest_code.app; non-zero)
vegetation_2008
map
the native vegetation of 22 July 2008 (art. 67)
Output
Type
What it is
table
table
a row per property: property, area_ha, modules, native_ha, app_ha, app_native_ha, share, required_ha, counted_ha, deficit_ha, surplus_ha
balance
map
every property's surplus (positive) or deficit (negative), ha
Setting
Type
What it is
share
number
the share without a map, percent (default 20)
fiscal_module
number
the fiscal module, hectares (default 0: no art. 67)
count_app
bool
count the native vegetation of the APPs (art. 15; true)
Esc
Try MSPA, least cost, weights of evidence or coordinator.