Cesium Box - Spatial analysis of slope (with source code download)

Cesium


Cesium is designed for three-dimensional map of the Earth and world-class open source JavaScript. It provides a development kit based on the JavaScript language, user-friendly Web applications to quickly build a zero Virtual Earth plug-in, and in performance, precision, and multi-platform rendering quality, ease of use have quality assurance.

Renderings

About Aspect


Before we introduce the terrain contour analysis and topographic gradient analysis of spatial analysis. In this article, we use the Material interface, we introduce how to draw slope analysis chart.

Terrain contour analysis Link analysis of space: https://xiaozhuanlan.com/topic/3409815672
terrain slope analysis Link analysis of space: https://xiaozhuanlan.com/topic/8672394510

Simple awareness


First few pictures for breaking have a basic understanding of the visual map, pictures are from Baidu, if infringement, please inform.

Cesium in the aspect of practice


Principle: Modify Material Properties Globe to adapt to the world

Specific steps

1, and initializes the Earth, calling the global terrain Services

  • Cesium.Ion.defaultAccessToken = 'xxxx';
  • var viewer = new Cesium.Viewer('cesiumContainer', {
  • imageryProvider: new Cesium.UrlTemplateImageryProvider({
  • url: 'http://www.google.cn/maps/vt?lyrs=s@716&x={x}&y={y}&z={z}'
  • }),
  • terrainProvider: Cesium.createWorldTerrain({
  • requestVertexNormals: true,
  • requestWaterMask: true
  • })
  • });

2、开启深度测试

  • viewer.scene.globe.enableLighting = true;

更多详情见小专栏此文章GIS之家cesium小专栏

文章提供源码,对本专栏感兴趣的话,可以关注一波

Guess you like

Origin www.cnblogs.com/giserhome/p/11110939.html