Unexpected behaviour of filter processing for app-schema
--------------------------------------------------------
Key: GEOT-2927
URL: http://jira.codehaus.org/browse/GEOT-2927
Project: GeoTools
Issue Type: Bug
Components: data app-schema
Affects Versions: 2.6.1
Environment: geotools-trunk
geoserver-trunk
Reporter: Pavel Golodoniuc
Priority: Critical
I have noticed that when serving the data as a complex feature from a
denormalised view, which contains the following data:
||GML_ID||SITE_ID||URN||<< skipped >>||NAME_VALUE||NAME_CODESPACE||
|er.mineraloccurrence.1|1|urn:cgi:feature:NTGS:MineralOccurrence:1|<< skipped
>>|21|http://services.auscope.org/ntgs-earthresource|
|er.mineraloccurrence.1|1|urn:cgi:feature:NTGS:MineralOccurrence:1|<< skipped
>>|Keep River 1|http://services.auscope.org/ntgs-earthresource|
|er.mineraloccurrence.1|1|urn:cgi:feature:NTGS:MineralOccurrence:1|<< skipped
>>|urn:cgi:feature:NTGS:MineralOccurrence:1|http://www.ietf.org/rfc/rfc2141|
It works well, when WFS is queries without filters, like:
http://localhost:9090/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=er:MineralOccurrence&maxFeatures=50
But then, if you're trying to find a feature by one of its gml:name attributes,
which are mapped to the NAME_VALUE field in the database, you will get a
feature with this particular gml:name attribute only. All other names will be
omitted. As I understand it should be a problem somewhere in the SQL generation
code.
The request I used to reproduce this behaviour looks like
http://localhost:9090/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typename=er:MineralOccurrence&namespace=xmlns(er=urn:cgi:xmlns:GGIC:EarthResource:1.1)&filter=%3Cogc%3AFilter+xmlns%3Aer%3D%22urn%3Acgi%3Axmlns%3AGGIC%3AEarthResource%3A1.1%22+xmlns%3Awfs%3D%22http%3A%2F%2Fwww.opengis.net%2Fwfs%22+xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22+xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22%3E%3Cogc%3APropertyIsEqualTo%3E%3Cogc%3APropertyName%3Egml%3Aname%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3Eurn%3Acgi%3Afeature%3ANTGS%3AMineralOccurrence%3A1%3C%2Fogc%3ALiteral%3E%3C%2Fogc%3APropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E
PS. An assumption is made that http://jira.codehaus.org/browse/GEOT-2926 is
fixed.
--
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
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel