Hey Robert, I haven't done this with GeoServer specifically but all signs point to yes. The
general idea is to get your client to request the data from Geoserver,
load the result into an Ext data store, then pass that store to the Ext
chart.<br>
<br>
Here's info (might be a little dated) on hitting a geoserver wfs
interface and returning GeoJSON:
<a href="http://geoserver.org/display/GEOSDOC/GeoJSON+Output+Format">http://geoserver.org/display/GEOSDOC/GeoJSON+Output+Format</a><br>
<br>
Here's some info on using a GeoExt FeatureStore to request the data and
automagically parse the geojson result and load the store:
<a href="http://api.geoext.org/1.0/examples/feature-grid.html">http://api.geoext.org/1.0/examples/feature-grid.html</a>.<br>
<br>
That example uses a regular HTTP Get request and expects a geojson
result. Maybe you can do this with the geoserver rest api but here's an
example of using an OpenLayers wfs protocol instance:
<a href="http://workshops.opengeo.org/stack-intro/openlayers.html">http://workshops.opengeo.org/stack-intro/openlayers.html</a>. Specifically this piece:<br>
<pre> <span class="nx">protocol</span><span class="o">:</span> <span class="k">new</span> <span class="nx">OpenLayers</span><span class="p">.</span><span class="nx">Protocol</span><span class="p">.</span><span class="nx">WFS</span><span class="p">({</span>
<span class="nx">url</span><span class="o">:</span> <span class="s2">"<a href="http://localhost:8080/geoserver/wfs">http://localhost:8080/geoserver/wfs</a>"</span><span class="p">,</span>
<span class="nx">featureType</span><span class="o">:</span> <span class="s2">"school_pt"</span><span class="p">,</span>
<span class="nx">featureNS</span><span class="o">:</span> <span class="s2">"<a href="http://postgis.org">http://postgis.org</a>"</span><span class="p">,</span>
<span class="nx">srsName</span><span class="o">:</span> <span class="s2">"EPSG:900913"</span><span class="p">,</span>
<span class="nx">version</span><span class="o">:</span> <span class="s2">"1.1.0"</span>
<span class="p">})</span></pre>
Hope this helps, Tim<br><br><br>Tim Welch<br>Senior Developer, Ecotrust<br><br><div class="gmail_quote">On Sat, Oct 9, 2010 at 3:54 AM, Robert Buckley <span dir="ltr"><<a href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
<br>
I was just wondering (before trying it out) if it is possible to use a field<br>
from a shapefile to provide the row data in an ext-chart.<br>
I would like to display the name of a area against its' population, both of<br>
which are present in a shapefile contained in a store in geoserver.<br>
Is this possible?..if not...in which format should data be in to be visualized<br>
in charts?<br>
<br>
Yours,<br>
<br>
Robert Buckley<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br>