[Geoserver-users] Buffer results of WFS query with filter?

I’m trying to run a query against a WFS layer and then buffer those results in a web app. We are currently using CQL to query some attributes and to request only features which intersect with a specified geometry.

Our requests look like this.

http://example.com/geoserver/testing/ows?version=2.0.0&service=WFS&request=GetFeature&outputFormat=json&srsName=EPSG%3A4326&typeName=testing%3Atrees&CQL_FILTER=(intersects(geom%2CPOLYGON+((45.22109023031564±93.35150599479677%2C+45.22166456717873±93.35150599479677%2C+45.22166456717873±93.35050821304321%2C+45.22109023031564±93.35050821304321%2C+45.22109023031564±93.35150599479677))))+AND+type_of_as+IN+(%27Black%27)+AND+approximat+IN+(%272-5%27)

That works great for selecting the correct features, but I can’t figure out how to buffer those results. I see that buffer is listed here (http://docs.geoserver.org/stable/en/user/filter/function_reference.html) but I can’t find any examples of its use.

Can someone tell me where I should be looking to learn how to use the buffer function?

Thanks,
Michael Moore

Sounds like you may wish to look at WPS service instead of WFS. WFS provides access to data directly. WPS allows you to process the data before it is returned to you.

Jody

···

Jody Garnett

On Wed, Oct 15, 2014 at 2:00 PM, Michael Moore <michael.moore@anonymised.com> wrote:

I’m trying to run a query against a WFS layer and then buffer those results in a web app. We are currently using CQL to query some attributes and to request only features which intersect with a specified geometry.

Our requests look like this.

http://example.com/geoserver/testing/ows?version=2.0.0&service=WFS&request=GetFeature&outputFormat=json&srsName=EPSG%3A4326&typeName=testing%3Atrees&CQL_FILTER=(intersects(geom%2CPOLYGON+((45.22109023031564±93.35150599479677%2C+45.22166456717873±93.35150599479677%2C+45.22166456717873±93.35050821304321%2C+45.22109023031564±93.35050821304321%2C+45.22109023031564±93.35150599479677))))+AND+type_of_as+IN+(%27Black%27)+AND+approximat+IN+(%272-5%27)

That works great for selecting the correct features, but I can’t figure out how to buffer those results. I see that buffer is listed here (http://docs.geoserver.org/stable/en/user/filter/function_reference.html) but I can’t find any examples of its use.

Can someone tell me where I should be looking to learn how to use the buffer function?

Thanks,
Michael Moore


Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

WPS looks like it’s what I’ll end up using.

Thanks,
Michael Moore

···

Sounds like you may wish to look at WPS service instead of WFS. WFS provides access to data directly. WPS allows you to process the data before it is returned to you.

Jody

Jody Garnett

On Wed, Oct 15, 2014 at 2:00 PM, Michael Moore <michael.moore@anonymised.com> wrote:

I’m trying to run a query against a WFS layer and then buffer those results in a web app. We are currently using CQL to query some attributes and to request only features which intersect with a specified geometry.

Our requests look like this.

http://example.com/geoserver/testing/ows?version=2.0.0&service=WFS&request=GetFeature&outputFormat=json&srsName=EPSG%3A4326&typeName=testing%3Atrees&CQL_FILTER=(intersects(geom%2CPOLYGON+((45.22109023031564±93.35150599479677%2C+45.22166456717873±93.35150599479677%2C+45.22166456717873±93.35050821304321%2C+45.22109023031564±93.35050821304321%2C+45.22109023031564±93.35150599479677))))+AND+type_of_as+IN+(%27Black%27)+AND+approximat+IN+(%272-5%27)

That works great for selecting the correct features, but I can’t figure out how to buffer those results. I see that buffer is listed here (http://docs.geoserver.org/stable/en/user/filter/function_reference.html) but I can’t find any examples of its use.

Can someone tell me where I should be looking to learn how to use the buffer function?

Thanks,
Michael Moore


Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users