GetFeature without INFO_FORMAT specified only returns features from first layer
-------------------------------------------------------------------------------
Key: GEOS-4181
URL: http://jira.codehaus.org/browse/GEOS-4181
Project: GeoServer
Issue Type: Bug
Components: WMS
Affects Versions: 2.1-beta1
Reporter: Eli Miller
Assignee: Andrea Aime
The output for GetFeatureInfo is incomplete if INFO_FORMAT is not specified
(only features from the first layer are output). For example, if I request:
http://localhost:8080/geoserver/wms?VERSION=1.1.0&REQUEST=GetFeatureInfo&SERVICE=wms&WIDTH=600&HEIGHT=400&SRS=EPSG:4326&BBOX=-24.542,51.297,-0.018,66.565&LAYERS=gisws:fixed_pg_layer_19,gisws:pg_layer_19&QUERY_LAYERS=gisws:fixed_pg_layer_19,gisws:pg_layer_19&X=100&Y=50
I get the following output:
Results for FeatureType 'fixed_pg_layer_19':
--------------------------------------------
value = 2.00000
label = XXX55827
feature = [GEOMETRY (MultiPolygon) with 7589 points]
--------------------------------------------
If I request:
http://localhost:8080/geoserver/wms?VERSION=1.1.0&REQUEST=GetFeatureInfo&SERVICE=wms&WIDTH=600&HEIGHT=400&SRS=EPSG:4326&BBOX=-24.542,51.297,-0.018,66.565&LAYERS=gisws:fixed_pg_layer_19,gisws:pg_layer_19&QUERY_LAYERS=gisws:fixed_pg_layer_19,gisws:pg_layer_19&X=100&Y=50&INFO_FORMAT=application/vnd.ogc.gml
I get something like this:
<?xml version="1.0" encoding="UTF-8"?>
...
<gml:featureMember>
<gisws:fixed_pg_layer_19
fid="fixed_pg_layer_19.fid-4b72e5ae_12bb0771c36_-7ff9">
...
</gml:featureMember>
<gml:featureMember>
<gisws:pg_layer_19 fid="pg_layer_19.fid-4b72e5ae_12bb0771c36_-7ff8">
...
</gml:featureMember>
I assume that the text-based output should output the same features as the XML
format output.
My examples for this are coming from a spatial database so I can't provide a
simple example. If there are any problems reproducing this please let me know
and I will try to create a self-contained example.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel