Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gunplar committed Oct 2, 2024
1 parent fcb275f commit f9c774d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ class PropertyFilter(val req: ReadFeatures) : ResultFilter {
const val PROPERTIES = "properties"
}

/**
* Check if the feature matches the query
* @param resultTuple the tuple containing the feature
* @return the tuple back if matches, else return null
*/
override fun filter(resultTuple: ResultTuple): ResultTuple? {
val pSearch = req.query.properties ?: return resultTuple
if (resultTuple.tuple == null) return null
Expand Down

0 comments on commit f9c774d

Please sign in to comment.