[Geoserver-users] PropertyIsInList?

Is there something such as this?
I don’t see it in the Filter spec.
We have a layer with 281 polygons (elementary school districts).
The user would like to color the polygons one by one based on id numbers.
So a list of ids would be red, a different set would be green.
He generates this request based on information that he has locally, it’s not in the layer itself.
In order to keep the request small, I was hoping there was a list option.
Otherwise perhaps he could use PropertyIsLessThan, PropertyIsGreaterThan and use as many ranges
of ids as possible.

Aleda Freeman
MassGIS
Office of Geographic and Environmental Information
251 Causeway St. 5th floor
Boston, MA 02114
phone: 617-626-1193
fax: 617-626-1249
http://www.mass.gov/mgis - MassGIS
http://maps.massgis.state.ma.us/biodiversity - Biodiversity Days

Yeah, there's no PropertyIsInList. We have a bunch of extra operations as 'functions', but even that could be a bit tricky to implement. But I suppose one of the arguments could be a comma delimited list. But in the backend I think it would just translate in to more complex filters any ways.

The other thing you could do is a featureid. If the id is the featureid, then you can use it, and it's pretty compact.

<Filter>
<Or>
<FeatureId fid="TREESA_1M.1234"/>
<FeatureId fid="TREESA_1M.1238"/>
<FeatureId fid="TREESA_1M.1239"/>
</Or>
</Filter>

I think is how you do it.

Freeman, Aleda (ENV) wrote:

Is there something such as this? I don't see it in the Filter spec.
We have a layer with 281 polygons (elementary school districts).
The user would like to color the polygons one by one based on id
numbers.
So a list of ids would be red, a different set would be green.
He generates this request based on information that he has locally, it's
not in the layer itself.
In order to keep the request small, I was hoping there was a list
option.
Otherwise perhaps he could use PropertyIsLessThan, PropertyIsGreaterThan
and use as many ranges
of ids as possible.

Aleda Freeman
MassGIS
Office of Geographic and Environmental Information
251 Causeway St. 5th floor
Boston, MA 02114
phone: 617-626-1193
fax: 617-626-1249
http://www.mass.gov/mgis - MassGIS
http://maps.massgis.state.ma.us/biodiversity - Biodiversity Days

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org