Chadi - >Hello,
>I am currently using the WPSextension for geoserver (2.10) and the python >script hooks in order to add my own processes. >I noticed that geoserver downloads 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 >? One way around this would be to declare the 'geom' input-parameter as a string, and then simply instantiate objects as-needed within Python. That way, the Java/WPS container will not try to do any downloading for you if you don't want it to, since it would just see a string, rather than a remote resource. Jython should allow you to import the GeoTIFF class from Java as you would a regular Python module so you can build it yourself as needed (e.g. `from org.postgresql import PGStatement` and `import java.sql.SQLException` work fine from Jython, despite those being Java packages rather than Python modules.) If that approach doesn't fit your requirements, I would recommend finding the handler-class that takes these requests and prepares to give them to Python, since it sounds like it happens before long before Python starts to do any work on the request. In either case, the could should reveal whether there are branches that skip downloads under certain conditions. If there aren't, you may need to create a subclass that has the behavior you want. - Patrick ------------------------------------------------------------------------------ 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
