public class IntersectsTests extends QueryFilterFixture
a.Intersects(b) ⇔ ! a.Disjoint(b)
| Modifier and Type | Field and Description |
|---|---|
static String |
IMPL_SPATIAL_FILTER |
dataSampler, GET_FEATURE_MINIMAL, model, temporalPropertiesdocBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion| Constructor and Description |
|---|
IntersectsTests() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addSpatialPredicate(Document request,
String spatialOp,
Element gmlGeom,
Element valueRef)
Adds a spatial predicate to a GetFeature request entity.
|
(package private) Document |
buildGetFeatureRequest(QName featureType,
String operator,
org.apache.xerces.xs.XSElementDeclaration propertyDecl,
Element literal)
Builds a simple GetFeature request entity that contains a basic filter
expression.
|
void |
findAllGeometryProperties()
Finds the geometry properties for all feature types recognized by the
SUT.
|
void |
implementsIntersectsOp()
Checks if the spatial operator "Intersects" is implemented and which
geometry operands are supported.
|
void |
implementsSpatialFilter(org.testng.ITestContext testContext)
Checks the value of the filter constraint "ImplementsSpatialFilter"
in the capabilities document.
|
void |
intersectsCurve(ProtocolBinding binding,
QName featureType)
[
Test] Submits a GetFeature request containing an
Intersects predicate with a gml:LineString or gml:Curve
(LineStringSegment) operand. |
void |
intersectsPolygon(ProtocolBinding binding,
QName featureType)
[
Test] Submits a GetFeature request containing an Intersects
predicate with a gml:Polygon operand. |
buildRequestEntity, discardResponseEntity, findTemporalProperties, initQueryFilterFixtureaddAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClientpublic static final String IMPL_SPATIAL_FILTER
public void implementsSpatialFilter(org.testng.ITestContext testContext)
testContext - Information about the test run environment.public void findAllGeometryProperties()
public void implementsIntersectsOp()
public void intersectsPolygon(ProtocolBinding binding, QName featureType) throws XPathExpressionException
Test] Submits a GetFeature request containing an Intersects
predicate with a gml:Polygon operand. The response entity must be
schema-valid and contain only matching instances.binding - The ProtocolBinding to use for this request.featureType - A QName representing the qualified name of some feature type.XPathExpressionExceptionpublic void intersectsCurve(ProtocolBinding binding, QName featureType) throws XPathExpressionException
Test] Submits a GetFeature request containing an
Intersects predicate with a gml:LineString or gml:Curve
(LineStringSegment) operand. The response entity must be schema-valid and
contain only matching instances.binding - The ProtocolBinding to use for this request.featureType - A QName representing the qualified name of some feature type.XPathExpressionExceptionDocument buildGetFeatureRequest(QName featureType, String operator, org.apache.xerces.xs.XSElementDeclaration propertyDecl, Element literal)
featureType - The name of the feature type.operator - The name of the filter predicate (operator).propertyDecl - The declaration of the feature property to be queried.literal - An element representing the literal value to match.void addSpatialPredicate(Document request, String spatialOp, Element gmlGeom, Element valueRef)
request - The request entity (wfs:GetFeature).spatialOp - The name of a spatial operator.gmlGeom - A DOM Element representing a GML geometry.valueRef - An Element (fes:ValueReference) that specifies the spatial
property to check. If it is null, the predicate
applies to all spatial properties.Copyright © 2020 Open Geospatial Consortium. All rights reserved.