• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java MatchAction类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.opengis.filter.MultiValuedFilter.MatchAction的典型用法代码示例。如果您正苦于以下问题:Java MatchAction类的具体用法?Java MatchAction怎么用?Java MatchAction使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

MatchAction类属于org.opengis.filter.MultiValuedFilter包,在下文中一共展示了MatchAction类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: FixedDWithinImpl

点赞 3

import org.opengis.filter.MultiValuedFilter.MatchAction; //导入依赖的package包/类
public FixedDWithinImpl(
		final Expression e1,
		final Expression e2,
		final String units,
		final double distance,
		final MatchAction matchAction )
		throws IllegalFilterException,
		TransformException {
	super(
			new LiteralExpressionImpl(
					mil.nga.giat.geowave.adapter.vector.utils.FeatureGeometryUtils.buffer(
							getCRS(
									e1,
									e2),
							e1.evaluate(
									null,
									com.vividsolutions.jts.geom.Geometry.class),
							units,
							distance).getLeft()),
			e2,
			matchAction);
	this.units = units;
	this.distance = distance;
}
 

开发者ID:locationtech,
项目名称:geowave,
代码行数:25,
代码来源:FilterToCQLTool.java

示例2: getLayerGroupsFor

点赞 2

import org.opengis.filter.MultiValuedFilter.MatchAction; //导入依赖的package包/类
private Iterable<LayerGroupInfo> getLayerGroupsFor(final FeatureTypeInfo featureType) {
    List<LayerGroupInfo> layerGroups = new ArrayList<LayerGroupInfo>();
    
    // get the layers whose default style is that style, they might be in layer groups
    // using their default style
    Iterable<LayerInfo> layers = catalog.getLayers(featureType);

    // build a query retrieving the first list of candidates
    List<Filter> filters = new ArrayList<>();
    for (LayerInfo layer : layers) {
        filters.add(ff.equal(ff.property("layers.id"), ff.literal(layer.getId()), true, MatchAction.ANY));
        filters.add(ff.equal(ff.property("rootLayer.id"), ff.literal(layer.getId()), true));
    }
    Or groupFilter = ff.or(filters);
    
    try(CloseableIterator<LayerGroupInfo> it = catalog.list(LayerGroupInfo.class, groupFilter)) {
        while(it.hasNext()) {
            LayerGroupInfo lg = it.next();
            layerGroups.add(lg);
        }
    } catch (Exception e) {
        log.log(Level.SEVERE, "Failed to load groups associated with feature type " + featureType.prefixedName(), e);
    }
    
    loadGroupParents(layerGroups); 
    
    return layerGroups;
}
 

开发者ID:MapStory,
项目名称:ms-gs-plugins,
代码行数:29,
代码来源:BoundsUpdateTransactionListener.java

示例3: matchAction

点赞 2

import org.opengis.filter.MultiValuedFilter.MatchAction; //导入依赖的package包/类
public void matchAction() {
    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
    Filter filter;
    // matchAction start
    filter = ff.greater(ff.property("child/age"), ff.literal(12), true,
            MatchAction.ALL);
    // matchAction end
}
 

开发者ID:ianturton,
项目名称:geotools-cookbook,
代码行数:9,
代码来源:FilterExamples.java

示例4: matchActionAny

点赞 2

import org.opengis.filter.MultiValuedFilter.MatchAction; //导入依赖的package包/类
public void matchActionAny() {
    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
    Filter filter;
    // matchActionAny start
    List<Integer> ages = Arrays.asList(new Integer[] { 7, 8, 10, 15 });

    filter = ff.greater(ff.literal(ages), ff.literal(12), false,
            MatchAction.ANY);
    System.out.println("Any: " + filter.evaluate(null)); // prints Any: true
    // matchActionAny end
}
 

开发者ID:ianturton,
项目名称:geotools-cookbook,
代码行数:12,
代码来源:FilterExamples.java

示例5: matchActionAll

点赞 2

import org.opengis.filter.MultiValuedFilter.MatchAction; //导入依赖的package包/类
public void matchActionAll() {
    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
    Filter filter;
    // matchActionAll start
    List<Integer> ages = Arrays.asList(new Integer[] { 7, 8, 10, 15 });

    filter = ff.greater(ff.literal(ages), ff.literal(12), false,
            MatchAction.ALL);
    System.out.println("All: " + filter.evaluate(null)); // prints All: false
    // matchActionAll end
}
 

开发者ID:ianturton,
项目名称:geotools-cookbook,
代码行数:12,
代码来源:FilterExamples.java

示例6: matchActionOne

点赞 2

import org.opengis.filter.MultiValuedFilter.MatchAction; //导入依赖的package包/类
public void matchActionOne() {
    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
    Filter filter;
    // matchActionOne start
    List<Integer> ages = Arrays.asList(new Integer[] { 7, 8, 10, 15 });

    filter = ff.greater(ff.literal(ages), ff.literal(12), false,
            MatchAction.ONE);
    System.out.println("One: " + filter.evaluate(null)); // prints One: true
    // matchActionOne end
}
 

开发者ID:ianturton,
项目名称:geotools-cookbook,
代码行数:12,
代码来源:FilterExamples.java

示例7: getMatchAction

点赞 2

import org.opengis.filter.MultiValuedFilter.MatchAction; //导入依赖的package包/类
public MatchAction getMatchAction() {
	throw new UnsupportedOperationException("getMatchAction()");
}
 

开发者ID:geomajas,
项目名称:geomajas-project-server,
代码行数:4,
代码来源:ExtendedLikeFilterImpl.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)