[Geoserver-devel] About scripting in geoserver

2016-08-05 Thread Jorge Infante
Hi to all. I did resolve (after a lot of research), my first problem: I can get from geoserver, in a wps jython process, the layer's catalog authorized to me. The little program: from geoserver.wps import process from geoscript.geom import Geometry from geoserver.catalog import Catalog, Workspace,

Re: [Geoserver-devel] About scripting in geoserver

2016-07-07 Thread Jorge Infante
I'm seeing my problem is: * The caller is putting user and password. * The wps python script is running in anonymous mode. * What is the method to init the session on geoserver (from wps python script) with the user and password received? TIA jorge infante 2016-07-05 17:40 GMT-03:00 Jorge Infante

Re: [Geoserver-devel] About scripting in geoserver

2016-07-05 Thread Jorge Infante
Is not working. I did try with --user and --http-user, and, I'm receiving: --2016-07-05 17:38:12-- http://localhost:8080/geoserver/wps?service=WPS&version=1.0.0&request=E xecute&identifier=py:sample1&datainputs=param1=xx;param2=xx Resolving localhost (localhost)... ::1, 127.0.0.1 Connecting to loc

Re: [Geoserver-devel] About scripting in geoserver

2016-07-05 Thread Ian Turton
You need to provide the --user & --password options to WGET or if you use curl the option is -u username:passwd Ian On 5 July 2016 at 12:16, Jorge Infante wrote: > Hi! > I'm trying to execute my wps script, using wget (to test), but, I need > "login to geoserver" (like "Authenticate (will run t

Re: [Geoserver-devel] About scripting in geoserver

2016-07-05 Thread Jorge Infante
Hi! I'm trying to execute my wps script, using wget (to test), but, I need "login to geoserver" (like "Authenticate (will run the request as anonymous otherwise" checkbox on "WPS request builder"). What is the method to do it? I'm using the sentence: wget " http://localhost:8080/geoserver/wps?serv

Re: [Geoserver-devel] About scripting in geoserver

2016-06-29 Thread Jorge Infante
Ok. I did resolve it: from geoserver.wps import process #from geoscript.geom import Geometry from StringIO import StringIO @process( title='Sample', description='Sample', inputs={'arg1': (int, 'first argument'), 'arg2': (int, 'second argument')}, outputs={'result': (str, 'The bu

Re: [Geoserver-devel] About scripting in geoserver

2016-06-29 Thread Jorge Infante
Ok, Justin. I'm trying to use wps to implement my service. I did try a basic "hello world" sample. My sample try to return a string with "hello world": #more scripts/wps/sample.py from geoserver.wps import process from StringIO import StringIO @process( title='Sample', description='Sample',

Re: [Geoserver-devel] About scripting in geoserver

2016-06-02 Thread Justin Deoliveira
Hi Jorge, The docs you are looking at are for the old “python” extension that pre-dates the “script” extension. You should follow the documentation located here: http://docs.geoserver.org/stable/en/user/community/scripting/index.html In particular if you are looking to hook into wps you can fi

[Geoserver-devel] About scripting in geoserver

2016-06-02 Thread Jorge Infante
Hi. I'm using geoserver 2.8.1, builded from sources, and on runtime format. I'm trying to run python code to do customs, in geoserver. I did install the wps extension, create the data_dir/scripts/wps directory, and put my sample.py on it. I'm not getting type py:sample on the demo/wps request bui