Skip to content

Commit

Permalink
[KNOWAGE-8805] Add wkt layer download type
Browse files Browse the repository at this point in the history
  • Loading branch information
masseb974 committed Feb 20, 2025
1 parent b9f6bd9 commit 03eb75e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,9 @@ public JSONObject getContentforDownload(int layerId, String typeWFS) {
BufferedReader br = new BufferedReader(new InputStreamReader(inputstream))) {
String c;
c = br.readLine();
if (typeWFS.equals("wkt")) {
if (typeWFS.equals(SbiLayersEnum.WKT.key)) {
obj = new JSONObject();
obj.put("wkt", c);
obj.put(SbiLayersEnum.WKT.key, c);
} else {
obj = new JSONObject(c);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public enum SbiLayersEnum {

GEOJSON("File"), TOPOJSON("topojson");
GEOJSON("File"), TOPOJSON("topojson"), WKT("wkt");

public final String key;

Expand Down

0 comments on commit 03eb75e

Please sign in to comment.