Skip to contents

Drops a service's <maplayer> and every reference to it - tree entry, ordering lists, legend, map themes. The counterpart of rfp_qgs_service_add().

Usage

rfp_qgs_service_rm(qgs, services)

Arguments

qgs

Character. Path to the project .qgs.

services

Character vector of layer_keys.

Value

Invisibly, the number of services removed.

Details

No data-loss refusal, deliberately. A service holds no data, so the machinery #129 asks for on form layers does not apply here: removing one costs a URI that the registry still holds. That asymmetry is the reason removal is cheap for services and expensive for forms.

Examples

if (FALSE) { # \dontrun{
rfp_qgs_service_rm("project.qgs", "google_satellite")
} # }