本文整理了Java中org.geowebcache.config.XMLGridSubset.getExtent()
方法的一些代码示例,展示了XMLGridSubset.getExtent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLGridSubset.getExtent()
方法的具体详情如下:
包路径:org.geowebcache.config.XMLGridSubset
类名称:XMLGridSubset
方法名:getExtent
暂无
代码示例来源: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
continue;
BoundingBox extent = gridSubset.getExtent();
if (null == extent) {
try {
代码示例来源:origin: org.geoserver/gs-gwc
continue;
BoundingBox extent = xmlGridSubset.getExtent();
boolean dynamic = Objects.isNull(extent);
if (dynamic) {
代码示例来源: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());
}
代码示例来源:origin: org.geoserver/gwc
public void testGridSubsetBoundsClippedToTargetCrsAreaOfValidity() throws Exception {
CoordinateReferenceSystem nativeCrs = CRS.decode("EPSG:4326", true);
ReferencedEnvelope nativeBounds = new ReferencedEnvelope(-180, 180, -90, 90, nativeCrs);
layerGroup.setBounds(nativeBounds);
defaults.getDefaultCachingGridSetIds().clear();
defaults.getDefaultCachingGridSetIds().add("EPSG:900913");
layerGroupInfoTileLayer = new GeoServerTileLayer(layerGroup, defaults, gridSetBroker);
// force building and setting the bounds to the saved representation
layerGroupInfoTileLayer.getGridSubsets();
XMLGridSubset savedSubset = layerGroupInfoTileLayer.getInfo().getGridSubsets().iterator()
.next();
BoundingBox gridSubsetExtent = savedSubset.getExtent();
BoundingBox expected = gridSetBroker.WORLD_EPSG3857.getOriginalExtent();
// don't use equals(), it uses an equality threshold we want to avoid here
double threshold = 1E-16;
assertTrue("Expected " + expected + ", got " + gridSubsetExtent,
expected.equals(gridSubsetExtent, threshold));
}
内容来源于网络,如有侵权,请联系作者删除!