nested PropertyName filter possible?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

nested PropertyName filter possible?

robertdbuckley
Hi,

I´m trying to nest an ogc filter as follows...

<ogc:Filter>
            <ogc:PropertyIsLike>
              <ogc:PropertyName>planznr</ogc:PropertyName>
              <ogc:Literal>09.02</ogc:Literal>
              
<ogc:Filter>
                <ogc:PropertyIsEqualTo>
                  <ogc:PropertyName>bez</ogc:PropertyName>
                  <ogc:Literal>KS</ogc:Literal>
                  
                  
                </ogc: PropertyIsEqualTo >
              </ogc:PropertyIsLike
                
              </ogc:Filter>
      </ogc:Filter


is this possible?

cheers,

Robert

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Yours with thanks, Robert Buckley System: Linux Ubuntu 10.04 Server / Tomcat6 / Geoserver 2.1.2 / GeoWebCache 1.2.6)
Reply | Threaded
Open this post in threaded view
|

Re: nested PropertyName filter possible?SOLVED

robertdbuckley
This worked!

<ogc:Filter>
  <ogc:And>
    <ogc:PropertyIsLike escape="\" singleChar="_" wildCard="%">
      <ogc:PropertyName>planznr</ogc:PropertyName>
      <ogc:Literal>09.01</ogc:Literal>
    </ogc:PropertyIsLike>
    
        <ogc:PropertyIsLike escape="\" singleChar="_" wildCard="%">
          <ogc:PropertyName>bez</ogc:PropertyName>
          <ogc:Literal>KS</ogc:Literal>
    </ogc:PropertyIsLike>
    
  </ogc:And>
</ogc:Filter>


Von: Robert Buckley <[hidden email]>
An: "[hidden email]" <[hidden email]>
Gesendet: 15:17 Mittwoch, 11.Juli 2012
Betreff: [Geoserver-users] nested PropertyName filter possible?

Hi,

I´m trying to nest an ogc filter as follows...

<ogc:Filter>
            <ogc:PropertyIsLike>
              <ogc:PropertyName>planznr</ogc:PropertyName>
              <ogc:Literal>09.02</ogc:Literal>
              
<ogc:Filter>
                <ogc:PropertyIsEqualTo>
                  <ogc:PropertyName>bez</ogc:PropertyName>
                  <ogc:Literal>KS</ogc:Literal>
                  
                  
                </ogc: PropertyIsEqualTo >
              </ogc:PropertyIsLike
                
              </ogc:Filter>
      </ogc:Filter


is this possible?

cheers,

Robert

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Yours with thanks, Robert Buckley System: Linux Ubuntu 10.04 Server / Tomcat6 / Geoserver 2.1.2 / GeoWebCache 1.2.6)
Reply | Threaded
Open this post in threaded view
|

Re: nested PropertyName filter possible?

geowolf
In reply to this post by robertdbuckley
On Wed, Jul 11, 2012 at 3:17 PM, Robert Buckley
<[hidden email]> wrote:

> Hi,
>
> I´m trying to nest an ogc filter as follows...
>
> <ogc:Filter>
>             <ogc:PropertyIsLike>
>               <ogc:PropertyName>planznr</ogc:PropertyName>
>               <ogc:Literal>09.02</ogc:Literal>
>
> <ogc:Filter>
>                 <ogc:PropertyIsEqualTo>
>                   <ogc:PropertyName>bez</ogc:PropertyName>
>                   <ogc:Literal>KS</ogc:Literal>
>
>
>                 </ogc: PropertyIsEqualTo >
>               </ogc:PropertyIsLike>
>
>               </ogc:Filter>
>       </ogc:Filter>
>
>
> is this possible?

It is, but your syntax is wrong, please read the OGC 1.0 Filter specification

Cheers
Andrea

--
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users