wso2cep:错误 - 'within'既不是函数扩展也不是执行计划中的聚合属性扩展“ExecutionPlan11”

时间:2016-04-25 08:32:43

标签: wso2cep

我正在使用WSO2 CEP 4.1.0版本进行实时事件处理,我正在编写一个执行计划,用于检查输入的地理坐标是否在多边形内。但是得到一个错误:'within'既不是函数扩展也不是执行计划中的聚合属性扩展“ExecutionPlan11”

我的执行计划如下,请帮助我解决此错误。

/ *输入一个唯一的ExecutionPlan * / @Plan:名称( 'ExecutionPlan11')

@Import( 'NewInputStream:1.0.0') define stream instream(meta_sourceId string,meta_engOilTemp float,meta_engFuelRate float,meta_acceleratorPedalPos float,meta_engSpeed float,meta_barometricPressure float,meta_receivedTime long,meta_latitude double,meta_longitude double);

@Export( 'NewOutputStream:1.0.0') define stream outstream(meta_sourceId string,meta_alarmName string,meta_alarmMessage string,meta_alarmAttribute string,meta_data string,meta_unit string,meta_pointId string,meta_pointName string,meta_deviceId string,meta_receivedTime long);

来自instream [geo:within(meta_latitude,meta_longitude,“{'type':'Polygon','coordinates':[[[12.52,77.32],[12.89,77.69],[13.011,77.686],[13.058] ,77.555],[12.9284,77.4421]]]}“== false)]

选择meta_sourceId,“Geofencing Alarm”为meta_alarmName,“Out of geo range”为meta_alarmMessage,“geofence”为meta_alarmAttribute, “NA”为meta_data,“NA”为meta_unit,“Latitude”为meta_pointId,“longitude”为meta_pointName, “D1”为meta_deviceId,meta_receivedTime 插入到流出;

1 个答案:

答案 0 :(得分:0)

I guess you have not installed gpl features.Above geo functions does not come in the default CEP pack.To use geo functions you need to install corresponding gpl features.Please follow link to install said features.(GPL - Siddhi Geo Extension)