You may need to tweak the OpenLayers example, but OpenLayers is indeed
capable of reading the GeoJSON output from GeoServer.

To filter the results in a WFS request you just need to include a FILTER
parameter with OGC Filter XML or a CQL_FILTER with, well, a CQL filter :)
 There's info on this on http://docs.geoserver.org/ if you search a bit;
OpenLayers also has tools to help format WFS requests for you.

--
David Winslow
OpenGeo - http://opengeo.org/



On Mon, Oct 3, 2011 at 10:53 PM, Mark Volz <volzm...@yahoo.com> wrote:

> Hello,
>
> The Openlayers JQuery Mobile uses geonames.org  to produce geoJSON results
> that a user can then select and zoom to a  feature.  I noticed that
> GeoServer can produce output in geoJSON.
>
> Question 1)  Does anyone know if the geoserver will work with the
> Openlayers Jquery Mobile example?
>
> Question 2)  The format that geonames requires is "
> http://ws.geonames.org/searchJSON?featureClass=P&maxRows=10&name_startsWith=newyork
>  city."  How would I need to modify Geoserver to search a particular
> layer or layers for data?
>
> Thanks
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to