Re: [Geoserver-users] Chaining WFS and WPS

2018-09-21 Thread Olyster
Andrea, I've managed to compile a custom gs-ows-version.jar. I added a few log entries and I can see them in the log file after a WFS request. Could you point me towards the place in the code where the features returned by Oracle are being converted to wfs response for the client app ? Thanks

Re: [Geoserver-users] Chaining WFS and WPS

2018-09-17 Thread Olyster
Andrea, I already have a modifed version of WFS (I modified JDBCDataStore.selectSQLPS) and it works fine. Is it possible to develop a plugin that enables me to modify the spatial query before it's sent to the DB ? If yes, I'd prefer this approach since it would make upgrading easier. Maybe I'll

Re: [Geoserver-users] Chaining WFS and WPS

2018-09-17 Thread Andrea Aime
On Mon, Sep 17, 2018 at 5:19 PM Olyster wrote: > Since I'm tapping in the code, would it be possible to get the bbox, build > a > wps request, set the output as WFS (mimeType="text/xml; > subtype=wfs-collection/1.1") and return this as the result of the WFS query > ? That would simplify the whole

Re: [Geoserver-users] Chaining WFS and WPS

2018-09-17 Thread Olyster
Andrea, thanks for your answer. I used Postman to send wps POST request. Copied the output (GML) to a txt file and opened it with qgis. I confirm that the clipped result is fine. I was using a simple online wkt viewer and I guess it was too much to handle. Since I'm tapping in the code, would

Re: [Geoserver-users] Chaining WFS and WPS

2018-09-15 Thread Andrea Aime
On Fri, Sep 14, 2018 at 9:34 PM Olyster wrote: > Andrea, > > The polygon is a multipolygon and unfortunately the gs:clip doesn't seem to > handle it as it returns a bunch of coordinate one after the other without > any kind of seperation. > This is unexpected. Can you please show us the inputs,

Re: [Geoserver-users] Chaining WFS and WPS

2018-09-14 Thread Olyster
Andrea, The polygon is a multipolygon and unfortunately the gs:clip doesn't seem to handle it as it returns a bunch of coordinate one after the other without any kind of seperation. As you know, WMS does clip the feature. Could you point me in the package/class where this clipping is done ? Mayb

Re: [Geoserver-users] Chaining WFS and WPS

2018-09-14 Thread Andrea Aime
In that case I guess you need a vendor extension to the WFS protocol. It would be an extra parameter added to the request, that the client uses to indicate the wish to receive clipped data (the standard says otherwise, all the intersecting data must be returned, hence the need to roll something cus

Re: [Geoserver-users] Chaining WFS and WPS

2018-09-14 Thread Olyster
Andrea, thanks for your reply. I understand what you mean but I'm working on a WFS service which will receive a lot of requests daily. It not a one shot deal. Thanks for your suggestion and have a nice one ! -- Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

Re: [Geoserver-users] Chaining WFS and WPS

2018-09-14 Thread Andrea Aime
Hi, there is no way to have WFS transparently call WPS, it's the other way around, WPS calls WFS, try this request: http://www.w3.org/2001/XMLSchema-instance"; xmlns=" http://www.opengis.net/wps/1.0.0"; xmlns:wfs="http://www.opengis.net/wfs"; xmlns:wps="http://www.opengis.net/wps/1.0.0"; xmlns:ows

[Geoserver-users] Chaining WFS and WPS

2018-09-14 Thread Olyster
Hi, I'm working with a fairly big multipolygon (400 000points) in oracle spatial. I noticed that all the points are returned to the client (browser) even if 10 points are showing. WFS protocol doesn't weed out those points so I'd like to use WPS to perform clipping of the returned coordinates b