public class SpatialJoinTests extends QueryFilterFixture
A sample GetFeature request entity is shown below, where the "Intersects" predicate refers to the geometry properties of two different feature types.
<wfs:GetFeature version="2.0.0" service="WFS" xmlns:tns="http://example.org/ns1" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0"> <wfs:Query typeNames="tns:Parks tns:Lakes"> <fes:Filter> <fes:Intersects> <fes:ValueReference>tns:Parks/tns:geometry</fes:ValueReference> <fes:ValueReference>tns:Lakes/tns:geometry</fes:ValueReference> </fes:Intersects> </fes:Filter> </wfs:Query> </wfs:GetFeature>
Sources
Modifier and Type | Field and Description |
---|---|
static String |
IMPL_SPATIAL_JOINS |
dataSampler, GET_FEATURE_MINIMAL, model, temporalProperties
docBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion
Constructor and Description |
---|
SpatialJoinTests() |
Modifier and Type | Method and Description |
---|---|
(package private) Map<QName,List<org.apache.xerces.xs.XSElementDeclaration>> |
findGeometryProperties(String gmlTypeName)
Searches the application schema for geometry properties where the value
is an instance of the given type.
|
void |
implementsSpatialJoins(org.testng.ITestContext testContext)
Checks the value of the service constraint "ImplementsSpatialJoins"
in the capabilities document.
|
void |
initFixture()
Initializes the test class fixture.
|
void |
joinWithIntersects()
[
Test ] Submits a basic join query that includes the
Intersects operator. |
void |
selfJoinWithIntersects() |
buildRequestEntity, discardResponseEntity, findTemporalProperties, getModel, initQueryFilterFixture
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClient
public static final String IMPL_SPATIAL_JOINS
Map<QName,List<org.apache.xerces.xs.XSElementDeclaration>> findGeometryProperties(String gmlTypeName)
gmlTypeName
- The name of a GML geometry type (may be abstract).public void implementsSpatialJoins(org.testng.ITestContext testContext)
testContext
- Information about the test run environment.public void initFixture()
public void joinWithIntersects()
Test
] Submits a basic join query that includes the
Intersects
operator. A projection clause (wfs:PropertyName)
is omitted, so the response entity is expected to contain instances of
both feature types.public void selfJoinWithIntersects()
Copyright © 2022 Open Geospatial Consortium. All rights reserved.