[Geoserver-users] WPS dwithin vs buffer

Hi,
I just begin using the geoserver wps and I’m quite surprise of the performance and implemented processes. Very good.

I have a use case that works but would like to improve. I would like to use the equivalent of ST_DWITHIN in postgis, but on 2 WFS.

I’m using 2 WFS having point features. I need to get the points of WFS1 that falls within a 1km buffer on each points of WFS2. I made it using gs:InclusionFeatureCollection and a subprocess gs:BufferFeatureCollection
It works but it takes 20 seconds. The same query directly in postgis takes also 20 seconds (st_within(geom1, st_buffer(geom2,1000))

in postgis st_buffer should be avoid if there is other way, like st_dwithin(geom1, geom2, 1000) on the same data takes 1 seconds.

Is there other processes I could use instead of those above?
Thank you
Steve

On Fri, Sep 27, 2013 at 8:56 PM, <Steve.Toutant@anonymised.com> wrote:

Hi,
I just begin using the geoserver wps and I'm quite surprise of the
performance and implemented processes. Very good.

I have a use case that works but would like to improve. I would like to
use the equivalent of ST_DWITHIN in postgis, but on 2 WFS.

I'm using 2 WFS having point features. I need to get the points of WFS1
that falls within a 1km buffer on each points of WFS2. I made it using
gs:InclusionFeatureCollection and a subprocess gs:BufferFeatureCollection
It works but it takes 20 seconds. The same query directly in postgis takes
also 20 seconds (st_within(geom1, st_buffer(geom2,1000))

in postgis st_buffer should be avoid if there is other way, like
st_dwithin(geom1, geom2, 1000) on the same data takes 1 seconds.

Is there other processes I could use instead of those above?

No, you'll have to write your own, either using the Java API, or using
geoscript and
a scripting languages (for the java api, look at the existing processes in
geotools/geoserver,
they should serve as examples, for geoscript search the net, there are
small guides and
samples.).

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

-------------------------------------------------------