Displaying differences for changeset
 
display as  

src/java/m/gis/intersect/V1_0.java

@@ -6,9 +6,11 @@
 package m.gis.intersect;
 
 import java.util.ListIterator;
+import java.util.logging.Level;
 import javax.ws.rs.Path;
 import m.gis.GISModelDataService;
 import m.utils.Layer;
+import m.utils.test.github.GitHub;
 import oms3.annotations.*;
 
 /**
@@ -19,10 +21,12 @@
 @Description("CSIP Intersection Service")
 @Path("m/intersect/1.0")
 public class V1_0 extends GISModelDataService {
+    
+    String testUrl;
 
     @Override
     protected void preProcess() throws Exception {
-        super.preProcess();
+        super.preProcess();
     }
 
     @Override
@@ -36,12 +40,16 @@
             }
         }
         result.put(db.toJSON(resultLayer, outputSRID));
+        testUrl = GitHub.createGist("intersection.json", 
+                "csip-gis intersection result", result.getJSONObject(0).toString()).getGeoJSONUrl();
+        LOG.log(Level.INFO, testUrl);
         return EXEC_OK;
     }
 
     @Override
     protected void postProcess() throws Exception {
-        super.postProcess();
+        super.postProcess();
+        putResult("testUrl", testUrl);
     }
 
 }