public class FeaturesCrsParameterTransform extends AbstractFeaturesCrs
Abstract Test 7: /conf/crs/crs-parameter-transform Test Purpose: Verify that the geometries are transformed Requirement: /req/crs/crs-action Test Method For every CRS identifier advertized by the Web API that is known to the test engine and for which the test engine can convert geometries between the CRS and the default CRS of the Web API ("known CRS") execute the following test. Skip the test for unknown CRSs. 1. For each spatial feature collection collectionId, send a request with the parameter crs to /collections/{collectionId}/items and /collections/{collectionId}/items/{featureId} (with a valid featureId for the collection) for every known CRS listed. In addition, send the same request, but without the crs parameter. 2. Convert the response for the known CRS to the default CRS and verify that the responses match. Due to the use of different coordinate conversions in the test engine and by the API, there will not be an exact match and the test engine will have to allow for reasonable differences when assessing whether the geometries match.
requestLoggingFilter, responseLoggingFilter, rootUri
Constructor and Description |
---|
FeaturesCrsParameterTransform() |
Modifier and Type | Method and Description |
---|---|
void |
verifyFeaturesCrsParameterTransformWithCrsParameter(String collectionId,
io.restassured.path.json.JsonPath collection,
CoordinateSystem crs,
CoordinateSystem defaultCRS)
Test: transformed geometries in the path /collections/{collectionId}/items
|
void |
verifyFeaturesCrsParameterTransformWithoutCrsParameter(String collectionId,
io.restassured.path.json.JsonPath collection)
Test: transformed geometries in the path /collections/{collectionId}/items
|
collectionIdAndJson, collectionIdAndJsonAndCrs, collectionIdAndJsonAndCrsAndDefaultCrs, retrieveRequiredInformationFromTestContext
clearMessages, getRequest, getResponse, init, initCommonFixture
public void verifyFeaturesCrsParameterTransformWithoutCrsParameter(String collectionId, io.restassured.path.json.JsonPath collection) throws org.locationtech.jts.io.ParseException
collectionId
- id id of the collection, never null
collection
- the /collection object, never null
org.locationtech.jts.io.ParseException
- if the geometry could not be parsedpublic void verifyFeaturesCrsParameterTransformWithCrsParameter(String collectionId, io.restassured.path.json.JsonPath collection, CoordinateSystem crs, CoordinateSystem defaultCRS) throws org.locationtech.jts.io.ParseException
collectionId
- id id of the collection, never null
collection
- the /collection object, never null
crs
- the crs to test, never null
defaultCRS
- the defaultCRS of the collection, never null
org.locationtech.jts.io.ParseException
- if the geometry could not be parsedCopyright © 2024 Open Geospatial Consortium. All rights reserved.