0

我正试图从这张 Vega-lite 世界地图中删除南极洲。此处vega-editor 中的示例。想知道如何获取国家或大陆的特定数据

4

1 回答 1

2

使用过滤器转换:

 {
  "name": "world", // <---- Your map
  "url": "https://vega.github.io/editor/data/world-110m.json",
  "format": {
    "type": "topojson",
    "feature": "countries"
  },
  "transform": [ 
    {      
      "type": "filter",
      "expr":"datum.id!=10" //<---- Antarctica has id 10
    }
  ]
},

看你的例子

于 2019-01-05T14:13:16.363 回答