Hello,

I am currently using the WPSextension for geoserver (2.10) and the python 
script hooks in order to add my own processes. After adding this simple process:


from geoserver.wps import process
from geoscript.layer import GeoTIFF


@process(
    inputs={'geom': (GeoTIFF, 'The geometry to buffer')},
    outputs={'result': (str, 'The buffered geometry')},
    title='Buffer',
    description='Buffers a geometry'
)
def run(geom):
    s = str(geom.getsize())
    return s;


and the following wps execute request:

<?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:Identifier>Chadi:buffer</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>geom</ows:Identifier>
      <wps:Reference mimeType="image/tiff" 
xlink:href="http://download.osgeo.org/geotiff/samples/misc/tjpeg.tif"; 
method="GET"/>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput>
      <ows:Identifier>result</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>


I noticed that geoserver download the image before giving a handle on the 
"geom" object in the python script.

 is it possible to disable this feature and to have only the URL reference 
passed to the script hook ?

If no, is it possible to download locally the file before executing the script ?


Thanks in advance,

Chadi
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to