Select to view content in your preferred language

FeatureLayer Filter Using Bitwise Operations

397
0
10-02-2023 01:51 PM
RobertBossio
Emerging Contributor

I can't find any information on this so I'm assuming it is not possible, but just in case someone has had to deal with a similar scenario. I load features on the FeatureLayer client side. An attribute of the features is "flags". Flags is an INT64 with each bit is a feature indicator (0 = off, 1 = on). I need to filter features in the layer based on specific bits being on. Normally, you can query in SQL using bitwise operators (e.g. WHERE (flags & bitLoc1on) = bitLoca1on would return all features where flags field has bit 1 on). Using bitwise operators in layer filter raises an error. Is there a way to filter features in a feature layer using some type of bitwise operator?

0 Kudos
0 Replies