工作区

RESTAPI允许您在GeoServer中创建和管理工作空间。

添加新工作区

使用发布请求创建名为“acme”的新工作区

请求

卷曲

curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml"
  -d "<workspace><name>acme</name></workspace>"
  http://localhost:8080/geoserver/rest/workspaces

Python

TBD

爪哇

TBD

响应

201 Created

备注

这个 Location 响应头指定新创建的工作区的位置(URI)。

正在列出工作区详细信息

检索有关特定工作区的信息

请求

卷曲

curl -v -u admin:geoserver -XGET -H "Accept: text/xml"
  http://localhost:8080/geoserver/rest/workspaces/acme

备注

这个 Accept 标题是可选的。

Python

TBD

爪哇

TBD

响应

<workspace>
  <name>acme</name>
  <dataStores>
    <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate"
     href="http://localhost:8080/geoserver/rest/workspaces/acme/datastores.xml"
     type="application/xml"/>
  </dataStores>
  <coverageStores>
    <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate"
     href="http://localhost:8080/geoserver/rest/workspaces/acme/coveragestores.xml"
     type="application/xml"/>
  </coverageStores>
  <wmsStores>
    <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate"
     href="http://localhost:8080/geoserver/rest/workspaces/acme/wmsstores.xml"
     type="application/xml"/>
  </wmsStores>
</workspace>

这表明工作区可以包含“`` datastores``”(用于 vector data )“`` coveragestores``”(用于 raster data )和“`` wmsstores``”(用于 cascaded WMS servers

Previous: 风格
Next: 商店