[Users] Tutorial / Documentation for Query Panels in GeoExt?
Philippe Rufin
philippe.rufin at googlemail.com
Mon Sep 5 17:35:03 CEST 2011
**
Hi,
I tried using the FormPanel but the QueryPanel seems to fit better in this
case. I want the user to be able to filter data coming from a WFS after
specifying certain conditions, which differ from case to case.
I got the GeoExt QueryPanel working so far, it recognizes the layers
available on my Geoserver but it is not able to get the attribute columns of
the dataset. I configured a proxy on my Apache Server. A DescribeFeatureType
request is sent when selecting the layer I want to filter from. The same
happens when trying to choose the attribute column in the query panel, but
there are none displayed.
These are the request URLs:
[
http://localhost/cgi-bin/proxy.cgi/wfs?VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=cases]
[
http://localhost/cgi-bin/proxy.cgi/wfs?VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=cases&query=]
Opening the reply bodies of these requests in a new tab via Firebug, I get
to the OpenLayers webpage...
Does anybody have a clue what´s going wrong here and why the attribute
fields cannot be read but all the layers on geoserver are displayed?
@ Matt: The print function is what I need for the Map "Export". Furthermore
I want to be able to export the attribute table of the query made in the
QueryPanel as a *.csv or similar filetype that can be read in Excel.
Any help is appreciated!
Cheers,
Philippe
On 26.08.2011 17:39, Matt Priour wrote:
You want to use the GeoExt.form.FormPanel
see:
http://dev.geoext.org/docs/lib/GeoExt/widgets/form/FormPanel.html
http://dev.geoext.org/trunk/geoext/examples/search-form.html
You may or may not need a ProxyHost configured in OpenLayers:
http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost
Try to use this class and see if you can get WFS attribute filtering
working.
With regards to exporting your map and grid, that really depends on what you
are really trying to accomplish.
Do you want an snapshot of the map or grid?
Or Do you want to export the query and map extent so that the particular
view can be recreated?
If you want a snapshot, do you want to simply print the grid or map?
Or do you want to actually export the data itself.
Matt Priour
Kestrel Computer Consulting
*From:* Philippe Rufin <philippe.rufin at googlemail.com>
*Sent:* Friday, August 26, 2011 9:53 AM
*To:* users at geoext.org
*Subject:* [Users] Tutorial / Documentation for Query Panels in GeoExt?
Hi all!
I´m trying to build a webmapping application with GeoExt. What I want to do
is to create a query panel in which I can define conditions which filter the
data from a WFS. It should filter the data displayed in my map panel as well
as my grid panel. Additionally, I want the user to be able to export query
results as maps and tables. Anyone knows if that´s possible as well?
Basically, I want to use the GeoExt QueryPanel (
http://workshops.opengeo.org/geoext/_images/attributes.png).
Does any of you know how to create this or knows any nice tutorial? The OG
workshop documents concerning WFS browsing, querying and SLD
filtering<http://workshops.opengeo.org/geoext/more_ogc/app.html>(
http://workshops.opengeo.org/geoext/more_ogc/app.html ) look promising but I
can´t really follow it, since the source code does not work anymore / on my
machine / somehow. Anyone with experience in this issue? It seems like a
common element to develop I think... Too bad, good documentation is missing.
It would be great to get help in this case, since the issue´s not heavily
discussed on mailinglists or boards...
Cheers,
Philippe
------------------------------
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110905/ef9a1278/attachment.htm
More information about the Users
mailing list