Hi,

Instead of:

   <fes:PropertyName><namespace>:<featureType></fes:PropertyName>

... it should be (the namespace is wfs not fes):

   <wfs:PropertyName><namespace>:<featureType></wfs:PropertyName>

GeoServer is "ignoring" that invalid element, that's why the query doesn't fail but returns all properties.

That say, GeoServer will throw the same exception as the GetPropertyValue operation :(

Regards,

Nuno Oliveira

On 09/24/2018 03:49 PM, Diego Sanmartino wrote:
Hi all,

This wfs getfeature work correctly, but also in this case don't work
<fes:PropertyName><namespace>:<featureType></fes:PropertyName>

wfs query:
<GetFeature
   version="2.0.2"
   service="WFS"
   xmlns="http://www.opengis.net/wfs/2.0";
   xmlns:fes="http://www.opengis.net/fes/2.0";
   xmlns:myns="http://www.someserver.example.com/myns";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://www.opengis.net/wfs/2.0
http://schemas.opengis.net/wfs/2.0/wfs.xsd
http://www.someserver.example.com/myns ./GetFeature_09.xsd">
   <Query typeNames="<namespace>:<featureType>">
*<fes:PropertyName><namespace>:<featureType></fes:PropertyName>*
      <fes:Filter>
               <fes:PropertyIsEqualTo>
<fes:ValueReference><namespace>:<featureType></fes:ValueReference>
<fes:Literal>myval</fes:Literal>
               </fes:PropertyIsEqualTo>
      </fes:Filter>
   </Query>
</GetFeature>

Therefore I have still the original problem:
to obtain a subset of feature from a complex feature.

If I use a wfs GetPropertyValue I obtain a class cast exception.
If I use a wfs GetFeature the query work correctly bat the <fes:PropertyName> is apprently
ignored by geoserver.

Thanks in advance for all hints.
Diego

Il giorno gio 20 set 2018 alle ore 14:23 Diego Sanmartino <diego.sanmart...@gmail.com <mailto:diego.sanmart...@gmail.com>> ha scritto:

    Thank you for your response, I am going to opening a JIRA ticket for this
    problem.

    But, I need to recive a subset of features from my complex feature and
    after GetPropertyValue failure I try with this wfs GetFeature:

        <GetFeature
       service="WFS"
       xmlns="http://www.opengis.net/wfs/2.0";
       xmlns:fes="http://www.opengis.net/fes/2.0";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="http://www.opengis.net/wfs/2.0
    http://schemas.opengis.net/wfs/2.0.02.0/wfs.xsd
    http://www.someserver.example.com/myns ./GetFeature_09.xsd">
        <Query typeNames="<namespace>:<featureType>"/>
        <*PropertyName*><namespace>:address</PropertyName>
            <fes:Filter>
                <fes:And>
                    <fes:PropertyIsEqualTo>
    <fes:ValueReference><namespace>:address</fes:ValueReference>
    <fes:Literal>Pavleka</fes:Literal>
                    </fes:PropertyIsEqualTo>
                </fes:And>
            </fes:Filter>
        </GetFeature>

        But from server I receive this exception:

        <ows:ExceptionText>
            java.lang.NumberFormatException: For input string: &quot;
            [[ <namespace>:address = Pavleka ]]&quot;
            For input string: &quot;[[ <namespace>:address = Pavleka ]]
            &quot;
        </ows:ExceptionText>

        PS: address is a String, this is a portion of xsd:

        <xs:element name="address" minOccurs="0">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="500" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>

        Do you have any suggestions?

        Thank
        Diego

    Il giorno mer 19 set 2018 alle ore 17:24 Nuno Oliveira
    <nuno.olive...@geo-solutions.it <mailto:nuno.olive...@geo-solutions.it>>
    ha scritto:

        Hi,

        For reference:
        http://docs.opengeospatial.org/is/09-025r2/09-025r2.html#335

        In the first query the /valueReference='<namespace>:<attribute>'
        /parameter has no effect that's why it works :)
        So, in this case it works means: it doesn't throw an exception but it
        actually doesn't select only that value property.

        Regarding the second request, indeed the request is valid but its
        falling, can you open a JIRA ticket for this ?

        Thank you,

        Nuno Oliveira

        On 09/19/2018 01:35 PM, Diego Sanmartino wrote:
        HI all,

        We are working with geoserver 2.13 and with some complex features.
        Apparently the complex features are correctly working.
        If we use the wfs getfeature we obtain the corrects responses.
        For examble this query work correctly:

        <wfs:*GetFeature *service="WFS" valueReference='<namespace>:<attribute>'
                version="2.0" xmlns:fes="http://www.opengis.net/fes/2.0";
                xmlns:gml="http://www.opengis.net/gml/3.2";
                xmlns:wfs="http://www.opengis.net/wfs/2.0";
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                xsi:schemaLocation="http://www.opengis.net/wfs/2.0
        http://schemas.opengis.net/wfs/2.0/wfs.xsd
        http://www.opengis.net/gml/3.2
        http://schemas.opengis.net/gml/3.2.1/gml.xsd";>
                    <wfs:Query typeNames="<namespace>:<attribute>"/>
            </wfs:GetFeature>

        Instead this query obtain a class cast exception:

        <wfs:*GetPropertyValue *service="WFS"
        *valueReference*='<namespace>:<attribute>'
            version="2.0" xmlns:fes="http://www.opengis.net/fes/2.0";
            xmlns:gml="http://www.opengis.net/gml/3.2";
            xmlns:wfs="http://www.opengis.net/wfs/2.0";
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
            xsi:schemaLocation="http://www.opengis.net/wfs/2.0
        http://schemas.opengis.net/wfs/2.0/wfs.xsd
        http://www.opengis.net/gml/3.2
        http://schemas.opengis.net/gml/3.2.1/gml.xsd";>
                <wfs:Query typeNames="<namespace>:<attribute>"/>
            </wfs:GetPropertyValue>

        Do you have any hints?
        Thanks in advance




        _______________________________________________
        Geoserver-users mailing list

        Please make sure you read the following two resources before posting to 
this list:
        - Earning your support instead of buying it, but Ian 
Turton:http://www.ianturton.com/talks/foss4g.html#/
        - The GeoServer user list posting 
guidelines:http://geoserver.org/comm/userlist-guidelines.html

        If you want to request a feature or an improvement, also see 
this:https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


        Geoserver-users@lists.sourceforge.net
        <mailto:Geoserver-users@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/geoserver-users

-- Regards,
        Nuno Oliveira
        ==
        GeoServer Professional Services from the experts!
        Visithttp://goo.gl/it488V  for more information.
        ==

        Nuno Miguel Carvalho Oliveira
        @nmcoliveira
        Software Engineer

        GeoSolutions S.A.S.
        Via di Montramito 3/A
        55054  Massarosa (LU)
        Italy
        phone: +39 0584 962313
        fax:      +39 0584 1660272

        http://www.geo-solutions.it
        http://twitter.com/geosolutions_it

        -------------------------------------------------------

        Con riferimento alla normativa sul trattamento dei dati
        personali (Reg. UE 2016/679 - Regolamento generale sulla
        protezione dei dati “GDPR”), si precisa che ogni
        circostanza inerente alla presente email (il suo contenuto,
        gli eventuali allegati, etc.) è un dato la cui conoscenza
        è riservata al/i solo/i destinatario/i indicati dallo
        scrivente. Se il messaggio Le è giunto per errore, è
        tenuta/o a cancellarlo, ogni altra operazione è illecita.
        Le sarei comunque grato se potesse darmene notizia.

        This email is intended only for the person or entity to
        which it is addressed and may contain information that
        is privileged, confidential or otherwise protected from
        disclosure. We remind that - as provided by European
        Regulation 2016/679 “GDPR” - copying, dissemination or
        use of this e-mail or the information herein by anyone
        other than the intended recipient is prohibited. If you
        have received this email by mistake, please notify
        us immediately by telephone or e-mail.





_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati
personali (Reg. UE 2016/679 - Regolamento generale sulla
protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto,
gli eventuali allegati, etc.) è un dato la cui conoscenza
è riservata al/i solo/i destinatario/i indicati dallo
scrivente. Se il messaggio Le è giunto per errore, è
tenuta/o a cancellarlo, ogni altra operazione è illecita.
Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to
which it is addressed and may contain information that
is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European
Regulation 2016/679 “GDPR” - copying, dissemination or
use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you
have received this email by mistake, please notify
us immediately by telephone or e-mail.

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to