public class BBOXTests extends QueryFilterFixture
Sources
| Modifier and Type | Field and Description |
|---|---|
static double |
ENVELOPE_EXPANSION |
dataSampler, GET_FEATURE_MINIMAL, model, temporalPropertiesdocBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion| Constructor and Description |
|---|
BBOXTests() |
| 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 |
bboxWithDefaultExtent(ProtocolBinding binding,
QName featureType)
[
Test] Submits a GetFeature request with a BBOX predicate
referring to a valid geometry property. |
void |
createGeometryBaseType()
Creates an XSTypeDefinition object representing the
gml:AbstractGeometryType definition.
|
Document |
envelopeAsGML(org.opengis.geometry.Envelope extent)
Work around for Extents
envelopeAsGML(Envelope) only using 2 decimals |
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. |
void |
nonSpecificBBOX(ProtocolBinding binding,
QName featureType)
[
Test] Submits a GetFeature request with a non-specific BBOX
predicate. |
(package private) Element |
surfaceToPolygon(Element geometry)
Replaces gml:Surface elements having a single gml:PolygonPatch with a
gml:Polygon element.
|
buildRequestEntity, discardResponseEntity, findTemporalProperties, initQueryFilterFixtureaddAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClientpublic static final double ENVELOPE_EXPANSION
public void createGeometryBaseType()
public void nonSpecificBBOX(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 bboxWithDefaultExtent(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.
Sources
binding - The ProtocolBinding to use for this request.featureType - A QName representing the qualified name of some feature type.public Document envelopeAsGML(org.opengis.geometry.Envelope extent)
envelopeAsGML(Envelope) only using 2 decimalsextent - the envelopepublic 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 © 2020 Open Geospatial Consortium. All rights reserved.