当前位置: 移动技术网 > IT编程>网页制作>CSS > JS解析shapefile(.shp)

JS解析shapefile(.shp)

2019年06月04日  | 移动技术网IT编程  | 我要评论

js解析shapefile(.shp)


<script src="https://unpkg.com/shapefile@0.6"></script>
<script>

shapefile.open("../../data/天津.shp")
  .then(source => source.read()
    .then(function log(result) {
      if (result.done) return;
      console.log(result.value);
      return source.read().then(log);
    }))
  .catch(error => console.error(error.stack));
 
</script>

控制台输出结果:

\

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网