Hey!
Executing:
http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=topp:states&propertyName=STATE_NAME,LAND_KM,the_geom&outputFormat=GML2&CQL_FILTER=STATE_NAME=%27Montana%27
Gives me 3 "montana" features. If i omit the "propertyName", then i get only
one feature (which is correct).
I can fix the problem by inserting this code:
if (m > 0 && n == 1 && "propertyName".equals(property)){
EMFUtils.set(query, property, (Collection<?>)values);
return;
}
below the:
if ((m == 1) && (n > 1)) {
//apply single value to all queries
EMFUtils.set(query, property, values.get(0));
return;
}
in the GetFeatureKvpRequestReader.java
If i do not set this, then the query gets cloned N times (the number of
requested propertyNames) and results in multiple features in the response.
Also the "propertyName" attribute does not get set.
Can anyone verify / replicate that this is a bug?
This affects only the GET method, tested on GS 2.5
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GetFeature-feature-duplicates-tp5135280.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users