mapfishapp - gml+kml export of results #995

Merged
merged 1 commit into from Jul 9, 2015

Projects

None yet

2 participants

@fvanderbiest
Member

This PR allows users to export features from the results panel as KML or GML files.

@fvanderbiest fvanderbiest self-assigned this Jun 11, 2015
@fvanderbiest fvanderbiest added this to the 15.06 milestone Jun 11, 2015
@pmauduit pmauduit commented on the diff Jun 12, 2015
...java/org/georchestra/mapfishapp/ws/DocController.java
@@ -142,6 +152,27 @@ public void getKMLFile(HttpServletRequest request, HttpServletResponse response)
getFile(new KMLDocService(this.docTempDir, this.connectionPool), request, response);
}
+ /*======================= GML =====================================================================*/
+ /**
+ * POST KML entry point. Store the body of the request POST (or file by upload) in a temporary file.
+ * @param request contains in its body the file in the JSON format
+ * @param response contains the url path to get back the file in CSV: GML_URL/{filename}
+ */
+ @RequestMapping(value="/gml/", method=RequestMethod.POST)
+ public void storeGMLFile(HttpServletRequest request, HttpServletResponse response) {
+ storeFile(new GMLDocService(this.docTempDir, this.connectionPool), GML_URL, request, response);
@pmauduit
pmauduit Jun 12, 2015 Member

Missing class GMLDocService

@fvanderbiest
fvanderbiest Jun 12, 2015 Member

True, should now be fixed.

@pmauduit pmauduit commented on an outdated diff Jun 12, 2015
...java/org/georchestra/mapfishapp/ws/DocController.java
@@ -142,6 +152,27 @@ public void getKMLFile(HttpServletRequest request, HttpServletResponse response)
getFile(new KMLDocService(this.docTempDir, this.connectionPool), request, response);
}
+ /*======================= GML =====================================================================*/
+ /**
+ * POST KML entry point. Store the body of the request POST (or file by upload) in a temporary file.
@pmauduit
pmauduit Jun 12, 2015 Member

s/kml/gml/ ;-)

@fvanderbiest
Member

FIXME:

  • check export against raster layers
  • missing imports
  • missing i18n
@fvanderbiest fvanderbiest mapfishapp - gml+kml export of results
79fbbf9
@fvanderbiest fvanderbiest merged commit b8829c8 into master Jul 9, 2015

0 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
continuous-integration/travis-ci/push The Travis CI build is in progress
Details
@fvanderbiest fvanderbiest deleted the geo_export branch Jul 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment