[Geoserver-devel] [JIRA] (GEOS-10530) ras:RasterZonalStatistics (WPS) failing

Davy Jones created an issue

GeoServer / BugGEOS-10530

ras:RasterZonalStatistics (WPS) failing

Issue Type:

BugBug

Affects Versions:

2.20.4

Assignee:

Unassigned

Components:

WPS

Created:

05/Jun/22 11:29 PM

Environment:

Ubuntu 20, ram 8gb local system

Priority:

HighestHighest

Reporter:

Davy Jones

Hi Guys

not sure this is a bug or mistake from my end

I’m a college student and new GIS
trying to build a web application
I’m almost near to my goal, except that I want max, min and avg value present with in a polygon inside raster data.
but getting below exception

Please let me know if I went wrong

Thanks

Request

curl -u admin:geoserver -H ‘Content-type: xml’ -XPOST -d@‘req.xml’ http://localhost:8080/geoserver/wps

input

<?xml version="1.0" encoding="UTF-8"?><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 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
ows:Identifierras:RasterZonalStatistics</ows:Identifier>
wps:DataInputs
wps:Input
ows:Identifierdata</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
wps:Body
<wcs:GetCoverage service="WCS" version="1.1.1">
ows:IdentifierCOG:test</ows:Identifier>
wcs:DomainSubset
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#4326">
ows:LowerCorner-99.01972656250078 23.84564988765935</ows:LowerCorner>
ows:UpperCorner-98.91972656250078 23.94564988765935</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
wps:Input
ows:Identifierzones</ows:Identifier>
wps:Data
<wps:ComplexData mimeType="application/json"><![CDATA[{"type":"Polygon","coordinates":[
[
[
-98.77116828334096,
25.285783476021
],
[
-98.76800711886617,
25.288453505904506
],
[
-98.76715612186572,
25.286032301541933
],
[
-98.76841602614023,
25.283338092197052
],
[
-98.77162006200044,
25.282733262691647
],
[
-98.77372701910794,
25.28328295959541
],
[
-98.77552015767421,
25.28481792667873
],
[
-98.77486036705271,
25.28724187480997
],
[
-98.77414432917355,
25.288814911683534
],
[
-98.77312107494652,
25.290080046267068
],
[
-98.7716769094575,
25.2897337312157
],
[
-98.77088378882736,
25.286544185883763
],
[
-98.77116828334096,
25.285783476021
]
]
]}]]></wps:ComplexData>
</wps:Data>
</wps:Input>
wps:Input
ows:Identifierclassification</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
wps:Body
<wcs:GetCoverage service="WCS" version="1.1.1">
ows:IdentifierCOG:test</ows:Identifier>
wcs:DomainSubset
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#4326">
ows:LowerCorner-99.01972656250078 23.84564988765935</ows:LowerCorner>
ows:UpperCorner-98.91972656250078 23.94564988765935</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
wps:ResponseForm
<wps:RawDataOutput mimeType="application/json">
ows:Identifierstatistics</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>

error

<?xml version="1.0" encoding="UTF-8"?><wps:ExecuteResponse xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en" service="WPS" serviceInstance="http://localhost:8080/geoserver/ows?" version="1.0.0"><wps:Process wps:processVersion="1.0.0">ows:Identifierras:RasterZonalStatistics</ows:Identifier>ows:TitleRaster Zonal Statistics</ows:Title>ows:AbstractComputes statistics for the distribution of a certain quantity in a set of polygonal zones.</ows:Abstract></wps:Process><wps:Status creationTime="2022-06-05T21:12:49.898Z">wps:ProcessFailed<ows:ExceptionReport version="1.1.0"><ows:Exception exceptionCode="NoApplicableCode">ows:ExceptionTextFailed to retrieve value for input data
org.geotools.coverage.grid.InvalidGridGeometryException: Unspecified image's size.
Unspecified image's size.</ows:ExceptionText></ows:Exception></ows:ExceptionReport></wps:ProcessFailed></wps:Status></wps:ExecuteResponse>

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100200-sha1:2895363)

Atlassian logo