X-Git-Url: https://git.argeo.org/?p=gpl%2Fargeo-suite.git;a=blobdiff_plain;f=environment%2Forg.argeo.geo.ui%2Fsrc%2Forg%2Fargeo%2Fgeo%2FGeoJsonUtils.java;fp=environment%2Forg.argeo.geo.ui%2Fsrc%2Forg%2Fargeo%2Fgeo%2FGeoJsonUtils.java;h=0000000000000000000000000000000000000000;hp=0d584802938f74fc431148a8d9cf352ecea5e1d9;hb=3440f51df3e4c015972c7b6a0efb3ce16188b89b;hpb=752a7b2614895002a3d184be166ef4162caf0d05 diff --git a/environment/org.argeo.geo.ui/src/org/argeo/geo/GeoJsonUtils.java b/environment/org.argeo.geo.ui/src/org/argeo/geo/GeoJsonUtils.java deleted file mode 100644 index 0d58480..0000000 --- a/environment/org.argeo.geo.ui/src/org/argeo/geo/GeoJsonUtils.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.argeo.geo; - -import java.util.Map; - -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.node.ObjectNode; - -/** Geo data utilities. */ -public class GeoJsonUtils { - - /** Add these properties to all features. */ - public static void addProperties(JsonNode tree, Map map) { - for (JsonNode feature : tree.get("features")) { - ObjectNode properties = (ObjectNode) feature.get("properties"); - for (String key : map.keySet()) { - properties.put(key, map.get(key)); - } - } - } - - /** Singleton. */ - private GeoJsonUtils() { - } -}