View source: R/buildGISLayerInfo.R
buildGISLayerInfo | R Documentation |
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).
buildGISLayerInfo(category, codesystem, code)
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" |
an object of class "list"
function used internally to build FIRMS spatial objects
Emmanuel Blondel, emmanuel.blondel1@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.