azavea / python-sld

A simple python library that enables dynamic SLD creation and manipulation.
http://azavea.github.com/python-sld/
Apache License 2.0
27 stars 17 forks source link

"PropertyIsBetween" rule type is missing. #7

Closed gowram closed 10 years ago

gowram commented 11 years ago

Are there any workaround available for accessing this rule property with "UpperBoundary" and "LowerBoundary" Value?

dzwarg commented 11 years ago

@gowram:

Yes, you can currently use both the "PropertyIsGreaterThanOrEqualTo" rule and "PropertyIsLessThanOrEqual" rule in combination with Filters. See the sld.Filter reference section of the API documentation.

Basically, create two filters with each of those property criterion set, and combine them pythonically with "+" into a combination filter.