-
Notifications
You must be signed in to change notification settings - Fork 1
MinClaims
discrete_alloc function, argument 8: MinClaims
MinClaims is the eigth argument of the discrete_alloc function.
This argument needs to refer to a container with as subitems attributes for each land use type.
These attributes definethe minimal amount of land units that need to be allocated for the land use type per region.
The values unit for these attributes is the number of land units. The domain units of these attributes are the domain units of the regions for which the claims are available.
The values unit of the each MinClaim attribute with value type: uint32
The names of the MinClaims attributes need to match with the values of the TypeNames argument.
5.15
container
region
{
unit
p1: nrofrows = 1;
unit
p2: nrofrows = 2;
}
container
claim_source
{
unit
Meter := BaseUnit('m', float32);
unit
Ha := 10000.0 * Meter * Meter;
parameter
nrHaPerCel := 1[claim_sources/Ha];
container
p1
{
attribute
Nature_min (region/p1) : [12];
attribute
Living_min (region/p1) : [5];
}
container
p2
{
attribute
Working_min (regionMaps/p2): [6,2];
}
}
container
claims_min: Using = "claim_source"
{
attribute
Living (region/p1) := uint32(p1/Living_min / nrHaPerCel);
attribute
Working (region/p2) := uint32(p2/Working_min / nrHaPerCel);
attribute
Nature (region/p1) := uint32(p1/Nature_min / nrHaPerCel);
}
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.