当前位置:网站首页>Highmap gejson data format conversion script
Highmap gejson data format conversion script
2022-07-01 06:02:00 【Chengfeng XS】
highmap data source :
Download it from the website above geojson Formatted data , Then use the following script to convert .
#!/usr/bin/env node
const fs = require('fs');
const proj4 = require('proj4');
const argvArr = process.argv; // Parameters
const origialPath = argvArr[2]; // The first parameter passed in , Read the file
const outPath = argvArr[3]; // The second parameter passed in , Save the file
fs.readFile(origialPath,"utf-8", (err, data) => {
if(err) {
return console.error("read error: ", err);
}
const originalData = JSON.parse(data);
const transform = originalData["hc-transform"].default;
try{
originalData.features.forEach(feature => {
feature.geometry.coordinates.forEach(coord => {
swap(coord, transform);
})
feature.properties = {
name: feature.properties.n边栏推荐
- Orcle创建用户+角色
- MySQL中 in 和 exists 的区别
- Code shoe set - mt3149 · and - the data is not very strong. Violent pruning can deceive AC
- Debug details under pycharm
- 数据库问题,如何优化Oracle SQL查询语句更快,效率更高
- Bat operation FTP upload and download command
- Ucosiii --- engineering transplantation
- 千万不要把笔记视频乱放!
- Advanced drawing skills of Excel lecture 100 (1) - use Gantt chart to show the progress of the project
- ArcServer密码重置(账号不可以重置)
猜你喜欢

C language beginner level - realize the minesweeping game

3D打印机穿线:5种简单的解决方案

π盘,让您电脑变成个人的私有云

Thesis learning record essay multi label lift

OpenGL ES: (5) OpenGL的基本概念、OpenGL ES 在屏幕产生图片的过程、OpenGL管线(pipeline)

机械臂速成小指南(六):步进电机驱动器

穿越派与贸大合作,为大学生增添效率

excel高级绘图技巧100讲(一)-用甘特图来展示项目进度情况

freeswitch拨打分机号

LED lighting used in health lighting
随机推荐
葫芦儿 APP 使用帮助
【文件系统】如何在ubi之上运行squashfs
SQL必会题之留存率
不是你脑子不好用,而是因为你没有找到对的工具
SystemVerilog学习-07-类的继承和包的使用
Skywalking integrated Nacos dynamic configuration
指数法和Random Forest实现山东省丰水期地表水体信息
[note] e-commerce order data analysis practice
What if the data in the cloud disk is harmonious?
Ucosiii --- engineering transplantation
scope 数据导出mat
FPGA - 7系列 FPGA内部结构之Clocking -02- 时钟布线资源
分片上传与断点续传
论文学习记录随笔 多标签之LIFT
It's not that you have a bad mind, but that you haven't found the right tool
Primary application case of Excel DuPont analyzer
Oracle sequence + trigger
excel可视化
栈题目:解析布尔表达式
Send you through the data cloud