Matching Geographic Roles (City) with Direct-administered Municipalities/Taiwan

  • Last update:  2024-01-22
  • Overview

    Problem

    Currently, Beijing, Shanghai, Tianjin, Chongqing, Taiwan (China), Hong Kong Special Administrative Region, and Macao Special Administrative Region are at the Province/City/Autonomous Region level in the FineBI map.

    They cannot be matched with the City level when you create a map, as shown in the following figure.

     1.png

    This document introduces how to match directly-administrative municipalities, Taiwan (China), and special administrative regions with the City level in detail.

     2.png

    Solution

    Create JSON files for these regions and add JSON files to the %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\China\ path (where FineBI JSON files are stored).

    Method One: JSON File Download

    JSON File Download

    1. You can download the JSON file JSON File Package.rar.

    Decompress the JSON file package and add files in the JSON package to the %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\China\ path, as shown in the following figure.

     3.png

    JSON File Taking Effect

    Log in to the system as the admin, choose System Management > Map Configuration, and click Sync Geo File, as shown in the following figure.

     4.png

    Method Two: Custom the JSON File of the Directly-Administered Municipality/Taiwan (China)/Special Administrative Region

    Take the Macao Special Administrative Region as an example. The same operation can be applied to other regions.

    JSP File Creation

    Add two empty JSON files in the %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\China\ path, as shown in the following figure.

     5.png

    JSON File Edit

    1. Open the Macao Special Administrative Region-area.json and the Macao Special Administrative Region-point.json files through an editor and add the same code to both of these two empty files, as shown in the following figure.

     6.png

    The code is as follows:

    {
      "type": "FeatureCollection",
      "features": []
    }

    2. Return to the %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\ path, open the China-area.json file, copy and paste the Feature structure of the Macao Special Administrative Region to the features: [] array in the Macao Special Administrative Region-area.json file, and save the file, as shown in the following figure.

     7.png

    3. Return to the %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\ path, open the China-point.json file, copy and paste the Feature structure of the Macao Special Administrative Region to the features: [] array in the Macao Special Administrative Region-point.json file, and save the file, as shown in the following figure.

     8.png

    4. After completion, you can refer to section "JSON File Taking Effect" to make the JSON file effective.

    Effect Display

    Map Configuration

    Log in to the FineBI system, choose System Management > Map Configuration > Geographic Information > Area to view that the Macao Special Administrative Region has been added to the City level, as shown in the following figure.

     9.png

    Geographical Region Match (City)

    1. Create a component through the data Regional Data Analysis, select Geographical Role from the drop-down list of the City field, and choose City from the shortcut menu, as shown in the following figure.

     10.png

    2. You can view that Macao Special Administrative Region in the City field can match Macao Special Administrative Region in the City level, as shown in the following figure.

    11.png

    附件列表


    主题: Creating a Visual Component
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy