MCPcopy Create free account
hub / github.com/MapServer/MapServer / FLTIsSimpleFilter

Function FLTIsSimpleFilter

mapogcfilter.c:525–544  ·  view source on GitHub ↗

/ FLTIsSimpleFilter */ / Filter encoding with only attribute queries and only one bbox. */ /

Source from the content-addressed store, hash-verified

523/* Filter encoding with only attribute queries and only one bbox. */
524/************************************************************************/
525int FLTIsSimpleFilter(FilterEncodingNode *psNode)
526{
527 if (FLTValidForBBoxFilter(psNode))
528 {
529 if (FLTNumberOfFilterType(psNode, "DWithin") == 0 &&
530 FLTNumberOfFilterType(psNode, "Intersect") == 0 &&
531 FLTNumberOfFilterType(psNode, "Intersects") == 0 &&
532 FLTNumberOfFilterType(psNode, "Equals") == 0 &&
533 FLTNumberOfFilterType(psNode, "Disjoint") == 0 &&
534 FLTNumberOfFilterType(psNode, "Touches") == 0 &&
535 FLTNumberOfFilterType(psNode, "Crosses") == 0 &&
536 FLTNumberOfFilterType(psNode, "Within") == 0 &&
537 FLTNumberOfFilterType(psNode, "Contains") == 0 &&
538 FLTNumberOfFilterType(psNode, "Overlaps") == 0 &&
539 FLTNumberOfFilterType(psNode, "Beyond") == 0)
540 return TRUE;
541 }
542
543 return FALSE;
544}
545
546
547

Callers 3

msWFSGetFeatureFunction · 0.85

Calls 2

FLTValidForBBoxFilterFunction · 0.85
FLTNumberOfFilterTypeFunction · 0.85

Tested by

no test coverage detected