planetfederal / wps-gui

Graphical User Interface (Model Builder) for OGC:WPS (Web Processing Services)
http://boundlessgeo.com
Apache License 2.0
27 stars 15 forks source link

Area Grid does not produce the correct tiff file #99

Closed sbalasub closed 10 years ago

sbalasub commented 10 years ago

Running the Area Grid raster process, I get a tiff file as the output but it is either white or sometime a black patch.

sbalasub commented 10 years ago

on local installation, seeing this error on the response:

ows:ExceptionTextorg.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not - (position: START_DOCUMENT seen -... @1:1) only whitespace content allowed before start tag and not - (position: START_DOCUMENT seen -... @1:1) /ows:ExceptionText /ows:Exception /ows:ExceptionReport Also getting this same error for several other raster processes : Band Select, crop coverage
sbalasub commented 10 years ago

cannot reproduce in sfmta.

bartvde commented 10 years ago

hey @sbalasub can you explain why this was reopened, that will help me look

sbalasub commented 10 years ago

@bartvde, the tiff file produced doesn't seem to be correct. wanted to make sure this is working as expected.

bartvde commented 10 years ago

have you verified the request XML is what you expect it to be?

If so, please assign to @dwins and set label to geoserver

sbalasub commented 10 years ago

This is the request:

ras:AreaGrid/p1:Identifierp0:DataInputsp0:Inputenvelope/p1:Identifierp0:Data-4.804006222809484 10.726743913143103/p1:LowerCorner6.006540652190516 14.857603288143103/p1:UpperCorner/p0:BoundingBoxData/p0:Data/p0:Inputp0:Inputwidth/p1:Identifierp0:Datap0:LiteralData10/p0:LiteralData/p0:Data/p0:Inputp0:Inputheight/p1:Identifierp0:Datap0:LiteralData20/p0:LiteralData/p0:Data/p0:Input/p0:DataInputsp0:ResponseFormp0:RawDataOutputresult/p1:Identifier/p0:RawDataOutput/p0:ResponseForm/p0:Execute The result tiff file I get looks like this ![image](https://cloud.githubusercontent.com/assets/5851378/4506362/ef6b1e2c-4b01-11e4-922a-9d5c87b21396.png) I entered this same data in demo and getting the same result but also another window which says loading and been loading for a very long time.
bartvde commented 10 years ago

@sbalasub it's better to put triple single quotes around the request so we can see the actual XML (<xml>)

sbalasub commented 10 years ago

<p0:Execute xmlns:p0="http://www.opengis.net/wps/1.0.0" service="WPS" version="1.0.0"><p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">ras:AreaGrid</p1:Identifier><p0:DataInputs><p0:Input><p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">envelope</p1:Identifier><p0:Data><p0:BoundingBoxData crs="EPSG:4326"><p1:LowerCorner xmlns:p1="http://www.opengis.net/ows/1.1">-4.804006222809484 10.726743913143103</p1:LowerCorner><p1:UpperCorner xmlns:p1="http://www.opengis.net/ows/1.1">6.006540652190516 14.857603288143103</p1:UpperCorner></p0:BoundingBoxData></p0:Data></p0:Input><p0:Input><p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">width</p1:Identifier><p0:Data><p0:LiteralData>10</p0:LiteralData></p0:Data></p0:Input><p0:Input><p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">height</p1:Identifier><p0:Data><p0:LiteralData>20</p0:LiteralData></p0:Data></p0:Input></p0:DataInputs><p0:ResponseForm><p0:RawDataOutput><p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">result</p1:Identifier></p0:RawDataOutput></p0:ResponseForm></p0:Execute>

bartvde commented 10 years ago

@sbalasub I asked Victor about this can you try with:

the layer has to cover a larger area to see the values differences, and she's requesting a tiny result 20x20 just try a 1000x1000 result and set the bounding box to most of the earth extent you will get a result that makes sense

sbalasub commented 10 years ago

Able to view the tiff file fine in QGIS.