GeoServer JavaScript API Documentation¶
The scripting extension includes a geoserver/catalog module that allows
scripts to access resources in the GeoServer catalog.
The catalog module¶
var catalog = require("geoserver/catalog");
Properties¶
-
namespaces¶ ArrayA list of namespace objects. Namespaces havealiasanduriproperties.catalog.namespaces.forEach(function(namespace) { // do something with namespace.alias or namespace.uri });
Methods¶
-
getVectorLayer(id)¶ - Parameters
id –
StringThe fully qualified feature type identifier (e.g. “topp:states”)- Returns
geoscript.layer.Layer
Access a feature type in the catalog as a GeoScript Layer.
var states = catalog.getVectorLayer("topp:states");