Re: Geoprocessingservices Digest, Vol 100, Issue 5

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Geoprocessingservices Digest, Vol 100, Issue 5

Gregory Giuliani
Thanks Daniel.
Using a POST request has solved my problem.

best regards

Greg

> On 06 Dec 2014, at 12:00, [hidden email] wrote:
>
> Send Geoprocessingservices mailing list submissions to
> [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://list.52north.org/mailman/listinfo/geoprocessingservices
> or, via email, send a message with subject or body 'help' to
> [hidden email]
>
> You can reach the person managing the list at
> [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Geoprocessingservices digest..."
>
>
> Today's Topics:
>
>   1. Re: WPS-Execute with GML FeatureCollection (Felix Sch.)
>   2. Re: WPS-Execute with GML FeatureCollection (Benjamin Pro?)
>   3. Re: WPS4R image output (Daniel N?st)
>   4. Re: Error on Start Up Ubuntu 12.04, Tomcat7, openjdk-7-jre
>      (swainn)
>   5. Re: Error on Start Up Ubuntu 12.04, Tomcat7, openjdk-7-jre
>      (BenjaminPross)
>   6. Re: Error on Start Up Ubuntu 12.04, Tomcat7, openjdk-7-jre
>      (swainn)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 5 Dec 2014 06:30:06 -0700 (MST)
> From: "Felix Sch." <[hidden email]>
> To: [hidden email]
> Subject: Re: [52N Geoprocessingservices] WPS-Execute with GML
> FeatureCollection
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
> Thanks Benjamin for the answer!
>
> I implement your answer in my client. But now I have an other error message.
> Further the server is not able to parse the XML correctly.
>
> The problem is, that the server tries to determine the feature type schema
> in GML3BasicParser class (Line 154), but the result is null. So there musst
> be a further mistake in my GML.
> Do you or any one else the further mistake?
>
>
> Maybe somebody can send me a GML-Geometry, which could be parsed from the
> 52North-server. Based on these i can create my own GML like this.
>
> At the end you can see my GML and bei error message.
>
> Cheers,
>
> Felix
>
> ### XML_GML:
> <gml:FeatureCollection xmlns:gml="http://www.opengis.net/gml"
> schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd">
> <gml:FeatureMembers>
> <gml:MultiCurve>
> <gml:curveMember>
> <ns8:LineString xmlns:ns8="http://www.opengis.net/gml" axisLabels=""
> uomLabels="">
> <ns8:pos axisLabels="" uomLabels="">41.1826171875
> 4.8823242634535</ns8:pos>
> <ns8:pos axisLabels="" uomLabels="">46.587890625
> 5.7172852009535</ns8:pos>
> <ns8:pos axisLabels="" uomLabels="">46.67578125
> 9.1889648884535</ns8:pos>
> </ns8:LineString>
> </gml:curveMember>
> </gml:MultiCurve>
> </gml:FeatureMembers>
> </gml:FeatureCollection>
>
>
> ### Error message:
> org.n52.wps.server.ExceptionReport: Error occured, while XML parsing
> at
> org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:576)
> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
> at
> org.n52.wps.server.request.InputHandler.handleComplexData(InputHandler.java:518)
> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:157)
> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:132)
> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
> at
> org.n52.wps.server.request.InputHandler$Builder.build(InputHandler.java:119)
> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:663)
> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
> at org.n52.wps.server.request.Request.call(Request.java:1)
> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
> at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.8.0_20]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> [na:1.8.0_20]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> [na:1.8.0_20]
> at java.lang.Thread.run(Unknown Source) [na:1.8.0_20]
> Caused by: java.lang.NullPointerException: null
> at
> org.n52.wps.io.datahandler.parser.GML3BasicParser.parseFeatureCollection(GML3BasicParser.java:166)
> ~[52n-wps-io-geotools-3.3.1-SNAPSHOT.jar:na]
> at
> org.n52.wps.io.datahandler.parser.GML3BasicParser.parseXML(GML3BasicParser.java:139)
> ~[52n-wps-io-geotools-3.3.1-SNAPSHOT.jar:na]
> at
> org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:124)
> ~[52n-wps-io-geotools-3.3.1-SNAPSHOT.jar:na]
> at
> org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:1)
> ~[52n-wps-io-geotools-3.3.1-SNAPSHOT.jar:na]
> at
> org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:574)
> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
> ... 10 common frames omitted
> 2014-12-05 14:26:28,780 [http-bio-8080-exec-1] DEBUG
> org.n52.wps.server.WebProcessingService: org.n52.wps.server.ExceptionReport:
> Error occured, while XML parsing
>
>
>
>
> --
> View this message in context: http://geoprocessing.forum.52north.org/WPS-Execute-with-GML-FeatureCollection-tp4025926p4025948.html
> Sent from the 52? North - Geoprocessing Community Forum mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 05 Dec 2014 15:34:33 +0100
> From: Benjamin Pro? <[hidden email]>
> To: [hidden email]
> Subject: Re: [52N Geoprocessingservices] WPS-Execute with GML
> FeatureCollection
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hello Felix,
>
> You could have a look at the GML at [1] and respective XSD schema at [2].
> You will have to provide a web-accessible XSD for a GML input (i.e.
> provide the right schemaLocation in the GML), otherwise the parsers will
> most likely not be able to parse the GML correctly.
> Also, I don't think that a generic GML XSD (e.g.
> http://schemas.opengis.net/gml/3.1.1/base/feature.xsd) will do.
> I am not sure, what you want to achieve in the end, but there are other
> formats that are less complicated, e.g. zipped shapefiles or JSON.
> Maybe that would be an option for you. As we are using GeoTools to parse
> GML, you also could ask for help/examples on their mailinglist.
>
> Cheers,
>
> Benjamin
>
> [1]
> http://geoprocessing.demo.52north.org:8080/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:tasmania_roads&maxFeatures=1
> [2]
> http://geoprocessing.demo.52north.org:8080/geoserver/topp/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp%3Atasmania_roads
>
> Am 05.12.2014 14:30, schrieb Felix Sch.:
>> Hi,
>> Thanks Benjamin for the answer!
>>
>> I implement your answer in my client. But now I have an other error message.
>> Further the server is not able to parse the XML correctly.
>>
>> The problem is, that the server tries to determine the feature type schema
>> in GML3BasicParser class (Line 154), but the result is null. So there musst
>> be a further mistake in my GML.
>> Do you or any one else the further mistake?
>>
>>
>> Maybe somebody can send me a GML-Geometry, which could be parsed from the
>> 52North-server. Based on these i can create my own GML like this.
>>
>> At the end you can see my GML and bei error message.
>>
>> Cheers,
>>
>> Felix
>>
>> ### XML_GML:
>> <gml:FeatureCollection xmlns:gml="http://www.opengis.net/gml"
>> schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd">
>> <gml:FeatureMembers>
>> <gml:MultiCurve>
>> <gml:curveMember>
>> <ns8:LineString xmlns:ns8="http://www.opengis.net/gml" axisLabels=""
>> uomLabels="">
>> <ns8:pos axisLabels="" uomLabels="">41.1826171875
>> 4.8823242634535</ns8:pos>
>> <ns8:pos axisLabels="" uomLabels="">46.587890625
>> 5.7172852009535</ns8:pos>
>> <ns8:pos axisLabels="" uomLabels="">46.67578125
>> 9.1889648884535</ns8:pos>
>> </ns8:LineString>
>> </gml:curveMember>
>> </gml:MultiCurve>
>> </gml:FeatureMembers>
>> </gml:FeatureCollection>
>>
>>
>> ### Error message:
>> org.n52.wps.server.ExceptionReport: Error occured, while XML parsing
>> at
>> org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:576)
>> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.server.request.InputHandler.handleComplexData(InputHandler.java:518)
>> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
>> at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:157)
>> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
>> at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:132)
>> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.server.request.InputHandler$Builder.build(InputHandler.java:119)
>> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
>> at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:663)
>> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
>> at org.n52.wps.server.request.Request.call(Request.java:1)
>> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
>> at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.8.0_20]
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>> [na:1.8.0_20]
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>> [na:1.8.0_20]
>> at java.lang.Thread.run(Unknown Source) [na:1.8.0_20]
>> Caused by: java.lang.NullPointerException: null
>> at
>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parseFeatureCollection(GML3BasicParser.java:166)
>> ~[52n-wps-io-geotools-3.3.1-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parseXML(GML3BasicParser.java:139)
>> ~[52n-wps-io-geotools-3.3.1-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:124)
>> ~[52n-wps-io-geotools-3.3.1-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.io.datahandler.parser.GML3BasicParser.parse(GML3BasicParser.java:1)
>> ~[52n-wps-io-geotools-3.3.1-SNAPSHOT.jar:na]
>> at
>> org.n52.wps.server.request.InputHandler.parseComplexValue(InputHandler.java:574)
>> ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
>> ... 10 common frames omitted
>> 2014-12-05 14:26:28,780 [http-bio-8080-exec-1] DEBUG
>> org.n52.wps.server.WebProcessingService: org.n52.wps.server.ExceptionReport:
>> Error occured, while XML parsing
>>
>>
>>
>>
>> --
>> View this message in context: http://geoprocessing.forum.52north.org/WPS-Execute-with-GML-FeatureCollection-tp4025926p4025948.html
>> Sent from the 52? North - Geoprocessing Community Forum mailing list archive at Nabble.com.
>> _______________________________________________
>> Geoprocessingservices mailing list
>> [hidden email]
>> http://list.52north.org/mailman/listinfo/geoprocessingservices
>> http://geoprocessing.forum.52north.org
>> Please respect our mailing list guidelines:
>> http://52north.org/resources/mailing-lists-and-forums/guidelines
>
>
> --
> Benjamin Pro?
> Software Engineer
> 52?North Geoprocessing Community
>
> 52?North Initiative for Geospatial Open Source Software GmbH
> Martin-Luther-King-Weg 24
> Fon: +49-(0)-251?396371-42
> Fax: +49-(0)-251?396371-11
> [hidden email]
> http://52north.org/
>
> General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
> Local Court Muenster HRB 10849
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 05 Dec 2014 16:35:49 +0100
> From: Daniel N?st <[hidden email]>
> To: Gregory Giuliani <[hidden email]>, 52?North
> Geoprocessing Community Mailing List
> <[hidden email]>
> Subject: Re: [52N Geoprocessingservices] WPS4R image output
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi Gregory!
>
> Am 05/12/2014 um 09:13 schrieb Gregory Giuliani:
>> My script is supposed to extract some statistics from Globcover 2009 and
>> I wish to have it as a graph image in PNG format.
>> However, when I execute my process:
>> http://wps.grid.unep.ch:8080/wps/WebProcessingService?service=wps&version=1.0.0&request=execute&identifier=org.n52.wps.server.r.globcov&datainputs=cnty=LIE;boundaries=y;locations=y;mask=y
>> I don?t have an image but a chain of strand characters (see the
>> screenshot attached).
>>
>> In my script, I write the png file:
>> fname <- ?gc.png"
>> png(file=fname, width=450, height=280, res=94, units="mm") #94
>>
>> and here is the annotation for the output
>> # wps.out: fname, image/png;
>>
>> I?m using R 3.1.2 on a Debian wheezy server with 52north WPS3.3
>> implementation
>
> Your output looks a lot like a binary encoding of the image. Have you
> tested to request the image as a reference? I am not sure this is
> possible in a GET request, but see this POST example:
>
> https://github.com/52North/WPS/blob/master/52n-wps-webapp/src/main/webapp/requests/R_SosPlot.xml
>
>
> /Daniel
>
>>
>> ---
>> Dr. Gregory Giuliani
>> Senior research associate - Spatial Data Infrastructure
>> http://www.unige.ch/envirospace/People/giuliani.html
>> **************************************************************
>> University of Geneva
>> Institute for Environmental Sciences/enviroSPACE
>> 7 route de Drize, CH - 1227 CAROUGE
>> Phone: (+41 22) 379 07 09 Fax: (+41 22) 379 07 44
>> Web: http://www.unige.ch/envirospace
>> Email: [hidden email]
>> **************************************************************
>> UNEP/DEWA/GRID-Geneva
>> International Environment House
>> 11, chemin des An?mones, CH - 1219 CHATELAINE
>> Phone: (+41 22) 917 84 17 Fax: (+41 22) 917 80 29
>> Web: http://www.grid.unep.ch
>> Email: [hidden email]
>> **************************************************************
>>
>
>
> --
> Daniel N?st
> 52?North Initiative for Geospatial Open Source Software GmbH
> Martin-Luther-King-Weg 24
> 48155 M?nster, Germany
> E-Mail: [hidden email]
> Fon: +49-(0)-251?396371-36
> Fax: +49-(0)-251?396371-11
>
> http://52north.org/
> Twitter: @FiveTwoN
>
> General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
> Local Court Muenster HRB 10849
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 5 Dec 2014 10:10:31 -0700 (MST)
> From: swainn <[hidden email]>
> To: [hidden email]
> Subject: Re: [52N Geoprocessingservices] Error on Start Up Ubuntu
> 12.04, Tomcat7, openjdk-7-jre
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=UTF-8
>
> Benjamin:
>
>
> BenjaminPross wrote
>> The GeoTools package is missing, which is needed by most of the backends
>> (including GRASS).
>> You can download it from here:
>>
>> http://52north.org/downloads/geoprocessing/wps/wps-3-3-0-geotools-package
>
> Thanks for your suggestion, I am eager to try it out. However, I have been
> unable to access anything on 52North.org since yesterday. I get the
> following Cisco error:
>
>
>
> It is possible that I've been blocked because my Docker image was constantly
> pinging 52North.org to download the WPS. Is the wps-3-3-0-geotools package
> different than the standard geotools package? Can I use the normal geotools
> package?
>
> Also, I have a few clarifications:
>
>
> BenjaminPross wrote
>> It needs to be unzipped in the WPS folder, the needed libraries are added
>> to the WEB-INF/lib folder and the web.xml and index.jsp files are replaced
>> by default (basically the path to the wps_config.xml needs to be changed
>> in these two files).
>
> Do I need to do anything else other than unzip the wps-3-3-0-geotools in the
> WPS folder? Do I need to build 52North from source to enable GeoTools
> support?
>
> Thanks,
>
> --
> Nathan Swain
> Brigham Young University
> Provo, UT, USA
>
>
>
>
> --
> View this message in context: http://geoprocessing.forum.52north.org/Error-on-Start-Up-Ubuntu-12-04-Tomcat7-openjdk-7-jre-tp4025927p4025951.html
> Sent from the 52? North - Geoprocessing Community Forum mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 5 Dec 2014 11:41:19 -0700 (MST)
> From: BenjaminPross <[hidden email]>
> To: [hidden email]
> Subject: Re: [52N Geoprocessingservices] Error on Start Up Ubuntu
> 12.04, Tomcat7, openjdk-7-jre
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=UTF-8
>
> Yeah, our server is down due to unplanned maintenance right now, I am afraid.
> You can download the package from here for the moment, if you want to test:
>
> http://geoprocessing.demo.52north.org/download/wps-3.3.0-geotools-package.zip
>
> The term "package" is kind of misleading, I guess. The zip file contains
> some additional third party libraries (e.g. GeoTools) and some WPS
> libraries, e.g. containing the code of the grass repository. It just needs
> to be unzipped, no building of the WPS needed.
>
> Hope this helps.
>
> Cheers,
>
> Benjamin
>
>
>
> --
> View this message in context: http://geoprocessing.forum.52north.org/Error-on-Start-Up-Ubuntu-12-04-Tomcat7-openjdk-7-jre-tp4025927p4025952.html
> Sent from the 52? North - Geoprocessing Community Forum mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 5 Dec 2014 16:20:22 -0700 (MST)
> From: swainn <[hidden email]>
> To: [hidden email]
> Subject: Re: [52N Geoprocessingservices] Error on Start Up Ubuntu
> 12.04, Tomcat7, openjdk-7-jre
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=UTF-8
>
> Benjamin, Daniel:
>
> Adding the GeoTools libraries did the trick. PLEASE BE SURE TO UPDATE THE
> TUTORIAL. The processes are now registered and show up in the get
> capabilities request and as far as I can tell, the GRASS processes are
> running. The trouble is that with 52north.org down, all of the test datasets
> are unavailable, so the running the test processes give me errors. When
> running raster processes I get this error:
>
>
>
> which according to  this
> <http://lists.osgeo.org/pipermail/gdal-dev/2010-July/025433.html>   post
> occurs because of an empty TIFF file. This makes sense because the input
> dataset (http://geoprocessing.demo.52north.org:8080/xyz/elev.tif) is
> unavailable with the 52north.org outage.
>
> The error I get with vector GRASS processes is a little confusing to me.
> Here is an example from when I try to run the v.buffer_in_kml.xml test
> process:
>
>
>
> Any ideas what this could mean?
>
> As soon as I can get some of these test processes working, I'll finish up
> the Docker and create a new post with the instructions for using it.
>
> Thanks
>
> --
> Nathan Swain
> Brigham Young University
> Provo, UT, USA
>
>
>
>
>
> --
> View this message in context: http://geoprocessing.forum.52north.org/Error-on-Start-Up-Ubuntu-12-04-Tomcat7-openjdk-7-jre-tp4025927p4025953.html
> Sent from the 52? North - Geoprocessing Community Forum mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Geoprocessingservices mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/geoprocessingservices
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>
> ------------------------------
>
> End of Geoprocessingservices Digest, Vol 100, Issue 5
> *****************************************************

---
Dr. Gregory Giuliani
Senior research associate - Spatial Data Infrastructure
http://www.unige.ch/envirospace/People/giuliani.html
**************************************************************
University of Geneva
Institute for Environmental Sciences/enviroSPACE
7 route de Drize, CH - 1227 CAROUGE
Phone: (+41 22) 379 07 09 Fax: (+41 22) 379 07 44
Web: http://www.unige.ch/envirospace
Email: [hidden email]
**************************************************************
UNEP/DEWA/GRID-Geneva
International Environment House
11, chemin des Anémones, CH - 1219 CHATELAINE
Phone: (+41 22) 917 84 17 Fax: (+41 22) 917 80 29
Web: http://www.grid.unep.ch
Email: [hidden email]
**************************************************************

_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines