简体   繁体   English

Keplergl 过滤器:每个字段有多个属性?

[英]Keplergl Filters : multiple attributes per field?

Is the keplergl filter system able to parse arrays with multiple categories ? keplergl 过滤器系统是否能够解析具有多个类别的数组? For example a point representing a industrial building who would have all of thoses attributes in the same field ["Non-hazardous waste", "Hazardous waste", "Inert waste"]例如,代表工业建筑的点在同一领域具有所有这些属性[“非危险废物”、“危险废物”、“惰性废物”]

if not is there a way to inject the filter action or the data parsing action ?如果没有,有没有办法注入过滤器动作或数据解析动作?

This feature does not seem to be implemented yet此功能似乎尚未实现

Kepler's data-processor parses Arrays and Objects as it is GeoJson Kepler 的数据处理器解析数组和对象,因为它是 GeoJson

processors/data-processor.js line 399 处理器/数据处理器.js 第 399 行

  switch (aType) {
case DATE:
  return ALL_FIELD_TYPES.date;
case TIME:
case DATETIME:
  return ALL_FIELD_TYPES.timestamp;
case FLOAT:
  return ALL_FIELD_TYPES.real;
case INT:
  return ALL_FIELD_TYPES.integer;
case BOOLEAN:
  return ALL_FIELD_TYPES.boolean;
case GEOMETRY:
case GEOMETRY_FROM_STRING:
case PAIR_GEOMETRY_FROM_STRING:
case ARRAY:
case OBJECT:
  // TODO: create a new data type for objects and arrays
  return ALL_FIELD_TYPES.geojson;
case NUMBER:
case STRING:
case ZIPCODE:
  return ALL_FIELD_TYPES.string;
default:
  globalConsole.warn(`Unsupported analyzer type: ${aType}`);
  return ALL_FIELD_TYPES.string;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM