planetfederal / wps-gui

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

issue with AddCoverage #90

Closed bartvde closed 9 years ago

bartvde commented 9 years ago

The following request:

<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:AddCoverages</p1:Identifier><p0:DataInputs><p0:Input><p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">coverageA</p1:Identifier><p0:Reference p3:href="http://geoserver/wcs" xmlns:p3="http://www.w3.org/1999/xlink" method="POST" mimeType="image/tiff"><p0:Body><p2:GetCoverage xmlns:p2="http://www.opengis.net/wcs/1.1.1" service="WCS" version="1.1.1"><p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">GRAY_LR_SR</p1:Identifier><p2:DomainSubset><p1:BoundingBox xmlns:p1="http://www.opengis.net/ows/1.1" crs="http://www.opengis.net/gml/srs/epsg.xml#4326"><p1:LowerCorner>-180 -89.99999999998198</p1:LowerCorner><p1:UpperCorner>179.99999999996396 90</p1:UpperCorner></p1:BoundingBox></p2:DomainSubset><p2:Output format="image/tiff"/></p2:GetCoverage></p0:Body></p0:Reference></p0:Input><p0:Input><p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">coverageB</p1:Identifier><p0:Reference p3:href="http://geoserver/wcs" xmlns:p3="http://www.w3.org/1999/xlink" method="POST" mimeType="image/tiff"><p0:Body><p2:GetCoverage xmlns:p2="http://www.opengis.net/wcs/1.1.1" service="WCS" version="1.1.1"><p1:Identifier xmlns:p1="http://www.opengis.net/ows/1.1">NE1_HR_LC</p1:Identifier><p2:DomainSubset><p1:BoundingBox xmlns:p1="http://www.opengis.net/ows/1.1" crs="http://www.opengis.net/gml/srs/epsg.xml#4326"><p1:LowerCorner>-180 -90.000000000036</p1:LowerCorner><p1:UpperCorner>180.00000000007202 90.00000000000001</p1:UpperCorner></p1:BoundingBox></p2:DomainSubset><p2:Output format="image/tiff"/></p2:GetCoverage></p0:Body></p0:Reference></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>

results in:

<?xml version="1.0" encoding="UTF-8"?><wps:ExecuteResponse xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en" service="WPS" serviceInstance="http://sfmta.demo.opengeo.org:80/geoserver/ows?" version="1.0.0"><wps:Process wps:processVersion="1.0.0"><ows:Identifier>ras:AddCoverages</ows:Identifier><ows:Title>Add Coverages</ows:Title><ows:Abstract>Returns a raster generated by pixel-by-pixel addition of two source rasters.  Source rasters must have the same bounding box and resolution.</ows:Abstract></wps:Process><wps:Status creationTime="2014-09-29T16:37:41.197Z"><wps:ProcessFailed><ows:ExceptionReport version="1.1.0"><ows:Exception exceptionCode="NoApplicableCode"><ows:ExceptionText>Process failed during execution
coverageA and coverageB should share the same Envelope</ows:ExceptionText></ows:Exception></ows:ExceptionReport></wps:ProcessFailed></wps:Status></wps:ExecuteResponse>

If I check the envelopes with gdalinfo they are the same though.

Barts-MacBook-Air:wps-gui bartvandeneijnden$ /usr/local/opengeo/bin/gdalinfo ~/Downloads/NE1_HR_LC/NE1_HR_LC.tif
Driver: GTiff/GeoTIFF
Files: /Users/bartvandeneijnden/Downloads/NE1_HR_LC/NE1_HR_LC.tif
       /Users/bartvandeneijnden/Downloads/NE1_HR_LC/NE1_HR_LC.tfw
Size is 21600, 10800
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000014)
Pixel Size = (0.016666666666670,-0.016666666666670)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_DATETIME=2009:08:19 19:11:56
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  TIFFTAG_SOFTWARE=Adobe Photoshop CS3 Macintosh
  TIFFTAG_XRESOLUTION=72
  TIFFTAG_YRESOLUTION=72
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (-180.0000000,  90.0000000) 
Lower Left  (-180.0000000, -90.0000000) 
Upper Right ( 180.0000000,  90.0000000) 
Lower Right ( 180.0000000, -90.0000000) 
Center      (   0.0000000,  -0.0000000) 
Band 1 Block=21600x1 Type=Byte, ColorInterp=Red
Band 2 Block=21600x1 Type=Byte, ColorInterp=Green
Band 3 Block=21600x1 Type=Byte, ColorInterp=Blue
Barts-MacBook-Air:wps-gui bartvandeneijnden$ /usr/local/opengeo/bin/gdalinfo ~/Downloads/GRAY_LR_SR/GRAY_LR_SR.tif
Driver: GTiff/GeoTIFF
Files: /Users/bartvandeneijnden/Downloads/GRAY_LR_SR/GRAY_LR_SR.tif
       /Users/bartvandeneijnden/Downloads/GRAY_LR_SR/GRAY_LR_SR.tfw
Size is 16200, 8100
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.022222222222220,-0.022222222222220)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_DATETIME=2012:07:20 11:28:01
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  TIFFTAG_SOFTWARE=Adobe Photoshop CS5 Macintosh
  TIFFTAG_XRESOLUTION=72
  TIFFTAG_YRESOLUTION=72
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (-180.0000000,  90.0000000) 
Lower Left  (-180.0000000, -90.0000000) 
Upper Right ( 180.0000000,  90.0000000) 
Lower Right ( 180.0000000, -90.0000000) 
Center      (  -0.0000000,   0.0000000) 
Band 1 Block=16200x1 Type=Byte, ColorInterp=Gray

@dwins any ideas why this error is thrown?

bartvde commented 9 years ago

cc @sbalasub

dwins commented 9 years ago

@bartvde it seems that the Add operation requires not only a common envelope but a common resolution as well.

bartvde commented 9 years ago

ah okay that would explain it, thanks @dwins

bartvde commented 9 years ago

so not really an issue except for the text of the error message