I am using OpenLayers API in my web application and trying to interact with the local GeoServer via WPS. The problem I am facing is that, WPS client.execute()
works only in case, if the output of the Process is Geometry type (i.e. for
JTS:intersection,
JTS:buffer, etc
). It does not seem to work if the output is double/string/bool(i.e. for
JTS:area,
JTS:envelope,
JTS:equalsExact, etc
).
For e.g., the following code does not popup a "success
" message.
var geometry = OpenLayers.Geometry.fromWKT(
'POLYGON((110 20,120 20,120 10,110 10,110 20))'
);
client.execute({
server: "local",
//process: "JTS:envelope",
process: "JTS:geometryType",
inputs: {
geom: geometry
},
success: function(output) {
alert('success');
}
});
But if I happen to replace JTS:geometryType
with JTS:envelope
, it works !!..
Not much of tutorials are available on internet. Is it a restriction in client.execute()
or am I doing something wrong in the code ?