gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-22 11:35:05 26 4
gpt4 key购买 nike

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

WMTSStoreInfo.setName介绍

暂无

代码示例

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

public void setName(String name) {
  delegate.setName(name);
}

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

@Test
public void testAddWMTSStore() throws Exception {
  testAddWorkspace();
  File dir = new File(testData.getDataDirectoryRoot(), "workspaces/acme/demowmts");
  assertFalse(dir.exists());
  WMTSStoreInfo wmts = catalog.getFactory().createWebMapTileServer();
  wmts.setName("demowmts");
  wmts.setWorkspace(catalog.getWorkspaceByName("acme"));
  catalog.add(wmts);
  assertTrue(dir.exists());
  assertTrue(new File(dir, "wmtsstore.xml").exists());
}

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

@Test
public void testAddWMTSStore() {
  assertTrue(catalog.getStores(WMTSStoreInfo.class).isEmpty());
  addWMTSStore();
  assertEquals(1, catalog.getStores(WMTSStoreInfo.class).size());
  WMTSStoreInfo retrieved = catalog.getStore(wmtss.getId(), WMTSStoreInfo.class);
  assertNotNull(retrieved);
  WMTSStoreInfo wmts2 = catalog.getFactory().createWebMapTileServer();
  wmts2.setName("wmts2Name");
  wmts2.setWorkspace(ws);
  catalog.add(wmts2);
  assertEquals(2, catalog.getStores(WMTSStoreInfo.class).size());
}

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

public WMTSStoreInfo clone(final WMTSStoreInfo source, boolean allowEnvParametrization) {
  WMTSStoreInfo target;
  try {
    target = (WMTSStoreInfo) SerializationUtils.clone(source);
    if (target instanceof StoreInfoImpl && target.getCatalog() == null) {
      ((StoreInfoImpl) target).setCatalog(catalog);
    }
  } catch (Exception e) {
    target = catalog.getFactory().createWebMapTileServer();
    target.setDescription(source.getDescription());
    target.setEnabled(source.isEnabled());
    target.setName(source.getName());
    target.setType(source.getType());
    target.setWorkspace(source.getWorkspace());
  }
  setConnectionParameters(source, target);
  if (allowEnvParametrization) {
    // Resolve GeoServer Environment placeholders
    final GeoServerEnvironment gsEnvironment =
        GeoServerExtensions.bean(GeoServerEnvironment.class);
    if (gsEnvironment != null && GeoServerEnvironment.ALLOW_ENV_PARAMETRIZATION) {
      target.setCapabilitiesURL(
          (String) gsEnvironment.resolveValue(source.getCapabilitiesURL()));
      target.setUsername((String) gsEnvironment.resolveValue(source.getUsername()));
      target.setPassword((String) gsEnvironment.resolveValue(source.getPassword()));
    }
  }
  return target;
}

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

wmts.setName("foo");
wmts.setCapabilitiesURL("http://fake.host/wmts?request=getCapabilities");
catalog.add(wmts);

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

wmtss.setName("wmtsName");
wmtss.setType("WMTS");
wmtss.setCapabilitiesURL("http://fake.wmts.url");

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

store.setType("WMTS");
store.setEnabled(true);
store.setName("wmts");
store.setCapabilitiesURL(capabilities);
catalog.add(store);

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