Skip to content

Commit

Permalink
removing unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
FabiKo117 committed Sep 17, 2020
1 parent 50f2f24 commit 1ad4075
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.geojson.Feature;
import org.geojson.GeoJsonObject;
import org.heigit.bigspatialdata.oshdb.api.generic.OSHDBCombinedIndex;
import org.heigit.bigspatialdata.oshdb.api.generic.function.SerializableFunction;
Expand Down Expand Up @@ -947,23 +946,6 @@ private void writeStreamResponse(ThreadLocal<JsonGenerator> outputJsonGen,
}
}

/** Fills a GeoJSON Feature with the groupByBoundaryId and the geometry. */
private Feature makeGeojsonFeature(GroupByObject[] results, int groupByResultCount, String id) {
Object groupByBoundaryId = results[groupByResultCount].getGroupByObject();
Feature feature = new Feature();
if (groupByBoundaryId instanceof Object[]) {
Object[] groupByBoundaryIdArr = (Object[]) groupByBoundaryId;
String boundaryTagId =
groupByBoundaryIdArr[0].toString() + "_" + groupByBoundaryIdArr[1].toString();
feature.setId(boundaryTagId + "@" + id);
feature.setProperty("groupByBoundaryId", boundaryTagId);
} else {
feature.setId(groupByBoundaryId + "@" + id);
feature.setProperty("groupByBoundaryId", groupByBoundaryId);
}
return feature;
}

/** Defines character encoding, content type and cache header in given servlet response object. */
private HttpServletResponse setCsvSettingsInServletResponse(HttpServletResponse servletResponse) {
servletResponse.setCharacterEncoding("UTF-8");
Expand Down

0 comments on commit 1ad4075

Please sign in to comment.