Hmmm... ok. What version of Geoserver and the scripting extension are you
running?
On Wed, Feb 6, 2013 at 5:50 PM, Bessette-Halsema, Dominique E <
dominique.besse...@gdit.com> wrote:
> It looks like this. It’s the same one as the example
> http://docs.geoserver.org/stable/en/user/community/scripting/hooks.html***
> *
>
> ** **
>
> from geoserver.wps import process****
>
> from geoscript.geom import Geometry****
>
> ** **
>
> @process(****
>
> title='Buffer',****
>
> description='Buffers a geometry',****
>
> inputs={'geom': (Geometry, 'The geometry to buffer'),****
>
> 'distance':(float,'The buffer distance')},****
>
> outputs={'result': (Geometry, 'The buffered geometry')}****
>
> )****
>
> def run(geom, distance):****
>
> return geom.buffer(distance)****
>
> ** **
>
> Thank You****
>
> Dom****
>
> ** **
>
> *From:* Justin Deoliveira [mailto:jdeol...@opengeo.org]
> *Sent:* Monday, February 04, 2013 8:06 AM
> *To:* Bessette-Halsema, Dominique E
> *Cc:* geoserver-users@lists.sourceforge.net
> *Subject:* Re: [Geoserver-users] python scripting hook****
>
> ** **
>
> Hmmm... any chance you can make the script available, I can take a closer
> look. ****
>
> ** **
>
> On Fri, Feb 1, 2013 at 8:49 AM, Bessette-Halsema, Dominique E <
> dominique.besse...@gdit.com> wrote:****
>
> Hi ****
>
> ****
>
> I’m having trouble installing the python scripting hook. I unzip the
> contents of geoserver-2.2-SNAPSHOT-python-plugin.zip into my
> geoserver-2.2/WEB-INF/lib file. In my GEOSERVER_DATA_DIR is see a
> scripts/lib and scripts/function directory. I created a scripts/wps
> directory and made the buffer.py example from
> http://docs.geoserver.org/stable/en/user/community/scripting/hooks.html **
> **
>
> ****
>
> When I go into the WPS request builder and try to run the buffer.py script
> I see the following error in geoserver.****
>
> ****
>
> 15:46:38,593 ERROR [org.apache.wicket.RequestCycle] (http--0.0.0.0-8080-1)
> java.io.IOException: javax.script.ScriptException: ImportError: No module
> named types in /gis/geoserver/external/scripts/wps/demo.py at line number
> 1: java.lang.RuntimeException: java.io.IOException:
> javax.script.ScriptException: ImportError: No module named types in
> /gis/geoserver/external/scripts/wps/demo.py at line number 1****
>
> ****
>
> Line number 1 is ****
>
> ****
>
> from geoserver.wps import process****
>
> ****
>
> what am I missing?****
>
> ****
>
> Thank you****
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users****
>
>
>
> ****
>
> ** **
>
> --
> Justin Deoliveira****
>
> OpenGeo - http://opengeo.org****
>
> Enterprise support for open source geospatial.****
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users