Addressing review comments from @bartvde and @marcjansen.

This commit is contained in:
ahocevar
2012-04-03 15:28:44 +02:00
parent 3385c2b5b1
commit f21678f55b
2 changed files with 15 additions and 9 deletions

View File

@@ -41,7 +41,7 @@
<h1 id="title">WPS Builder Example</h1>
<div id="tags">
wps, process
wps, process, advanced
</div>
<div id="shortdesc">Using WPS formats to interact with WPS</div>
@@ -49,13 +49,14 @@
<div id="docs">
<p>This example shows WPS in action by using the WPSCapabilities,
WPSDescribeProcess and WPSExecute formats. See
<a target="_blank" href="bing-tiles.js">wps.js</a> for the
<a target="_blank" href="wps.js">wps.js</a> for the
source code.</p>
<ol>
<li>Select a process from the list below. The list is populated
with the result of a WPS GetCapabilities request, parsed using
<code>OpenLayers.Format.WPSCapabilities::read</code>.</li>
<li>Select a process from the list below the map. The list is
populated with the result of a WPS GetCapabilities request, parsed
using <code>OpenLayers.Format.WPSCapabilities::read</code>.</li>
<li>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

View File

@@ -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 = {