gpt4 book ai didi

org.geoserver.catalog.WMTSStoreInfo.getWebMapTileServer()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 12:37:05 25 4
gpt4 key购买 nike

本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.getWebMapTileServer()方法的一些代码示例,展示了WMTSStoreInfo.getWebMapTileServer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WMTSStoreInfo.getWebMapTileServer()方法的具体详情如下:
包路径:org.geoserver.catalog.WMTSStoreInfo
类名称:WMTSStoreInfo
方法名:getWebMapTileServer

WMTSStoreInfo.getWebMapTileServer介绍

[英]Returns the underlying WebMapTileServer.

This method does I/O and is potentially blocking. The listener may be used to report the progress of loading the datastore and also to report any errors or warnings that occur.
[中]返回基础WebMapTileServer。
此方法不执行I/O操作,可能会造成阻塞。侦听器可用于报告加载数据存储的进度,以及报告发生的任何错误或警告。

代码示例

代码示例来源:origin: geoserver/geoserver

@Override
public WebMapTileServer getWebMapTileServer(ProgressListener listener) throws IOException {
  return delegate.getWebMapTileServer(listener);
}

代码示例来源:origin: geoserver/geoserver

/**
 * Locates and returns a WTMS {@link Layer} based on the configuration stored in WMTSLayerInfo
 *
 * @param info
 * @throws IOException
 */
public Layer getWMTSLayer(WMTSLayerInfo info) throws IOException {
  String name = info.getName();
  if (info.getNativeName() != null) {
    name = info.getNativeName();
  }
  WMTSCapabilities caps = null;
  caps = info.getStore().getWebMapTileServer(null).getCapabilities();
  for (Layer layer : caps.getLayerList()) {
    if (name.equals(layer.getName())) {
      return layer;
    }
  }
  throw new IOException(
      "Could not find layer " + info.getName() + " in the server capabilitiles document");
}

代码示例来源:origin: org.geoserver/gs-restconfig

List<String> getAvailableLayersInternal(
    String workspaceName, String storeName, boolean quietOnNotFound) {
  NamespaceInfo ns = getNamespaceInternal(workspaceName);
  Collection<WMTSStoreInfo> stores = getStoresInternal(ns, storeName, quietOnNotFound);
  return stores.stream()
      .flatMap(
          store -> {
            WebMapTileServer ds;
            try {
              ds = store.getWebMapTileServer(null);
            } catch (IOException e) {
              throw new RestException(
                  "Could not load wmts store: " + storeName,
                  HttpStatus.INTERNAL_SERVER_ERROR,
                  e);
            }
            final List<WMTSLayer> layerList = ds.getCapabilities().getLayerList();
            return layerList
                .stream()
                .map(Layer::getName)
                .filter(Objects::nonNull)
                .filter(name -> !name.isEmpty())
                .filter(name -> !layerConfigured(store, name));
          })
      .collect(Collectors.toList());
}

代码示例来源:origin: org.geoserver.web/gs-web-core

builder.setStore(store);
List<WMTSLayer> layers =
    wmtsInfo.getWebMapTileServer(null).getCapabilities().getLayerList();
for (Layer l : layers) {
  if (l.getName() == null) {

代码示例来源:origin: org.geoserver.web/gs-web-core

if (store instanceof WMTSStoreInfo) {
  try {
    WebMapTileServer wmts = ((WMTSStoreInfo) store).getWebMapTileServer(null);
    createWMTSLayerImportContainer.setVisible(wmts != null);
  } catch (IOException e) {

代码示例来源:origin: org.geoserver/gs-wms

WebMapTileServer wmts = wmtsLayer.getStore().getWebMapTileServer(null);
Layer gt2Layer = wmtsLayer.getWMTSLayer(null);

代码示例来源:origin: org.geoserver.web/gs-web-core

WebMapTileServer webMapTileServer = expandedStore.getWebMapTileServer(null);
WMTSCapabilities capabilities = webMapTileServer.getCapabilities();
List<WMTSLayer> layers = capabilities.getLayerList();

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com