I am trying to execute a buffer operation using geoserver 2.8.3, but i'd rather use json than GML to send this request. Is it possible to perform an Execute operation this way?
The describe process request contains this little snippet for data input
<Input maxOccurs="1" minOccurs="1">
<ows:Identifier>geom</ows:Identifier>
<ows:Title>geom</ows:Title>
<ows:Abstract>Input geometry</ows:Abstract>
<ComplexData>
<Default>
<Format>
<MimeType>text/xml; subtype=gml/3.1.1</MimeType>
</Format>
</Default>
<Supported>
<Format>
<MimeType>text/xml; subtype=gml/3.1.1</MimeType>
</Format>
<Format>
<MimeType>text/xml; subtype=gml/2.1.2</MimeType>
</Format>
<Format>
<MimeType>application/wkt</MimeType>
</Format>
<Format>
<MimeType>application/json</MimeType>
</Format>
<Format>
<MimeType>application/gml-3.1.1</MimeType>
</Format>
<Format>
<MimeType>application/gml-2.1.2</MimeType>
</Format>
</Supported>
</ComplexData>
</Input>
which gives me some hope that a full json request might be possible but it currently doesn't work when i try it, and i can't seem to find any working examples out there.
The json data i used unsuccessfully is
{
"wps:Execute": {
"-version": "1.0.0",
"-service": "WPS",
"-xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
"-xmlns": "http://www.opengis.net/wps/1.0.0",
"-xmlns:wfs": "http://www.opengis.net/wfs",
"-xmlns:wps": "http://www.opengis.net/wps/1.0.0",
"-xmlns:ows": "http://www.opengis.net/ows/1.1",
"-xmlns:gml": "http://www.opengis.net/gml",
"-xmlns:ogc": "http://www.opengis.net/ogc",
"-xmlns:wcs": "http://www.opengis.net/wcs/1.1.1",
"-xmlns:xlink": "http://www.w3.org/1999/xlink",
"-xsi:schemaLocation": "http://www.opengis.net/wps/1.0.0 ../../xsd/wpsAll.xsd",
"ows:Identifier": "JTS:buffer",
"wps:DataInputs": {
"wps:Input": [
{
"ows:Identifier": "geom",
"wps:Data": {
"wps:ComplexData": {
"-mimeType": "text/xml; subtype=gml/3.1.1",
"#cdata-section": "POINT(-9128198.245048434 5311971.846945471)"
}
}
},
{
"ows:Identifier": "distance",
"wps:Data": { "wps:LiteralData": "1000" }
},
{
"ows:Identifier": "quadrantSegments",
"wps:Data": { "wps:LiteralData": "0" }
},
{
"ows:Identifier": "capStyle",
"wps:Data": { "wps:LiteralData": "flat" }
}
]
},
"wps:ResponseForm": {
"wps:RawDataOutput": {
"-mimeType": "text/xml; subtype=gml/3.1.1",
"ows:Identifier": "result"
}
}
}
}