Skip to main content
5 of 5
added 2 characters in body
Elen
  • 3
  • 2

GeoServer WPS service Raster Zonal Statistics does not give results when using text/csv format to define zone polygon

I am working with GeoServer 2.22 and I'm trying to use the gs:RasterZonalStatistics tool, through the WPS request builder that is provided in the "demos" in GeoServer. The tool runs fine when I use as input for the "zones - Zone polygon features for which to compute statistics" an shapefile.

My problem is that I want to use as input either JSON or preferably the text/csv option, and the output is empty. I have checked that my coordinates are in the same CRS as my raster and that the coordinates are given counterclockwise and that the polygon is closed.

When I use JSON, I format it as:

{"type": "Polygon", "coordinates": [[[92463.16443053566, 453115.6121168173],[91863.11388721458, 451418.7404136644],[93069.6374807694, 451221.9515308621],[93421.14967336296, 452890.0222223025], [92463.16443053566, 453115.6121168173]]]} 

When I use text/csv, I format it as:

FID,the_geom 1,POLYGON(((92463.16443053566 453115.6121168173,91863.11388721458 451418.7404136644,93069.6374807694 451221.9515308621,93421.14967336296 452890.0222223025, 92463.16443053566 453115.6121168173)) 
Elen
  • 3
  • 2