ogc filter getFeature

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ogc filter getFeature

Samanta.Biasiolli

Hi,
i was trying the "Obligations" example with OGC Filter expression.

This is my Filter in permission.xml (same example on your site)

<Permission name="bob_GetFeature_topp_states">
            <Action value="/operations/GetFeature"/>
            <Resource value="/featuretype/states"/>
            <Subject value="bob"/>
            <Obligation name="obligation:wfs:filter">
                <Attribute attributeDataType="http://www.opengis.net/ogc" name="filter">    <![CDATA[
                    <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:topp="http://www.openplans.org/topp">
            <ogc:PropertyIsLike wildCard="*" singleChar="#" escapeChar="!">
      <ogc:PropertyName>STATE_NAME</ogc:PropertyName>
      <ogc:Literal>Texas</ogc:Literal>
       </ogc:PropertyIsLike>
                    </ogc:Filter>]]>
                </Attribute>
                <Attribute attributeDataType="xs:string" name="featuretype">states</Attribute>
            </Obligation>
        </Permission>


My getFeature request in post is:

<wfs:GetFeature service="WFS" version="1.1.0"
  xmlns:topp="http://www.openplans.org/topp"
  xmlns:wfs="http://www.opengis.net/wfs"
  xmlns:ogc="http://www.opengis.net/ogc"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengis.net/wfs
                      http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
  <wfs:Query typeName="topp:states">
    <ogc:Filter>
       <PropertyIsEqualTo>
                <PropertyName>STATE_NAME</PropertyName>
                <Literal>Delaware</Literal>
          </PropertyIsEqualTo>
    </ogc:Filter>
    </wfs:Query>
</wfs:GetFeature>

But user Bob receives geometry for State 'Delaware', It isn't what I expected because Bob should only see State Texas.
It is possibile filter for state?

Thank you.

Samanta





Le informazioni contenute in questo messaggio di posta elettronica sono riservate e confidenziali e ne e' vietata la diffusione in qualsiasi modo o forma. Qualora Lei non fosse la persona destinataria del presente messaggio, La invitiamo a non diffonderlo e ad eliminarlo, dandone gentilmente comunicazione al mittente.
The information included in this e-mail and any attachments are confidential and may also be privileged. If you are not the correct recipient, you are kindly requested to notify the sender immediately, to cancel it and not to disclose the contents to any other person.
Die Informationen in dieser E-Mail-Mitteilung sind vertraulich und deren Verbreitung in jeglicher Art oder Form ist untersagt. Sollten Sie diese Nachricht irrtümlich erhalten haben, ersuchen wir Sie, sofort den Absender darüber zu informieren und die Mail zu löschen.

http://www.dedagroup.it

_______________________________________________
Security mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/security
http://security.forum.52north.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ogc filter getFeature

mani
Dear Samanta,

I know your posted this long time ago. Because I have the same problem I am just wondering if you could find a solution for that.

Please let me know if you have any solution and you are still working with WSS and WFS.

Thanks
Mani
Loading...