public class BBOXOperatorTests extends QueryFilterFixture
dataSampler, GET_FEATURE_ENTITY, model
docBuilder, featureInfo, featureTypes, reqEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata
Constructor and Description |
---|
BBOXOperatorTests() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addBBOXPredicate(Document request,
Element envelope,
Element valueRef)
Adds a BBOX spatial predicate to a GetFeature request entity.
|
void |
createGeometryBaseType()
Creates an XSTypeDefinition object representing the
gml:AbstractGeometryType definition.
|
void |
invalidGeometryOperand(QName featureType)
[
Test ] Submits a GetFeature request where the BBOX predicate
refers to a feature property (gml:description) that is not
geometry-valued. |
(package private) Element |
surfaceToPolygon(Element geometry)
Replaces gml:Surface elements having a single gml:PolygonPatch with a
gml:Polygon element.
|
void |
withBBOXFilter(ProtocolBinding binding,
QName featureType)
[
Test ] Submits a GetFeature request with a BBOX predicate
referring to a valid geometry property. |
void |
withBroadBBOXFilter(ProtocolBinding binding,
QName featureType)
[
Test ] Submits a GetFeature request with a non-specific BBOX
predicate. |
buildRequestEntity, initQueryFilterFixture
addAttributesIfTestFailed, allProtocolsAndFeatureTypes, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, protocolAndAvailableFeatureTypes
public void createGeometryBaseType()
public void withBroadBBOXFilter(ProtocolBinding binding, QName featureType)
Test
] Submits a GetFeature request with a non-specific BBOX
predicate. If no value reference is specified the predicate is applied to
all spatial properties. The response entity (wfs:FeatureCollection) must
be schema-valid and contain only instances of the requested type that
satisfy the spatial predicate.binding
- The ProtocolBinding to use for this request.featureType
- A QName representing the qualified name of some feature type.public void withBBOXFilter(ProtocolBinding binding, QName featureType)
Test
] Submits a GetFeature request with a BBOX predicate
referring to a valid geometry property. The response shall contain only
features possessing a geometry value that spatially interacts (i.e. is
not disjoint) with the given envelope.
binding
- The ProtocolBinding to use for this request.featureType
- A QName representing the qualified name of some feature type.public void invalidGeometryOperand(QName featureType)
Test
] Submits a GetFeature request where the BBOX predicate
refers to a feature property (gml:description) that is not
geometry-valued. An exception is expected in response with status code
400 and exception code InvalidParameterValue
.featureType
- A QName representing the qualified name of a feature type for
which instances exist.Element surfaceToPolygon(Element geometry)
geometry
- A GML geometry collection.void addBBOXPredicate(Document request, Element envelope, Element valueRef)
request
- The request entity (/wfs:GetFeature).envelope
- A DOM Element representing a gml:Envelope.valueRef
- An Element (fes:ValueReference) that specifies the spatial
property to check. If it is null
, the predicate
applies to all spatial properties.Copyright © 2013. All Rights Reserved.