org.geowebcache.config.XMLGridSubset.getGridSetName()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(110)

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

XMLGridSubset.getGridSetName介绍

暂无

代码示例

代码示例来源:origin: org.geoserver/gwc

private Set<String> gridsetNames(Set<XMLGridSubset> gridSubsets) {
  Set<String> names = new HashSet<String>();
  for (XMLGridSubset gridSubset : gridSubsets) {
    names.add(gridSubset.getGridSetName());
  }
  return names;
}

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

private Set<String> gridsetNames(Set<XMLGridSubset> gridSubsets) {
  Set<String> names = new HashSet<String>();
  for (XMLGridSubset gridSubset : gridSubsets) {
    names.add(gridSubset.getGridSetName());
  }
  return names;
}

代码示例来源:origin: GeoWebCache/geowebcache

@Override
public synchronized GridSubset removeGridSubset(String gridSetId) {
  for (Iterator<XMLGridSubset> it = gridSubsets.iterator(); it.hasNext(); ) {
    XMLGridSubset configSubset = it.next();
    if (gridSetId.equals(configSubset.getGridSetName())) {
      it.remove();
      break;
    }
  }
  return subSets.remove(gridSetId);
}

代码示例来源:origin: org.geoserver/gwc

@Override
public synchronized GridSubset removeGridSubset(String gridSetId) {
  checkGridSubsets();
  final GridSubset oldValue = this.subSets.remove(gridSetId);
  Set<XMLGridSubset> gridSubsets = new HashSet<XMLGridSubset>(info.getGridSubsets());
  for (Iterator<XMLGridSubset> it = gridSubsets.iterator(); it.hasNext();) {
    if (it.next().getGridSetName().equals(gridSetId)) {
      it.remove();
      break;
    }
  }
  info.setGridSubsets(gridSubsets);
  return oldValue;
}

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

@Override
public synchronized GridSubset removeGridSubset(String gridSetId) {
  checkGridSubsets();
  final GridSubset oldValue = this.subSets.remove(gridSetId);
  Set<XMLGridSubset> gridSubsets = new HashSet<XMLGridSubset>(info.getGridSubsets());
  for (Iterator<XMLGridSubset> it = gridSubsets.iterator(); it.hasNext(); ) {
    if (it.next().getGridSetName().equals(gridSetId)) {
      it.remove();
      break;
    }
  }
  info.setGridSubsets(gridSubsets);
  return oldValue;
}

代码示例来源:origin: GeoWebCache/geowebcache

public GridSubset getGridSubSet(GridSetBroker gridSetBroker) {
  GridSet gridSet = gridSetBroker.get(getGridSetName());
  if (gridSet == null) {
    log.error("Unable to find GridSet for \"" + getGridSetName() + "\"");
    return null;
  }
  return GridSubsetFactory.createGridSubSet(
      gridSet,
      getExtent(),
      getZoomStart(),
      getZoomStop(),
      minCachedLevel,
      maxCachedLevel);
}

代码示例来源:origin: org.geoserver/gwc

final String gridSetId = gridSubset.getGridSetName();
final GridSet gridSet = gridSetBroker.get(gridSetId);
if (gridSet == null) {

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

final String gridSetId = xmlGridSubset.getGridSetName();
final GridSet gridSet = gridSetBroker.get(gridSetId);
if (gridSet == null) {

代码示例来源:origin: GeoWebCache/geowebcache

xmlGridSubset.getGridSetName()
    + " is not known by the GridSetBroker, skipping for layer "
    + name);

代码示例来源:origin: org.geoserver/gwc

Collection<String> subsetNames = new ArrayList<String>();
for (XMLGridSubset s : cachedGridSubsets) {
  subsetNames.add(s.getGridSetName());

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

Collection<String> subsetNames = new ArrayList<String>();
for (XMLGridSubset s : cachedGridSubsets) {
  subsetNames.add(s.getGridSetName());

代码示例来源:origin: GeoWebCache/geowebcache

/** Copy constructor */
public XMLGridSubset(XMLGridSubset sset) {
  setGridSetName(sset.getGridSetName());
  setExtent(sset.getExtent() == null ? null : new BoundingBox(sset.getExtent()));
  setZoomStart(sset.getZoomStart());
  setZoomStop(sset.getZoomStop());
  setMinCachedLevel(sset.getMinCachedLevel());
  setMaxCachedLevel(sset.getMaxCachedLevel());
}

相关文章