@Api(allMethods=true)
public interface FilterService
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_ID
Generic attribute name which can be used to reference the id attribute (whatever the actual name is).
|
| Modifier and Type | Method and Description |
|---|---|
Filter |
createAndFilter(Filter left,
Filter right)
Combine two filters using the "AND" operator.
|
Filter |
createBboxFilter(Crs crs,
com.vividsolutions.jts.geom.Envelope bbox,
String geomName)
Create a filter the evaluates all geometries within a certain bounding box.
|
Filter |
createBboxFilter(String epsg,
com.vividsolutions.jts.geom.Envelope bbox,
String geomName)
Create a filter the evaluates all geometries within a certain bounding box.
|
Filter |
createBetweenFilter(String name,
String lower,
String upper)
Create a filter which passes all features from the FeatureInfo within featureTypeInfo with attribute values from
attribute 'name' between values 'lower and 'upper'.
This type of filter is only allowed on numeric object types (short, integer, long, float, double) |
Filter |
createCompareFilter(String name,
String comparator,
Date value)
Create a filter that passes all features where the values of attribute 'name' compared to literal 'value' using
comparator 'comparator' returns true.
|
Filter |
createCompareFilter(String name,
String comparator,
String value)
Create a filter that passes all features where the values of attribute 'name' compared to literal 'value' using
comparator 'comparator' returns true.
|
Filter |
createContainsFilter(com.vividsolutions.jts.geom.Geometry geometry,
String geomName)
Create a filter with all the geometries that contain the given geometry (including the geometry itself).
|
Filter |
createFalseFilter()
Creates a filter that allows nothing.
|
Filter |
createFidFilter(String[] featureIDs)
Create a feature ID filter.
|
Filter |
createGeometryTypeFilter(String geomName,
String geometryType)
Create a filter that checks that passes all features with the specified geometry type.
|
Filter |
createIntersectsFilter(com.vividsolutions.jts.geom.Geometry geometry,
String geomName)
Create a filter with all the geometries that have a non-empty intersection (overlap or touching) with
given geometry (including the geometry itself).
|
Filter |
createLikeFilter(String name,
String pattern)
Filter based on the LIKE comparator as in sql.
|
Filter |
createLogicFilter(Filter filter1,
String logic,
Filter filter2)
Create a logic filter.
|
Filter |
createOrFilter(Filter left,
Filter right)
Combine two filters using the "OR" operator.
|
Filter |
createOverlapsFilter(com.vividsolutions.jts.geom.Geometry geometry,
String geomName)
Create a filter with all the geometries that overlap the given geometry.
|
Filter |
createTouchesFilter(com.vividsolutions.jts.geom.Geometry geometry,
String geomName)
Creates a filter with all the geometries that touch the given geometry.
|
Filter |
createTrueFilter()
Creates a filter that allows everything.
|
Filter |
createWithinFilter(com.vividsolutions.jts.geom.Geometry geometry,
String geomName)
Create a filter with all the geometries that lie completely within the given geometry (including the
geometry itself).
|
FilterFactory |
getFilterFactory()
Get filter factory which is used by the implementation.
|
Filter |
parseFilter(String filter)
Parse a string to build a filter object.
|
void |
registerFeatureModel(FeatureModel featureModel)
Register a feature model.
|
static final String ATTRIBUTE_ID
Filter createBetweenFilter(String name, String lower, String upper)
name - The name of the attribute from featureTypeInfo.lower - A literal. A string that can be converted to a double.upper - A literal. A string that can be converted to a double.Filter createLikeFilter(String name, String pattern)
name - The name of the attribute from featureTypeInfo.pattern - Expression to compare with.Filter createCompareFilter(String name, String comparator, String value)
name - The name of the attribute from featureTypeInfo. This type of filter is only allowed on numeric object
types (short, integer, long, float, double)comparator - Depending on the type of literal, a range of operators is supported.
value - A literal. The actual value (as string).Filter createCompareFilter(String name, String comparator, Date value)
name - The name of the attribute from featureTypeInfo. This type of filter is only allowed on dates.comparator - The sort of comparison, can be "<", "<=", ">", ">=", "==", "<>".value - A literal. A string that can be converted to a double.Filter createGeometryTypeFilter(String geomName, String geometryType)
geomName - name of geometry attribute, empty string will choose default geometrygeometryType - the geometry type ('Point', 'MultiPoint', 'LineString', 'MultiLineString', 'Polygon' or
'MultiPolygon', see FilterFunction)Filter createLogicFilter(Filter filter1, String logic, Filter filter2)
filter1 - first filter to combinelogic - The logic operator. Can be 'AND', 'OR', 'NOT'.filter2 - second filter to combine
In the case of "NOT", this parameter is not used.Filter createFidFilter(String[] featureIDs)
featureIDs - Array of identifier strings for the features that need looking up.Filter createWithinFilter(com.vividsolutions.jts.geom.Geometry geometry, String geomName)
geometry - the geometrygeomName - the name of the geometry fieldFilter createContainsFilter(com.vividsolutions.jts.geom.Geometry geometry, String geomName)
geometry - the geometrygeomName - the name of the geometry fieldFilter createIntersectsFilter(com.vividsolutions.jts.geom.Geometry geometry, String geomName)
geometry - the geometrygeomName - the name of the geometry fieldFilter createTouchesFilter(com.vividsolutions.jts.geom.Geometry geometry, String geomName)
geometry - the geometrygeomName - the name of the geometry fieldFilter createBboxFilter(String epsg, com.vividsolutions.jts.geom.Envelope bbox, String geomName)
epsg - The bounding box' coordinate system reference.bbox - The bounding box itself.geomName - The name of the geometry fieldFilter createBboxFilter(Crs crs, com.vividsolutions.jts.geom.Envelope bbox, String geomName)
crs - The bounding box' coordinate reference system.bbox - The bounding box itself.geomName - The name of the geometry fieldFilter createOverlapsFilter(com.vividsolutions.jts.geom.Geometry geometry, String geomName)
geometry - the geometrygeomName - the name of the geometry fieldFilter createTrueFilter()
Filter createFalseFilter()
void registerFeatureModel(FeatureModel featureModel)
featureModel - feature model to registerFilter createAndFilter(Filter left, Filter right)
left - first filter to combineright - second filter to combineFilter createOrFilter(Filter left, Filter right)
left - first filter to combineright - second filter to combineFilter parseFilter(String filter) throws GeomajasException
filter - filter as stringGeomajasException - could not parse string to filterFilterFactory getFilterFactory()
Copyright © 2015 Geosparc. All Rights Reserved.