{"id":19838889,"url":"https://github.com/supermap/clip-tool-for-echarts","last_synced_at":"2025-08-18T19:07:25.169Z","repository":{"id":150182186,"uuid":"129901873","full_name":"SuperMap/clip-tool-for-echarts","owner":"SuperMap","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-25T01:43:28.000Z","size":9346,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-28T15:46:25.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuperMap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-17T12:34:28.000Z","updated_at":"2023-09-01T06:38:59.000Z","dependencies_parsed_at":"2023-04-08T09:18:09.066Z","dependency_job_id":null,"html_url":"https://github.com/SuperMap/clip-tool-for-echarts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SuperMap/clip-tool-for-echarts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMap%2Fclip-tool-for-echarts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMap%2Fclip-tool-for-echarts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMap%2Fclip-tool-for-echarts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMap%2Fclip-tool-for-echarts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperMap","download_url":"https://codeload.github.com/SuperMap/clip-tool-for-echarts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMap%2Fclip-tool-for-echarts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271043673,"owners_count":24689801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T12:19:28.178Z","updated_at":"2025-08-18T19:07:25.038Z","avatar_url":"https://github.com/SuperMap.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clip Tool for ECharts\n\nClip Tool for ECharts 是一个基于 node 的大数据切割工具，用于将点数据和线数据切割、存储，以支持 ECharts 大数据量（百万以上）的渲染场景。\n\n## 用法\n\n* 第一步：配置 [config.json](#config) 文件\n\n* 第二步：运行 `node` 命令 `$ npm start`,(运行并输出进度命令：`$ npm start-log`)\n\n* 第三步：生成`resultData`文件夹，输出数据文件（默认操作）\n\n\u003ch2 id='config'\u003econfig.json\u003c/h2\u003e\n\n`config.json` 配置文件示例与参数介绍如下：\n``` javascript\n{\n  \"url\": \"http://127.0.0.1:8090/iserver/services/data-beijingroads/rest/data\",\n  \"exportFileCount\": 10,\n  \"options\": {\n    \"featuresCount\": 60364,\n    \"isCompress\": true,\n    \"datasetNames\": \"beijingroads:point\", \n    \"isAverageStorage\": true\n  }\n}\n```\n 必填参数\n* url: 数据来源URL。\n  * 支持的数据来源\n    * GeoJSON 格式文件\n    ``` javascript\n    //GeoJSON 数据格式示例：\n    ｛\"features\": [{\n            \"type\": \"Feature\",\n            \"geometry\": {\n               \"type\": \"Point\", // 或者为 \"LineString\" 和 \"MultiLineString\"\n               \"coordinates\": [-47.8977476573595,-15.792110943058866]\n            }\n       ]\n    ｝\n    ```\n    *  SuperMap iServer Rest 数据服务\n    ``` javascript\n    http://support.supermap.com.cn:8090/iserver/services/data-world/rest/data\n    ```\n    *  SuperMap iServer JSON 格式文件\n    ``` javascript\n    //SuperMap iServer JSON数据格式示例:\n    {\"features\": [{\n           \"geometry\": {\n              \"parts\": [1],\n              \"type\": \"POINT\", // 或者为 \"LINE\"\n              \"points\": [{\n                    \"x\": -47.8977476573595,\n                    \"y\": -15.792110943058866\n                  }\n              ]\n           }\n      ]\n    }\n    ```\n  * 支持的数据类型\n    * 点\n    * 线\n    \n* exportFileCount: 输出的文件数。\n\n可选参数\n* options.featuresCount: 切割的要素个数，默认为所有features。\n* options.isCompress: 文件是否压缩存储。true 则压缩，数据将存为 *.bin 格式，false 则不压缩，数据将存为 *.json 格式。默认为 true。\n* options.datasetNames: 切割的数据集名称，当 \"url\" 为数据服务地址时，必须指定该参数。\n* options.isAverageStorage: 是否将数据平均存入文件。true 则平均存储，输出的每个文件大小相近；false 则不平均存储，输出文件大小将依次递减，默认为 false。\n\n\n## Samples\n\n* 加载数据效果示例如下：\n\n [![](http://iclient.supermap.io/dev/examples/mapboxgl/img/mb_echartsLinesMillionsWaterSystem.png)](http://iclient.supermap.io/dev/examples/mapboxgl/editor.html#echarts_linesDrawMillionsWaterSystem)\n [![](http://iclient.supermap.io/dev/examples/leaflet/img/l_echartsLinesMillionsRoads.png)](http://iclient.supermap.io/dev/examples/leaflet/editor.html#echarts_linesDrawMillionsRoadsNetwork_50WFeatures)\n [![](http://iclient.supermap.io/dev/examples/openlayers/img/ol_echartsLinesMillionsBeijingRoads.png)](http://iclient.supermap.io/dev/examples/openlayers/editor.html#echarts_linesDrawMillionsBeijingRoadsNetwork)\n\n## 许可\n\n[ Apache License 2.0 ](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupermap%2Fclip-tool-for-echarts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupermap%2Fclip-tool-for-echarts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupermap%2Fclip-tool-for-echarts/lists"}