Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Turton committed Oct 7, 2023
1 parent 253ad4c commit 27dcfe1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ protected GetFeatureRequest createGetFeature(Query query, ResultType resultType)
String srsName = getSupportedSrsName(request, query);

request.setSrsName(srsName);
LOGGER.fine("request = " + request.toString());
return request;
}

Expand All @@ -273,6 +274,7 @@ protected FeatureReader<SimpleFeatureType, SimpleFeature> getReaderInternal(Quer
throws IOException {

if (Filter.EXCLUDE.equals(localQuery.getFilter())) {
LOGGER.fine("Filter is EXCLUDE returning empty collection");
return new EmptyFeatureReader<>(getSchema());
}

Expand All @@ -282,9 +284,9 @@ protected FeatureReader<SimpleFeatureType, SimpleFeature> getReaderInternal(Quer
final SimpleFeatureType contentType =
getQueryType(localQuery, (SimpleFeatureType) request.getFullType());
request.setQueryType(contentType);

LOGGER.fine("request = "+request);
GetFeatureResponse response = client.issueRequest(request);

LOGGER.fine("response = " + response);
GeometryFactory geometryFactory = findGeometryFactory(localQuery.getHints());
GetParser<SimpleFeature> features = response.getSimpleFeatures(geometryFactory);

Expand Down

0 comments on commit 27dcfe1

Please sign in to comment.