反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Municipalities match geographic roles (cities)

  • Recent Updates: April 25, 2022
  • 1. Overview

    1.1 Problem description

    At present, Beijing, Shanghai, Tianjin, Chongqing, Taiwan, Hong Kong Special Administrative Region and Macao Special Administrative Region in BI map are all counted as provincial level.

    When making a map, the user wants to put these regions together with prefecture level cities, but as a province level, they cannot be matched with prefecture level cities, as shown in the following figure:

    无法匹配.png

    So how can these areas directly match prefecture level cities? It will be described in detail below.

    匹配.png

    1.2 Solution ideas

    Path to store map JSON file: %FR_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\China\, add JSON files to these regions as prefecture level cities, as shown in the figure below:

    新增.png

    2. Operation method

    Take the Macao Special Administrative Region as an example, you can operate other regions  in the same way.

    2.1 New JSON file

    Undert the BI installation directory %FR_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\China\, add 2 blank JSON files, as shown in the following figure:

    解决思路1.png

    2.2 Edit JSON file

    1) Use the editor to open "Macau-area.json" and "Macau-point.json", and add the same code in these two blank files, as shown in the following figure:

    编辑json.png

    The code is as follows:

    {

      "type": "FeatureCollection",

      "features": []

    }

    2) Return to directory %FR_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\ ,open "China-area.json", select and copy the feature structure of Macau Special Administrative Region into the features: [] array of "Macau-area.json", and save the file. As shown in the figure below:

    拷贝.png

    3) Return to directory %FR_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\, open "China-point.json", select and copy the feature structure of Macau Special Administrative Region into thefeatures: [] array of "Macau-point.json", and save the file. As shown in the figure below:

    point-copy.png

    4) When the operation is complete, restart BI.

    2.3 View the effect

    2.3.1 Map configuration

    Enter FineBI decision-making platform, click "Manage" → "Map Configuration"  → "Geographic Information" → "Area", add a new prefecture level city, "Macau", as shown in the figure below:

    地图配置.png

    2.3.2 Match geographic location (city)

    1) Click "Dashboard" on FineBI decision platform to create a "New Dashboard", as shown in the figure below:

    仪表板.png

    2) Click "Add component" and select "area data" in the data list, as shown in the following figure:

    添加组件 (1).png

    3) Select "Geographic role" → "City" from the "Dimension" field "City"'s drop-down menu, as shown in the following figure:

    维度字段.png

    4) It can be seen that "Macao" in the city field can be matched with "Macao" at the prefecture level, as shown in the following figure:

    效果.png

    3. Resource download

    Click and download the JSON file(can be used directly):

    JSON file.rar

    Attachment List


    Theme: Build Charts and Analyze data
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭