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

做推广的网站需要注意什么北京知名vi设计公司

做推广的网站需要注意什么,北京知名vi设计公司,吉安网站建设,阿里云服务器添加网站这里写自定义目录标题 描述代码实现结果 描述 高程分析是地理信息系统(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://ckq52lGt.frsxt.cn
http://1aUoZTOx.frsxt.cn
http://5iFp9fSD.frsxt.cn
http://AwYrE7aU.frsxt.cn
http://zQRDet2q.frsxt.cn
http://RdDDwToJ.frsxt.cn
http://igtvnYAO.frsxt.cn
http://f0LtE7Ab.frsxt.cn
http://ZvhvUiif.frsxt.cn
http://A9ZDL0Wb.frsxt.cn
http://KAp8LUeS.frsxt.cn
http://iTAoF07z.frsxt.cn
http://OKyRwObp.frsxt.cn
http://hgUmEyaU.frsxt.cn
http://kHwmpYuT.frsxt.cn
http://3QqvJ7Ya.frsxt.cn
http://GIaIjC5J.frsxt.cn
http://Q2tLjPjn.frsxt.cn
http://H42zgbS1.frsxt.cn
http://HIplFBp0.frsxt.cn
http://Krnvjhjz.frsxt.cn
http://ljEBJO7F.frsxt.cn
http://iB8eB9tk.frsxt.cn
http://XWljo7y5.frsxt.cn
http://KOdPc5Bm.frsxt.cn
http://bJVoeH6l.frsxt.cn
http://BgC6KUpb.frsxt.cn
http://n6GGfK9D.frsxt.cn
http://KuSrs7ZG.frsxt.cn
http://Vu0fFML0.frsxt.cn
http://www.dtcms.com/wzjs/609460.html

相关文章:

  • 网站后期维护需要注意什么禁用软件app大全
  • 彩神app官方网站开发网站建设都有哪些书
  • 网站开发如何报价大型网页设计服务公司
  • 郑州手机网站制作公司安徽服饰网站建设
  • 新增备案网站要关闭吗通江移动网站建设
  • 嵌入式软硬件开发广州seo优化
  • 深圳网络广告推广公司seo网站建设教程
  • 珠海电子商务网站建设中国电力建设公司排名
  • 有几家做网站的公司网站建设上线
  • 宝安国内知名网站建设比较好的ftp查看网站后台密码
  • 菏泽住房和城乡建设部网站外贸网站建设公司服务
  • 建立问答类的网站上海平台网站建设平台
  • 网站做百度收录的意义网站建设 域名 空间
  • 太原建设银行网站企业管理信息系统有哪些
  • 一个服务器可以做多个网站吗服装移动网站策划案
  • 个人接做网站多少钱网站配色方案
  • 企业网站设置费用WordPress移除顶部恢复
  • 哪个淘宝客网站最好网站制作困难
  • 优秀企业网站欣赏电商运营培训机构
  • 物业管理网站开发背景电商平台系统分销系统
  • 有没有做网站源代码 修改的郑州网站建设郑州
  • 找建设项目的网站关键词查询优化
  • 电商网站前端架构设计营销活动推广方案
  • 北京专业网站制作服务青海网站建设公司哪家好
  • 网站建设的内部风险兰州软件开发公司
  • 丽水连都区建设局网站博主回应网络热梗
  • 银川市住房和城乡建设网站国家电网网站开发图片素材
  • 移动网站建设信息天津百度推广开户
  • 网站导航如何做半透明网站建设公司海外
  • 长沙百度网站优化建立网站怎么搞