Hi All,
I'm trying to make a FeatureFenceParameters from a Mobile.Geodatabase for a Geotrigger. Everything loads however the trigger does not work as expected. Everything works fine if the featureTable for FeatureFenceParameters is built from a ServiceFeatureTable.
I'm unsure how to correctly initiate a FeatureLayer from a Mobile.Geodatabase that will work for FeatureFenceParameters featureTable?
Any help is appreciated.
//FeatureLayer {
// ServiceFeatureTable {
// id: fT
// url: "https://..."
// definitionExpression: "STATUS IN ('Exists')"
// }
//}
FeatureLayer {
id: ft
featureTable: gdb.geodatabaseFeatureTablesByTableName["ThisTable"] ? gdb.geodatabaseFeatureTablesByTableName["ThisTable"] : null
definitionExpression: "STATUS IN ('Exists')"
}
FeatureFenceParameters {
id: fFP
featureTable: fT.featureTable
//featureTable: fT ---- Error: Unable to assign QmlFeatureLayer to QmlFeatureTable
//featureTable: gdb.geodatabaseFeatureTablesByTableName["ThisTable"] ? gdb.geodatabaseFeatureTablesByTableName["ThisTable"] : null ---- Does not produce anything
bufferDistance: 50
}
GeotriggerMonitor {
id: geotriggerMonitor
geotrigger: FenceGeotrigger{
feed: LocationGeotriggerFeed {
locationDataSource: simulatedLocationdataSource
}
ruleType: Enums.FenceRuleTypeEnterOrExit
fenceParameters: fFP
}
// Handle notification events
onGeotriggerNotification: {
if (geotriggerNotificationInfo.fenceNotificationType === Enums.FenceNotificationTypeEntered) {
entry();
} else{
exit();
}
}
Component.onCompleted: {
// Start monitoring Geotrigger event.
console.log("GeotriggerMonitor: Start monitoring!");
geotriggerMonitor.start();
}
}