本文整理了Java中org.geoserver.wms.WMS.getTimeElevationToFilter()
方法的一些代码示例,展示了WMS.getTimeElevationToFilter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WMS.getTimeElevationToFilter()
方法的具体详情如下:
包路径:org.geoserver.wms.WMS
类名称:WMS
方法名:getTimeElevationToFilter
[英]Builds a filter for the current time and elevation, should the layer support them. Only one among time and elevation can be multi-valued
[中]如果图层支持,则为当前时间和高程构建过滤器。时间和高程中只有一个可以是多值的
代码示例来源:origin: org.geoserver.community/gs-dyndimension
final Filter filter = wms.getTimeElevationToFilter(times, elevations, resource);
代码示例来源:origin: org.geoserver/gs-wms
public void doTimeElevationFilter(Object time, Object elevation, Integer... expectedIds)
throws Exception {
FeatureTypeInfo timeWithStartEnd =
getCatalog().getFeatureTypeByName(TIME_WITH_START_END.getLocalPart());
FeatureSource fs = timeWithStartEnd.getFeatureSource(null, null);
List times = time == null ? null : Arrays.asList(time);
List elevations = elevation == null ? null : Arrays.asList(elevation);
Filter filter = wms.getTimeElevationToFilter(times, elevations, timeWithStartEnd);
FeatureCollection features = fs.getFeatures(filter);
Set<Integer> results = new HashSet<Integer>();
FeatureIterator it = features.features();
try {
while (it.hasNext()) {
results.add((Integer) it.next().getProperty("id").getValue());
}
} finally {
it.close();
}
assertTrue(
"expected " + Arrays.toString(expectedIds) + " but got " + results,
results.containsAll(Arrays.asList(expectedIds)));
assertTrue(
"expected " + Arrays.toString(expectedIds) + " but got " + results,
Arrays.asList(expectedIds).containsAll(results));
}
代码示例来源:origin: org.geoserver/gs-wms
wms.getTimeElevationToFilter(times, elevations, mapLayerInfo.getFeature());
Filter filter =
SimplifyingFilterVisitor.simplify(
代码示例来源:origin: org.geoserver/gs-wms
wms.getTimeElevationToFilter(
params.getTimes(), params.getElevations(), layer.getFeature());
getFInfoFilter = Filters.and(ff, getFInfoFilter, timeElevationFilter);
代码示例来源:origin: org.geoserver/gs-wms
MapLayerInfo layer = params.getLayer();
Filter dimensionFilter =
wms.getTimeElevationToFilter(times, elevations, layer.getFeature());
Filter filter;
if (layerFilter == null) {
内容来源于网络,如有侵权,请联系作者删除!