On Tue, Dec 21, 2010 at 6:57 AM, Miles Jordan <[email protected]> wrote:
> Hmm.. trying to use the PropertyExists function and not sure how to reference 
> the feature. I would have thought that it would only take one argument, the 
> propertyName, but the docs say:
>
> Name - PropertyExists
> Arguments - f:Feature, propertyName:String
> Description - Returns true if f has a property named propertyName

 All functions get the current feature as an implicit argument. I
guess the documentation
is wrong :-p

> <ogc:PropertyExists>
>    <!-- What goes here as the first argument? -->
>    <ogc:Literal>MY_PROPERTY</ogc:Literal>
> </ogc:PropertyExists>

The function would have to be called like:

<ogc:Function name="PropertyExists">
  <ogc:Literal>MY_PROPERTY</ogc:Literal>
</ogc:Function>

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313

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

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

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to