[Geoserver-users] WMS and Geoserver 2.2.5 - Get Capabilities error?

2013-03-28 Thread charlie
Im new to Geoserver and have been trying to add layers through a WMS.

I have tried both the following National Atlas Get Capabilities URL's that 
resolve fine in a browser.


http://webservices.nationalatlas.gov/wms/water?SERVICE=WMS&REQUEST=GetCapabilities
and
http://webservices.nationalatlas.gov/wms/water?request=GetCapabilities&service=WMS&version=1.3

However when added as a store in Geoserver, I get a "Connection test failed: 
Error while parsing XML." error when attempting to save.

Can anyone assist?

Thanks!


The logs are as follows:

rg.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:427)
    org.geotools.data.wms.WebMapServer.issueRequest(WebMapServer.java:419)
    
org.geotools.data.ows.AbstractOpenWebService.negotiateVersion(AbstractOpenWebService.java:260)
    
org.geotools.data.ows.AbstractOpenWebService.(AbstractOpenWebService.java:110)
    org.geotools.data.wms.WebMapServer.(WebMapServer.java:382)
    
org.geoserver.web.data.store.WMSStoreNewPage$WMSCapabilitiesURLValidator.onValidate(WMSStoreNewPage.java:94)
    
org.apache.wicket.validation.validator.AbstractValidator.validate(AbstractValidator.java:81)
    
org.apache.wicket.markup.html.form.FormComponent.validateValidators(FormComponent.java:1612)
    
org.apache.wicket.markup.html.form.FormComponent.validate(FormComponent.java:1201)
    org.apache.wicket.markup.html.form.Form$23.validate(Form.java:2161)
    
org.apache.wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java:173)
    
org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:441)
    
org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:428)
    
org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:428)
    
org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:428)
    
org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrder(FormComponent.java:400)
    
org.apache.wicket.markup.html.form.Form.visitFormComponentsPostOrder(Form.java:1233)
    org.apache.wicket.markup.html.form.Form.validateComponents(Form.java:2153)
    org.apache.wicket.markup.html.form.Form.validate(Form.java:2133)
    org.apache.wicket.markup.html.form.Form.process(Form.java:1005)
    org.apache.wicket.markup.html.form.Form.process(Form.java:955)
    org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:920)
    
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135)
    org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
    
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300)
    
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
    
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
    
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
    org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
    org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
    org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
    org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484)
    org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    
org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159)
    
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
    
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
    
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:23)
    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    
org.geoserver.filters.Sp

[Geoserver-users] Securing data from external registered users - Add Store allows viewing of data_directory and more.

2013-03-28 Thread Richard (Abe) Coughlin
I've set up REST so they can upload data. I've given them permissions on 
the workspaces. All works well. But I have one major concern: none of 
these users will want the other users seeing, accessing or even knowing 
what data they have in their workspaces. When adding a store the 
Connection Parameters URL 'Browse' option allows complete viewing of the 
data_directory, home directory and drives and data in these other 
directories can be uploaded.


I can 'hide' all the folders in these directories so users can't access 
them but is there a tidier way to remove the 'browse' option completely. 
As I'm getting my users to cURL via REST I'd be happy to deactivate the 
'Add Store' just as the 'Add Workspace' option is.


I've seen others curious in allowing external users access/control. I 
hope that I've identified something useful to the community.


[Windows 2008 Srvr / Java 1.7.0_09-b05 64bit / GS 2.2-SNAPSHOT (in 
OpenGeo 3.0.2) (Same issue occurs with separate GS2.2.2)]

--


 Richard "Abe" Coughlin

SPATIAL DATA & APPLICATIONS SPECIALIST
*Pacific Islands Ocean Observing System*
*University of Hawaii 1-808-956-0822 *
www.pacioos.org 
--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Looks a regression with WFS -- or it supposed to work this way?

2013-03-28 Thread Rahkonen Jukka
Hi,

Geoserver should still return data even if geometry is mandatory in the schema 
but it is not listed in the request. From WFS 1.1.0 standard:

"The response to a GetFeature request must be valid according to the structure 
described by the XML Schema description of the feature type. Thus the WFS must 
report all the mandatory properties of each feature, as well any properties 
requested through the  element. In the event that a WFS 
encounters a query that does not select all mandatory properties of a feature, 
the WFS will internally augment the property name list to include all mandatory 
property names. A WFS client must thus be prepared to deal with a situation 
where it receives more property values than it requests through 
 elements."

-Jukka Rahkonen-



Andrea Aime wrote:


On Thu, Mar 28, 2013 at 2:56 AM, Phil Scadden 
mailto:p.scad...@gns.cri.nz>> wrote:
In moving from 2.1.3 to 2.2.5, we have noticed a change in behaviour
with WFS.

What I want: I want to make spatial query against a layer but I only
want selected attributes returned. I specifically do not want geometry
returned because the node count on the geometry can be very large.

Look at the describe feature type result. Is the geometry field described as 
mandatory,
min occurrences = 1?
If so, the output is the expected one, you cannot select away fields that are 
supposed
to be mandatory in the schema.

GeoServer gets the mandatory/non mandatory from your data source, e.g., if it
is a database all non nullable fields are considered mandatory.
This can be manually overridden creating a custom schema file, see here:
http://docs.geoserver.org/stable/en/user/services/wfs/schemamapping.html

Cheers
Andrea

--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more 
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---

--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Python WPS scripting broken in Geoserver 2.3.x

2013-03-28 Thread Tom van Tilburg

I think you're right, it should be the jar.

The jar is there however, and I can see it contains the 
SimpleProcessingCollection method.

I'm a bit stuck on the options, except for going back to 2.2

Regards,
 Tom


On 28-3-2013 16:48, Bessette-Halsema, Dominique E wrote:


Yes we used the plugin with geoserver 2.2.4 and we did not overwrite 
the original jars.  Our error was due to the jython jar delivered with 
the geoserver python plugin was based on Java5 and we are using Java7. 
 Maybe yours is a geotools jar missing/mismatch issue??  The jar 
containing 
org/geotools/process/feature/gs/SimpleProcessingCollectionis the 
gt-process-feature.jar


Dom

*From:*Tom van Tilburg [mailto:tom.van.tilb...@gmail.com]
*Sent:* Thursday, March 28, 2013 3:52 AM
*To:* Bessette-Halsema, Dominique E
*Cc:* geoserver-users@lists.sourceforge.net
*Subject:* Re: [Geoserver-users] Python WPS scripting broken in 
Geoserver 2.3.x


Hi Dominique,

Thanks for this information.
I assume you also have the WPS plugin installed? And did you let the 
WPS plugin overwrite original JAR files? (I did not)


I tried your solution following the steps (using geoserver 2.3.0 
instead) and replacing jython but curiously I ended up having the 
error you described yourself:


java.lang.RuntimeException:

java.io.IOException: javax.script.ScriptException: ImportError:

No module named types in

/var/data/tomcat7/webapps/geoserver/data/scripts/wps/mybuffer.py

at line number 1 at

org.geoserver.script.wps.ScriptProcessFactory.getDescription(ScriptProcessFactory.java:112)

at

org.geoserver.wps.web.WPSRequestBuilderPanel.initProcessView(WPSRequestBuilderPanel.java:250)

at

org.geoserver.wps.web.WPSRequestBuilderPanel.access$000(WPSRequestBuilderPanel.java:63)

at

org.geoserver.wps.web.WPSRequestBuilderPanel$5.onUpdate(WPSRequestBuilderPanel.java:225)





Seems it is really a 2.3 problem with jython?
(For the record: I also tried nightly war files with the plugins.)

Regards,
 Tom


On 27-3-2013 16:51, Bessette-Halsema, Dominique E wrote:

Hi Tom

We were having problems with the python scripting hook too. It
turned out to be jar compatibility.  I'm not sure if it's the same
problem but here's our error and how we solved it.

Error:

Caused by: java.io.IOException: javax.script.ScriptException:
ImportError: No module named types in
/h/data/gis/geoserver/external/scripts/wps/buffer.py at line number 1


Solution:

Install geoserver pyhton and javascript scripting hooks

2) download geoserver python and javascript scripting extensions 
from http://gridlock.opengeo.org/geoserver/2.2.x/community-latest/


3) copy both zip files into directory /geoserver.war/WEB-INF/lib

4) extract both zip files (if prompted to replace, select 'N')

5) in WEB-INF/lib, delete jython-2.5.2.jar

6) access jython download page
(http://www.jython.org/downloads.html). Download jython 2.7b1
standalone

7) cp jython-standalone-2.7-b1.jar /geoserver.war/WEB-INF/lib

8) deploy geoserver

9) create scripting hooks

cd 

cd scripts/wps

create buffer.py (code found at
http://docs.geoserver.org/latest/en/user/community/scripting/hooks.html)

10) test python hook

*From:*Tom van Tilburg [mailto:tom.van.tilb...@gmail.com]
*Sent:* Wednesday, March 27, 2013 8:02 AM
*To:* geoserver-users@lists.sourceforge.net

*Subject:* Re: [Geoserver-users] Python WPS scripting broken in
Geoserver 2.3.x

I just installed SUN JAVA 1.6 JRE, but the problem persists.
Here's a snippet from the error log:

2013-03-27 15:53:58,962 WARN [imagemosaic.ImageMosaicFormat] -
java.lang.RuntimeException: java.io.IOException:
javax.script.ScriptException: java.lang.NoClassDefFoundError:
java.lang.NoClassDefFoundError:
org/geotools/process/feature/gs/SimpleProcessingCollection in
/var/data/tomcat7/webapps/geoserver/data/scripts/wps/mybuffer.py
at line number 1
org.geotools.data.DataSourceException: java.lang.RuntimeException:
java.io.IOException: javax.script.ScriptException:
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError:
org/geotools/process/feature/gs/SimpleProcessingCollection in
/var/data/tomcat7/webapps/geoserver/data/scripts/wps/mybuffer.py
at line number 1

Line 1 in mybuffer.py reads:
from geoserver.wps import process

Java info:
Sun Microsystems Inc.: 1.6.0_43 (Java HotSpot(TM) 64-Bit Server VM)
(using Tomcat7)

As far as I understand the imagemosaic has nothing to do with
this, the exception shows up a couple of times at different points
in the startup of geoserver on Tomcat7.

Chrs,
 Tom

On 27-3-2013 15:11, Rahkonen Jukka wrote:

Hi,

It is for sure good to test with OpenJDK and Oracle 1.7 JDK,
but Geoserver has some known issues wi

Re: [Geoserver-users] Python WPS scripting broken in Geoserver 2.3.x

2013-03-28 Thread arahav
Tom,

Looks like org.geotools.process.feature.gs in GeoTools 8 was replaced with
org.geotools.process.vector in GeoTools 9.
Try copying gt-process-feature-8-SNAPSHOT.jar from Geoserver 2.2.x to your
Geoserver 2.3 installation. The WPS example should now work.

Ami.




--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Python-WPS-scripting-broken-in-Geoserver-2-3-x-tp5043036p5043574.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GeoServer Printing Module

2013-03-28 Thread Jim White

Hi Jonathan,

I added 2 lines to my print function:

printCapabilities.createURL = 
"http://test.zo.ncsu.edu/geoserver/pdf/create.json";;
printCapabilities.printURL = 
"http://test.zo.ncsu.edu/geoserver/pdf/print.pdf";;


This fixed my problem. Now I just have to figure out config.yaml. Have 
you tried to print at higher than 300 dpi?


Thanks,
Jim



On 03/28/2013 06:14 AM, Jonathan Moules wrote:

Hi Jim,
It should just be a matter of setting the URL in your web-app. In mine 
which is using GeoExt, I just set it to:

http://wppgeog3:8083/print/pdf
and make sure that URL is in my proxy and it works (its on a different 
machine, so no chance of localhost being used).


Jonathan


On 27 March 2013 19:16, Jim White > wrote:


Hi,

I have installed the printing module, and have it sort of working
from localhost, however when I try to access it from another IP I
am redirected to

http://127.0.0.1:8080/geoserver/pdf/print.pdf

It looks like this has to do with printURL, and createURL in
info.json. I use mod_proxy to access geoserver running on 8080.
How do I set up my server to return the correct url and print from
a computer other than localhost?

Thanks,
Jim

-- 
James B. White

Cary, NC
H: 919-380-9615
M: 919-698-1765
White Coding and Maps 


--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
 ___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geoserver-users




This transmission is intended for the named addressee(s) only and may 
contain sensitive or protectively marked material up to RESTRICTED and 
should be handled accordingly. Unless you are the named addressee (or 
authorised to receive it for the addressee) you may not copy or use 
it, or disclose it to anyone else. If you have received this 
transmission in error please notify the sender immediately. All email 
traffic sent to or from us, including without limitation all GCSX 
traffic, may be subject to recording and/or monitoring in accordance 
with relevant legislation.



--
James B. White
Cary, NC
H: 919-380-9615
M: 919-698-1765
White Coding and Maps 
--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Python WPS scripting broken in Geoserver 2.3.x

2013-03-28 Thread Bessette-Halsema, Dominique E
Yes we used the plugin with geoserver 2.2.4 and we did not overwrite the 
original jars.  Our error was due to the jython jar delivered with the 
geoserver python plugin was based on Java5 and we are using Java7.  Maybe yours 
is a geotools jar missing/mismatch issue??  The jar containing 
org/geotools/process/feature/gs/SimpleProcessingCollection is the 
gt-process-feature.jar



Dom





From: Tom van Tilburg [mailto:tom.van.tilb...@gmail.com]
Sent: Thursday, March 28, 2013 3:52 AM
To: Bessette-Halsema, Dominique E
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Python WPS scripting broken in Geoserver 2.3.x



Hi Dominique,

Thanks for this information.
I assume you also have the WPS plugin installed? And did you let the WPS plugin 
overwrite original JAR files? (I did not)

I tried your solution following the steps (using geoserver 2.3.0 instead) and 
replacing jython but curiously I ended up having the error you described 
yourself:

java.lang.RuntimeException:

java.io.IOException: javax.script.ScriptException: ImportError:

No module named types in

/var/data/tomcat7/webapps/geoserver/data/scripts/wps/mybuffer.py

at line number 1 at


org.geoserver.script.wps.ScriptProcessFactory.getDescription(ScriptProcessFactory.java:112)



at


org.geoserver.wps.web.WPSRequestBuilderPanel.initProcessView(WPSRequestBuilderPanel.java:250)



at


org.geoserver.wps.web.WPSRequestBuilderPanel.access$000(WPSRequestBuilderPanel.java:63)



at

org.geoserver.wps.web.WPSRequestBuilderPanel$5.onUpdate(WPSRequestBuilderPanel.java:225)











  Seems it is really a 2.3 problem with jython?
(For the record: I also tried nightly war files with the plugins.)

Regards,
 Tom


On 27-3-2013 16:51, Bessette-Halsema, Dominique E wrote:

   Hi Tom



   We were having problems with the python scripting hook too.  It turned out 
to be jar compatibility.  I'm not sure if it's the same problem but here's our 
error and how we solved it.



   Error:

   Caused by: java.io.IOException: javax.script.ScriptException: ImportError: 
No module named types in /h/data/gis/geoserver/external/scripts/wps/buffer.py 
at line number 1




   Solution:



   Install geoserver pyhton and javascript scripting hooks





   http://gridlock.opengeo.org/geoserver/2.2.x/community-latest/



   3) copy both zip files into directory /geoserver.war/WEB-INF/lib



   4) extract both zip files (if prompted to replace, select 'N')



   5) in WEB-INF/lib, delete jython-2.5.2.jar



   6) access jython download page (http://www.jython.org/downloads.html). 
Download jython 2.7b1 standalone



   7) cp jython-standalone-2.7-b1.jar /geoserver.war/WEB-INF/lib





   8) deploy geoserver



   9) create scripting hooks

  cd 



  cd scripts/wps



  create buffer.py (code found at 
http://docs.geoserver.org/latest/en/user/community/scripting/hooks.html)







   10) test python hook









   From: Tom van Tilburg [mailto:tom.van.tilb...@gmail.com]
   Sent: Wednesday, March 27, 2013 8:02 AM
   To: 
geoserver-users@lists.sourceforge.net
   Subject: Re: [Geoserver-users] Python WPS scripting broken in Geoserver 2.3.x



   I just installed SUN JAVA 1.6 JRE, but the problem persists. Here's a 
snippet from the error log:

   2013-03-27 15:53:58,962 WARN [imagemosaic.ImageMosaicFormat] - 
java.lang.RuntimeException: java.io.IOException: javax.script.ScriptException: 
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: 
org/geotools/process/feature/gs/SimpleProcessingCollection in 
/var/data/tomcat7/webapps/geoserver/data/scripts/wps/mybuffer.py at line number 
1
   org.geotools.data.DataSourceException: java.lang.RuntimeException: 
java.io.IOException: javax.script.ScriptException: 
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: 
org/geotools/process/feature/gs/SimpleProcessingCollection in 
/var/data/tomcat7/webapps/geoserver/data/scripts/wps/mybuffer.py at line number 
1

   Line 1 in mybuffer.py reads:
   from geoserver.wps import process

   Java info:
   Sun Microsystems Inc.: 1.6.0_43 (Java HotSpot(TM) 64-Bit Server VM)
   (using Tomcat7)

   As far as I understand the imagemosaic has nothing to do with this, the 
exception shows up a couple of times at different points in the startup of 
geoserver on Tomcat7.

   Chrs,
Tom

   On 27-3-2013 15:11, Rahkonen Jukka wrote:

  Hi,



  It is for sure good to test with OpenJDK and Oracle 1.7 JDK, but 
Geoserver has some known issues with both of them and Oracle 1.6 jre is the 
officially supported version.  Probably it would be more pleasure to test with 
that first.



  -Jukka Rahkonen-



  Tom van Tilburg wrote:



  Yes, I can see the WPS among the WCS/WFS/WMS services in the left of the 
menu and my handcrafted python process that I have put in ./da

Re: [Geoserver-users] RasterAsPointCollection rendering transformation

2013-03-28 Thread Jorge Gaspar Sanz Salinas
On 28 March 2013 12:32, Andrea Aime  wrote:
> On Wed, Mar 27, 2013 at 1:19 PM, Jorge Gaspar Sanz Salinas 
> wrote:
>>
>> Hi all,
>>
>> This is my first mail to the list so I will present myself briefly.
>> I'm Jorge Sanz, working at Prodevelop (Valencia, Spain) and happily
>> using GeoServer for a while. I'm part of the OSGeo Foundation and the
>> Spanish Local Chapter, doing my best to promote FOSS4G everywhere.
>>
>> Well my question is about the RasterAsPointCollection rendering
>> transformation. I've tried without success to chain it with the
>> BarnesSurface to first interpolate a point layer into a raster and
>> then obtain sampled values of into a grid. A testing SLD is at [1]. I
>> get the points but I don't know how to get the sampled value into a
>> label. From Geosolutions blog post about rendering tranformations[2] I
>> guess the "virtual" field is "Band1" but it doesn't work.
>>
>> The BarnesSurface works because I can get rasters or countours
>> chaining it with the proper transform, so I guess the problem is at
>> the RasterAsPointCollection part.
>
>
> It may well be, but I have no idea where the problem might lie and no time
> to
> perform tests right now.
> Can you open a ticket on jira.codehaus.org with sample data, styles
> and requests to reproduce?
>
> Cheers
> Andrea
>

Hi Andrea thanks, I'll prepare everything and fill the ticket

-- 
Jorge Sanz
http://es.osgeo.org

--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] RasterAsPointCollection rendering transformation

2013-03-28 Thread Andrea Aime
On Wed, Mar 27, 2013 at 1:19 PM, Jorge Gaspar Sanz Salinas
wrote:

> Hi all,
>
> This is my first mail to the list so I will present myself briefly.
> I'm Jorge Sanz, working at Prodevelop (Valencia, Spain) and happily
> using GeoServer for a while. I'm part of the OSGeo Foundation and the
> Spanish Local Chapter, doing my best to promote FOSS4G everywhere.
>
> Well my question is about the RasterAsPointCollection rendering
> transformation. I've tried without success to chain it with the
> BarnesSurface to first interpolate a point layer into a raster and
> then obtain sampled values of into a grid. A testing SLD is at [1]. I
> get the points but I don't know how to get the sampled value into a
> label. From Geosolutions blog post about rendering tranformations[2] I
> guess the "virtual" field is "Band1" but it doesn't work.
>
> The BarnesSurface works because I can get rasters or countours
> chaining it with the proper transform, so I guess the problem is at
> the RasterAsPointCollection part.
>

It may well be, but I have no idea where the problem might lie and no time
to
perform tests right now.
Can you open a ticket on jira.codehaus.org with sample data, styles
and requests to reproduce?

Cheers
Andrea


-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---
--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geoserver Connection To Database

2013-03-28 Thread Stefano Iacovella
http://jmeter.apache.org/usermanual/component_reference.html#JDBC_Connection_Configuration


---
41.95581N 12.52854E


http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas


2013/3/26 Andreas100 :
> hey Stefano!
>
> thanks a lot for helping me.
> Yes I do use JMeter, where can i configure it?
>
> greetz andy
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/Geoserver-Connection-To-Database-tp5042894p5042913.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> --
> Own the Future-Intel® Level Up Game Demo Contest 2013
> Rise to greatness in Intel's independent game demo contest.
> Compete for recognition, cash, and the chance to get your game
> on Steam. $5K grand prize plus 10 genre and skill prizes.
> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geoserver Connection To Database

2013-03-28 Thread Andreas100
hey Stefano!

thanks a lot for helping me. 
Yes I do use JMeter, where can i configure it?

greetz andy



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Geoserver-Connection-To-Database-tp5042894p5042913.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] chaining WPS and WFS

2013-03-28 Thread voimak
Hi, 

I m trying to chain a WPS with a WFS using a HTTP GET request. My request is
the following:

/http://localhost:8080/geoserver/ows?service=wps&version=1.0.0&request=execute&identifier=gs:BufferFeatureCollection&DataInputs=features=http://localhost:8080/geoserver/sf/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=sf:archsites&maxFeatures=50;distance=500/

but I take the exception:

/Process failed during execution Process execution
19954da4-9880-4239-be38-d6cb69a8e4da failed Failed to retrieve value for
input features Content is not allowed in prolog./

What m I missing?

Thanks in advance!





--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/chaining-WPS-and-WFS-tp5043278.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Python WPS scripting broken in Geoserver 2.3.x

2013-03-28 Thread Tom van Tilburg

Hi Dominique,

Thanks for this information.
I assume you also have the WPS plugin installed? And did you let the WPS 
plugin overwrite original JAR files? (I did not)


I tried your solution following the steps (using geoserver 2.3.0 
instead) and replacing jython but curiously I ended up having the error 
you described yourself:


java.lang.RuntimeException: java.io.IOException: 
javax.script.ScriptException: ImportError: No module named types in 
/var/data/tomcat7/webapps/geoserver/data/scripts/wps/mybuffer.py at line 
number 1 at 
org.geoserver.script.wps.ScriptProcessFactory.getDescription(ScriptProcessFactory.java:112) 
at 
org.geoserver.wps.web.WPSRequestBuilderPanel.initProcessView(WPSRequestBuilderPanel.java:250) 
at 
org.geoserver.wps.web.WPSRequestBuilderPanel.access$000(WPSRequestBuilderPanel.java:63) 
at 
org.geoserver.wps.web.WPSRequestBuilderPanel$5.onUpdate(WPSRequestBuilderPanel.java:225)



Seems it is really a 2.3 problem with jython?
(For the record: I also tried nightly war files with the plugins.)

Regards,
 Tom


On 27-3-2013 16:51, Bessette-Halsema, Dominique E wrote:


Hi Tom

We were having problems with the python scripting hook too.  It turned 
out to be jar compatibility.  I'm not sure if it's the same problem 
but here's our error and how we solved it.


Error:

Caused by: java.io.IOException: javax.script.ScriptException: 
ImportError: No module named types in 
/h/data/gis/geoserver/external/scripts/wps/buffer.py at line number 1


Solution:

Install geoserver pyhton and javascript scripting hooks

2) download geoserver python and javascript scripting extensions  from 
http://gridlock.opengeo.org/geoserver/2.2.x/community-latest/


3) copy both zip files into directory dir>/geoserver.war/WEB-INF/lib


4) extract both zip files (if prompted to replace, select 'N')

5) in WEB-INF/lib, delete jython-2.5.2.jar

6) access jython download page (http://www.jython.org/downloads.html). 
Download jython 2.7b1 standalone


7) cp jython-standalone-2.7-b1.jar dir>/geoserver.war/WEB-INF/lib


8) deploy geoserver

9) create scripting hooks

cd 

cd scripts/wps

create buffer.py (code found at 
http://docs.geoserver.org/latest/en/user/community/scripting/hooks.html)


10) test python hook

*From:*Tom van Tilburg [mailto:tom.van.tilb...@gmail.com]
*Sent:* Wednesday, March 27, 2013 8:02 AM
*To:* geoserver-users@lists.sourceforge.net
*Subject:* Re: [Geoserver-users] Python WPS scripting broken in 
Geoserver 2.3.x


I just installed SUN JAVA 1.6 JRE, but the problem persists. Here's a 
snippet from the error log:


2013-03-27 15:53:58,962 WARN [imagemosaic.ImageMosaicFormat] - 
java.lang.RuntimeException: java.io.IOException: 
javax.script.ScriptException: java.lang.NoClassDefFoundError: 
java.lang.NoClassDefFoundError: 
org/geotools/process/feature/gs/SimpleProcessingCollection in 
/var/data/tomcat7/webapps/geoserver/data/scripts/wps/mybuffer.py at 
line number 1
org.geotools.data.DataSourceException: java.lang.RuntimeException: 
java.io.IOException: javax.script.ScriptException: 
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: 
org/geotools/process/feature/gs/SimpleProcessingCollection in 
/var/data/tomcat7/webapps/geoserver/data/scripts/wps/mybuffer.py at 
line number 1


Line 1 in mybuffer.py reads:
from geoserver.wps import process

Java info:
Sun Microsystems Inc.: 1.6.0_43 (Java HotSpot(TM) 64-Bit Server VM)
(using Tomcat7)

As far as I understand the imagemosaic has nothing to do with this, 
the exception shows up a couple of times at different points in the 
startup of geoserver on Tomcat7.


Chrs,
 Tom

On 27-3-2013 15:11, Rahkonen Jukka wrote:

Hi,

It is for sure good to test with OpenJDK and Oracle 1.7 JDK, but
Geoserver has some known issues with both of them and Oracle 1.6
jre is the officially supported version. Probably it would be more
pleasure to test with that first.

-Jukka Rahkonen-

Tom van Tilburg wrote:

Yes, I can see the WPS among the WCS/WFS/WMS services in the left
of the menu and my handcrafted python process that I have put in
./data/scripts/wps/ is displayed in the list of WPS processes
(py:mybuffer)

By the way, I have OpenJDK installed.
At the moment I'm testing with Oracle 1.7 JDK and that gives me a
javax.script.ScriptException: ImportError: cannot import name
process in
/var/data/tomcat7/webapps/geoserver/data/scripts/wps/mybuffer.py
at line number 1
It's a slightly different server though with Oracle JDK, so I'm
testing some more.

Chrs, Tom



--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d___

Re: [Geoserver-users] Border problem during projecting raster data

2013-03-28 Thread Andrea Aime
On Thu, Mar 28, 2013 at 11:18 AM, Markus Innerebner <
markus.innereb...@inf.unibz.it> wrote:

> Hi Andrea,
>
> before opening an issue I wanted to tell you that on the master branch the
> border problem does not occur anymore.
>

That is weird... I'm not aware of significant changes in raster
reprojection that only landed on trunk.
Simone, are you aware of any?

Cheers
Andrea


-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---
--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GeoServer Printing Module

2013-03-28 Thread Jonathan Moules
Hi Jim,
It should just be a matter of setting the URL in your web-app. In mine
which is using GeoExt, I just set it to:
http://wppgeog3:8083/print/pdf
and make sure that URL is in my proxy and it works (its on a different
machine, so no chance of localhost being used).

Jonathan


On 27 March 2013 19:16, Jim White  wrote:

> **
> Hi,
>
> I have installed the printing module, and have it sort of working from
> localhost, however when I try to access it from another IP I am redirected
> to
>
> http://127.0.0.1:8080/geoserver/pdf/print.pdf
>
> It looks like this has to do with printURL, and createURL in info.json. I
> use mod_proxy to access geoserver running on 8080. How do I set up my
> server to return the correct url and print from a computer other than
> localhost?
>
> Thanks,
> Jim
>
> --
> James B. White
> Cary, NC
> H: 919-380-9615
> M: 919-698-1765
> White Coding and Maps 
>
>
> --
> Own the Future-Intel® Level Up Game Demo Contest 2013
> Rise to greatness in Intel's independent game demo contest.
> Compete for recognition, cash, and the chance to get your game
> on Steam. $5K grand prize plus 10 genre and skill prizes.
> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
> 
___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


This transmission is intended for the named addressee(s) only and may contain 
sensitive or protectively marked material up to RESTRICTED and should be 
handled accordingly. Unless you are the named addressee (or authorised to 
receive it for the addressee) you may not copy or use it, or disclose it to 
anyone else. If you have received this transmission in error please notify the 
sender immediately. All email traffic sent to or from us,  including without 
limitation all GCSX traffic, may be subject to recording and/or monitoring in 
accordance with relevant legislation.
--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Border problem during projecting raster data

2013-03-28 Thread Markus Innerebner
Hi Andrea,

before opening an issue I wanted to tell you that on the master branch the 
border problem does not occur anymore.
Should I open anyway an issue on JIRA?


cheers 


On Mar 27, 2013, at 8:03 PM, Andrea Aime wrote:

> On Wed, Mar 27, 2013 at 5:11 PM, markusin  
> wrote:
> Hi,
> 
> Do you have any idea  when the border problem that occurs when transforming
> raster images (tif) into the EPSG:3857 will be solved.
> With version 2.3.0 there problem is still there.
> 
> The border problems we were aware of have been fixed in 2.3.0, this one seems 
> different.
> 
> Please share the dataset, the style and a request to reproduce it in 
> jira.codehaus.org
> 
> Cheers
> Andrea
>  
> -- 
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more 
> information.
> ==
> 
> Ing. Andrea Aime 
> @geowolf
> Technical Lead
> 
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
> 
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
> 
> ---

--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Border problem during projecting raster data

2013-03-28 Thread Markus Innerebner
Hi Andrea,

I am 100% sure about the used version. BTW I will provide the dataset together 
with the style and the request.


Cheers
Markus
 
On Mar 27, 2013, at 8:03 PM, Andrea Aime wrote:

> On Wed, Mar 27, 2013 at 5:11 PM, markusin  
> wrote:
> Hi,
> 
> Do you have any idea  when the border problem that occurs when transforming
> raster images (tif) into the EPSG:3857 will be solved.
> With version 2.3.0 there problem is still there.
> 
> The border problems we were aware of have been fixed in 2.3.0, this one seems 
> different.
> 
> Please share the dataset, the style and a request to reproduce it in 
> jira.codehaus.org
> 
> Cheers
> Andrea
>  
> -- 
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more 
> information.
> ==
> 
> Ing. Andrea Aime 
> @geowolf
> Technical Lead
> 
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
> 
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
> 
> ---

--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Looks a regression with WFS -- or it supposed to work this way?

2013-03-28 Thread Andrea Aime
On Thu, Mar 28, 2013 at 2:56 AM, Phil Scadden  wrote:

> In moving from 2.1.3 to 2.2.5, we have noticed a change in behaviour
> with WFS.
>
> What I want: I want to make spatial query against a layer but I only
> want selected attributes returned. I specifically do not want geometry
> returned because the node count on the geometry can be very large.
>

Look at the describe feature type result. Is the geometry field described
as mandatory,
min occurrences = 1?
If so, the output is the expected one, you cannot select away fields that
are supposed
to be mandatory in the schema.

GeoServer gets the mandatory/non mandatory from your data source, e.g., if
it
is a database all non nullable fields are considered mandatory.
This can be manually overridden creating a custom schema file, see here:
http://docs.geoserver.org/stable/en/user/services/wfs/schemamapping.html

Cheers
Andrea

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---
--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users