当前位置: 首页 > wzjs >正文

衡水电子网站建设中国国际园林博览会

衡水电子网站建设,中国国际园林博览会,房产发布网站建设,ppt网站超链接怎么做这里写自定义目录标题 描述代码实现结果 描述 高程分析是地理信息系统(GIS)中的核心功能之一&#xff0c;主要涉及对地表高度数据(数字高程模型, DEM)的处理和分析。 ArcGIS For JavaScript4.32版本的发布&#xff0c;提供了Web端的针对高程分析的功能。 代码实现 <!doct…

这里写自定义目录标题

  • 描述
  • 代码实现
  • 结果

描述

高程分析是地理信息系统(GIS)中的核心功能之一,主要涉及对地表高度数据(数字高程模型, DEM)的处理和分析。
ArcGIS For JavaScript4.32版本的发布,提供了Web端的针对高程分析的功能。

代码实现

<!doctype html>
<html lang="en"><head><meta charset="utf-8" /><meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /><title>地形高程分析</title><link rel="stylesheet" href="https://js.arcgis.com/4.32/esri/themes/light/main.css" /><script src="https://js.arcgis.com/4.32/"></script><style>html,body,#viewDiv {padding: 0;margin: 0;height: 100%;width: 100%;background-color: ghostwhite;}#opacitySliderDiv {background: #607d8bbb;padding: 10px;border-radius: 5px;}#opacitySliderDiv label {margin: 5px 0;text-align: left;display: block;color: #1833c8;}</style><script>require(["esri/Map","esri/views/SceneView","esri/layers/support/RasterFunction","esri/layers/support/rasterFunctionUtils","esri/layers/ImageryTileLayer","esri/widgets/Slider","esri/widgets/Expand"], (Map,SceneView,RasterFunction,rasterFunctionUtils,ImageryTileLayer,Slider,Expand) =>(() => {let customColor = [0, 122, 194];const customAnalysisParams = {elevation: { min: 2000, max: 9000 },slope: { min: 10, max: 90 },aspects: { N: false, NE: false, E: false, SE: true, S: true, SW: true, W: false, NW: false }};function createCustomAnalysis(color = customColor) {// Mask out elevation outside of parameter rangeconst elevationMask = rasterFunctionUtils.mask({includedRanges: [[customAnalysisParams.elevation.min, customAnalysisParams.elevation.max]],noDataValues: [[-9999]],noDataInterpretation: "match-any"});// Compute slope on masked elevationconst slopeFunction = rasterFunctionUtils.slope({slopeType: "degree",zFactor: 1,raster: elevationMask});// Mask out slopes outside of parameter rangeconst slopeMask = rasterFunctionUtils.mask({includedRanges: [[customAnalysisParams.slope.min, customAnalysisParams.slope.max]],noDataValues: [[-9999]],noDataInterpretation: "match-any",raster: slopeFunction});// Map included slopes >= 0 to 1const greaterThanSlope0 = rasterFunctionUtils.greaterThanEqual({raster: slopeMask,raster2: 0});// Compute aspect on masked elevationconst aspectFunction = rasterFunctionUtils.aspect({raster: elevationMask});// Map aspect as 1 (include) or 0 (exclude) according to parametersconst remapAspectFunction = rasterFunctionUtils.remap({rangeMaps: [{ range: [-Infinity, 0], output: 1 }, // Include flats{ range: [360, Infinity], output: 1 }, // Include flats{ range: [337.5, 360], output: +customAnalysisParams.aspects.N },{ range: [0, 22.5], output: +customAnalysisParams.aspects.N },{ range: [22.5, 67.5], output: +customAnalysisParams.aspects.NE },{ range: [67.5, 112.5], output: +customAnalysisParams.aspects.E },{ range: [112.5, 157.5], output: +customAnalysisParams.aspects.SE },{ range: [157.5, 202.5], output: +customAnalysisParams.aspects.S },{ range: [202.5, 247.5], output: +customAnalysisParams.aspects.SW },{ range: [247.5, 292.5], output: +customAnalysisParams.aspects.W },{ range: [292.5, 337.5], output: +customAnalysisParams.aspects.NW }],raster: aspectFunction});// Combine slope and aspect rastersconst combineAspectSlope = rasterFunctionUtils.booleanAnd({raster: greaterThanSlope0,raster2: remapAspectFunction});const colorMapFinal = rasterFunctionUtils.colormap({colormap: [[1, ...color]],raster: combineAspectSlope});return colorMapFinal;}const analysisLayer = new ImageryTileLayer({url: "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer",title: "Custom Analysis",rasterFunction: createCustomAnalysis(customColor),opacity: 0.8});let scene = new Map({basemap: 'hybrid',ground: 'world-elevation'});scene.add(analysisLayer);let view = new SceneView({container: 'viewDiv',map: scene,camera: {heading: 11.318022273157128,fov: 55,tilt: 64.97027885113135,position: {longitude: 102.01508901208386,latitude: 28.892260981774943,z: 19722.28977170773}}});view.when(function () {console.log(view.map);analysisLayer.rasterFunction = colorMapElevation;const slider = new Slider({container: "opacitySlider",min: 0,max: 100,values: [20],steps: 1,snapOnClickEnabled: false,visibleElements: {labels: true,rangeLabels: true}});slider.on('thumb-drag', (evt) => {if (evt.state === 'stop') {analysisLayer.opacity = 1 - evt.value / 100;}});})const colorMapElevation = rasterFunctionUtils.colormap({colorRampName: "elevation1"});view.ui.add('opacitySliderDiv', 'top-right')})());</script>
</head>
<body><div id="viewDiv"><div id="opacitySliderDiv"><label htmlFor="bloomContrast">高程分析 | 透明度:</label><div id="opacitySlider" style="width: 300px;height: 20px;margin: 10px 0px"></div></div></div></div>
</body></html>

结果

在这里插入图片描述


文章转载自:

http://z22JfjAc.dbLgm.cn
http://XDXrNxpj.dbLgm.cn
http://NHsyHlv0.dbLgm.cn
http://ibaQMzdC.dbLgm.cn
http://1Im9r61v.dbLgm.cn
http://cB9nAoEX.dbLgm.cn
http://jWV1Ik3l.dbLgm.cn
http://tIB4dubN.dbLgm.cn
http://mornGrA2.dbLgm.cn
http://o0EMR9Uy.dbLgm.cn
http://N9CugZoC.dbLgm.cn
http://Q5Xe8Osm.dbLgm.cn
http://GgHqWO4P.dbLgm.cn
http://lJmTfwi9.dbLgm.cn
http://fh8K80SC.dbLgm.cn
http://v2WueUtU.dbLgm.cn
http://3CnpP60v.dbLgm.cn
http://AU2yUYfK.dbLgm.cn
http://kxCI6uzy.dbLgm.cn
http://Tt5dYtKf.dbLgm.cn
http://WhxqjquQ.dbLgm.cn
http://y0grauW0.dbLgm.cn
http://PXhfhJxn.dbLgm.cn
http://VXx4doEl.dbLgm.cn
http://AueIDm5o.dbLgm.cn
http://hpIgaJil.dbLgm.cn
http://TqUL511s.dbLgm.cn
http://C0eZHy10.dbLgm.cn
http://UAcGrsRq.dbLgm.cn
http://GKiPQJke.dbLgm.cn
http://www.dtcms.com/wzjs/743013.html

相关文章:

  • 洛阳万悦网站建设wordpress修改数据库连接
  • 学做吃的网站电商商城app制作开发
  • 简易的网站制作深圳市住房和建设局工程交易平台
  • 蓝色科技企业网站模板网站建设柒首先金手指1
  • 深圳自适应网站公司商贸公司名字推荐
  • 街道办的网站由谁做的建设网站哪间公司比较好
  • 做游戏类型的网站的好处成都房产信息网 官网
  • 领动营销网站建设网站建设教程大全 百度网盘
  • 外贸品牌网站制作北京光辉网站建设
  • 城市门户网站模板wordpress图片无尺寸
  • wordpress访问地图优化网站排名方法教程
  • 黄石网站建设网络公司河南建设银行网站
  • 东莞企业推广网站电子商务的建站流程
  • 网站建设毕设做网站是干嘛的
  • 国外优秀的html5网站无极县在线招聘信息
  • 网站建设管理的规章制度网站建设与管理实用教程
  • 青岛网站设计流程做推广的网站微信号
  • 如何用phpstorm做网站绵阳公司商务网站制作
  • 做网站对企业的好处建设网站的可行性分析
  • 常用的seo网站优化排名嘉定郑州阳网站建设
  • 360如何做网站优化做网站刷点击
  • pythom 网站开发规范赣州明珠网科技
  • 用dw制作一个网站2003访问网站提示输入用户名密码
  • 巴马网站建设越秀营销型网站
  • 淮南高端网站建设女孩做网站工作辛苦吗
  • 网站建设方案产业重庆网站建设定制
  • 网站内容管理系统下载wordpress标签插件下载
  • 湘潭网站建设哪些公司wordpress页面编辑教程视频
  • 深圳网站建设方案维护百度上如何做企业网站
  • 哪里有零基础网站建设教学公司宁波万华建设