Addressing review comments from @bartvde and @marcjansen.
This commit is contained in:
+6
-5
@@ -41,7 +41,7 @@
|
|||||||
<h1 id="title">WPS Builder Example</h1>
|
<h1 id="title">WPS Builder Example</h1>
|
||||||
|
|
||||||
<div id="tags">
|
<div id="tags">
|
||||||
wps, process
|
wps, process, advanced
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="shortdesc">Using WPS formats to interact with WPS</div>
|
<div id="shortdesc">Using WPS formats to interact with WPS</div>
|
||||||
@@ -49,13 +49,14 @@
|
|||||||
<div id="docs">
|
<div id="docs">
|
||||||
<p>This example shows WPS in action by using the WPSCapabilities,
|
<p>This example shows WPS in action by using the WPSCapabilities,
|
||||||
WPSDescribeProcess and WPSExecute formats. See
|
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>
|
source code.</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Select a process from the list below. The list is populated
|
<li>Select a process from the list below the map. The list is
|
||||||
with the result of a WPS GetCapabilities request, parsed using
|
populated with the result of a WPS GetCapabilities request, parsed
|
||||||
<code>OpenLayers.Format.WPSCapabilities::read</code>.</li>
|
using <code>OpenLayers.Format.WPSCapabilities::read</code>.</li>
|
||||||
<li>Fill out the Input form. Hover over fields to get a description.
|
<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
|
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
|
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
|
click the field. The form is generated from the object returned by
|
||||||
|
|||||||
+9
-4
@@ -21,7 +21,12 @@ var map = new OpenLayers.Map('map', {
|
|||||||
new OpenLayers.Control.ZoomPanel(),
|
new OpenLayers.Control.ZoomPanel(),
|
||||||
new OpenLayers.Control.PanPanel()
|
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();
|
map.zoomToMaxExtent();
|
||||||
|
|
||||||
@@ -33,7 +38,7 @@ function getCapabilities() {
|
|||||||
OpenLayers.Request.GET({
|
OpenLayers.Request.GET({
|
||||||
url: wps,
|
url: wps,
|
||||||
params: {
|
params: {
|
||||||
"SERVICE": "wps",
|
"SERVICE": "WPS",
|
||||||
"REQUEST": "GetCapabilities"
|
"REQUEST": "GetCapabilities"
|
||||||
},
|
},
|
||||||
success: function(response){
|
success: function(response){
|
||||||
@@ -60,7 +65,7 @@ function describeProcess() {
|
|||||||
OpenLayers.Request.GET({
|
OpenLayers.Request.GET({
|
||||||
url: wps,
|
url: wps,
|
||||||
params: {
|
params: {
|
||||||
"SERVICE": "wps",
|
"SERVICE": "WPS",
|
||||||
"REQUEST": "DescribeProcess",
|
"REQUEST": "DescribeProcess",
|
||||||
"VERSION": capabilities.version,
|
"VERSION": capabilities.version,
|
||||||
"IDENTIFIER": selection
|
"IDENTIFIER": selection
|
||||||
@@ -220,7 +225,7 @@ function addBoundingBoxInput(input) {
|
|||||||
var name = input.identifier;
|
var name = input.identifier;
|
||||||
var field = document.createElement("input");
|
var field = document.createElement("input");
|
||||||
field.title = input["abstract"];
|
field.title = input["abstract"];
|
||||||
field.value = "left,bottom,right,top";
|
field.value = "left,bottom,right,top (EPSG:4326)";
|
||||||
document.getElementById("input").appendChild(field);
|
document.getElementById("input").appendChild(field);
|
||||||
addValueHandlers(field, function() {
|
addValueHandlers(field, function() {
|
||||||
input.boundingBoxData = {
|
input.boundingBoxData = {
|
||||||
|
|||||||
Reference in New Issue
Block a user