From f21678f55ba560fd50ea1e131ecd9703860ac274 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 3 Apr 2012 15:28:44 +0200 Subject: [PATCH] Addressing review comments from @bartvde and @marcjansen. --- examples/wps.html | 11 ++++++----- examples/wps.js | 13 +++++++++---- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/examples/wps.html b/examples/wps.html index 596f60e1f0..84567fff87 100644 --- a/examples/wps.html +++ b/examples/wps.html @@ -41,7 +41,7 @@

WPS Builder Example

- wps, process + wps, process, advanced
Using WPS formats to interact with WPS
@@ -49,13 +49,14 @@

This example shows WPS in action by using the WPSCapabilities, WPSDescribeProcess and WPSExecute formats. See - wps.js for the + wps.js for the source code.

    -
  1. Select a process from the list below. The list is populated - with the result of a WPS GetCapabilities request, parsed using - OpenLayers.Format.WPSCapabilities::read.
  2. +
  3. Select a process from the list below the map. The list is + populated with the result of a WPS GetCapabilities request, parsed + using OpenLayers.Format.WPSCapabilities::read.
  4. Fill out the Input form. Hover over fields to get a description. + Required fields are marked with a "*". To use a geometry from the map as input, select the geometry on the map (using the pen symbol on the left of the toolbar) and just click the field. The form is generated from the object returned by diff --git a/examples/wps.js b/examples/wps.js index 06991ea179..d82fce2b8a 100644 --- a/examples/wps.js +++ b/examples/wps.js @@ -21,7 +21,12 @@ var map = new OpenLayers.Map('map', { new OpenLayers.Control.ZoomPanel(), new OpenLayers.Control.PanPanel() ], - layers: [layer] + layers: [ + new OpenLayers.Layer.WMS( + "OSM", "http://maps.opengeo.org/geowebcache/service/wms", + {layers: "openstreetmap", format: "image/png"} + ), layer + ] }); map.zoomToMaxExtent(); @@ -33,7 +38,7 @@ function getCapabilities() { OpenLayers.Request.GET({ url: wps, params: { - "SERVICE": "wps", + "SERVICE": "WPS", "REQUEST": "GetCapabilities" }, success: function(response){ @@ -60,7 +65,7 @@ function describeProcess() { OpenLayers.Request.GET({ url: wps, params: { - "SERVICE": "wps", + "SERVICE": "WPS", "REQUEST": "DescribeProcess", "VERSION": capabilities.version, "IDENTIFIER": selection @@ -220,7 +225,7 @@ function addBoundingBoxInput(input) { var name = input.identifier; var field = document.createElement("input"); field.title = input["abstract"]; - field.value = "left,bottom,right,top"; + field.value = "left,bottom,right,top (EPSG:4326)"; document.getElementById("input").appendChild(field); addValueHandlers(field, function() { input.boundingBoxData = {