Cesium直接加载Shape文件,Js解析Shape文件库

原仓库地址:https://github.com/calvinmetcalf/shapefile-js 使用: ```javascript var base = 'data/shp.zip'; // shp文件zip压缩包或单独的shp文件路径 shp(base).then(function (data) { var promise = Cesium.GeoJsonDataSource.load(data); promise.then(function (dataSource) { gisViewer.getViewer().dataSources.add...

Cesium 2021-07-22 PM 390℃ 0条

Cesium自定义圆柱体Geomerty表面贴图

1. **自定义Geomerty实现,顶点(positions)、连接顺序(逆时针顺序,indices),UV坐标(st)** ```javascript function MyCylinderGeometry(radius , height, slice = 16) { var positions = new Float64Array((slice+1) * 2 * 3); var theta = 360 / slice; for (let j = 0; j

Cesium 2021-07-21 PM 732℃ 0条

SqlBuckCopy使用

public static class DataTableUtils { /// /// 转化一个DataTable /// /// /// /// public static DataTable ToDataTable(this List list) { ////创建属性的集合 //List pList = ...

C# 2021-07-20 PM 373℃ 0条

Vue+ElementUI-Tree组件的一些问题

render-after-expand 属性控制是否展开后才渲染。默认为true,默认情况下未展开渲染叶子节点时,改变父节点的checkbox,childern的checkChange事件不会被触发。 ajax请求数据并赋值给tree组件的data后,如需要设置默认的勾选节点,则需要使用 this.$nextTick(() => { this.$refs.tree.setCheckedKeys(["ac211a83-0ad2-4bcb-9071-191210ae1bbf"]) })

Vue 2021-07-20 PM 479℃ 0条

Windows Sever Nginx 实现开机自启动

WindowsServer 下实现Nginx等类似软件的开机自启动可以通过WinSW 软件实现,仓库地址:https://github.com/winsw/winsw ---------- 下载后将软件复制至需要启动的exe程序目录,并重命名如“nginx-service.exe”,同时在同级目录下添加同名的xml配置文件“nginx-service.xml”,配置文件内容为 nginx nginx nginx D:nginx-1.14.0\ roll ...

默认分类 2021-06-28 PM 430℃ 0条