geoserver javascript API文档¶
脚本扩展包括 geoserver/catalog 允许脚本访问GeoServer目录中资源的模块。
这个 catalog 模块¶
var catalog = require("geoserver/catalog");
属性¶
-
namespaces¶ Array命名空间对象的列表。命名空间具有alias和uri性质。catalog.namespaces.forEach(function(namespace) { // do something with namespace.alias or namespace.uri });
方法¶
-
getVectorLayer(id)¶ - 参数
id --
String完全限定的功能类型标识符(例如。“顶部:州")- 返回
geoscript.layer.Layer
将目录中的要素类型作为 GeoScript Layer .
var states = catalog.getVectorLayer("topp:states");
Previous: WPS挂钩
Next: 编写REST API脚本