buildGISLayerInfo: buildGISLayerInfo

View source: R/buildGISLayerInfo.R

buildGISLayerInfoR Documentation

buildGISLayerInfo

Description

A utility function to build a GIS layer info, using codesystem and code values inherited from a factsheet XML. The layer info consists in a standard named list with all the information required to query a GIS layer, i.e. the url, typeName, propertyName, propertyValue.

Additional fields, are added to report: - the info level and the rank. Both fields are required to optimize the query of FAO fishing areas, by using the finest fishing area granularity. - a weight specific to each layer. The weight is reversely proportional to the geographic extent of the layer features. Maximum weight is attributed to EEZs. In case of no overlap, or intersection failure, the feature that will be kept to georeference a resource will be the one with the highest weight (ie highest resolution).

Usage

buildGISLayerInfo(category, codesystem, code)

Arguments

category

an object of class "character" describing the category Possible values: "WaterArea", "SpeciesDistribution"

codesystem

an object of class "character"

code

an object of class "character"

Value

an object of class "list"

Note

function used internally to build FIRMS spatial objects

Author(s)

Emmanuel Blondel, emmanuel.blondel1@gmail.com


openfigis/RFirmsGeo documentation built on Oct. 13, 2022, 9:55 p.m.