1. 数据准备
高程数据(DEM),卫星影像数据(DOM)
可供下载数据的网站:
- 地理空间数据云:http://www.gscloud.cn/search
- 遥感数据共享:http://ids.ceode.ac.cn/
2. 创建项目
三维场景的话包括两种模式:Global Scene 和 Local Scene 。区别如下:
- 前者表示球面模式,场景是在球体上渲染;后者是平面模式,场景在平面区域内渲染
Global scenes render the earth as a globe, while local scenes render the surface on a flat plane. Local mode allows for navigation and feature display in a localized or clipped area.
- 前者支持 WGS84(wkid: 4326) 和 WebMercator(wkid:3857/102100) 座标系;后者支持所有投影座标系统(ArcGIS预定义好的座标系,非自定义座标系)
The SceneView supports following coordinate systems in a global scene:
- WGS84 or WebMercator
- Noncached layers with any spatial reference since they will be reprojected to the scene spatial reference
In a local scene the following coordinate systems are supported:
- Any Projected Coordinate System
- Noncached layers with any spatial reference since they will be reprojected to the scene spatial reference
因为我这边只想要一块区域的三维效果,选择创建 Local Scene :
3. 更换图层数据
创建后的初始页面如图所示:
把自带的图层都给删了,换上自己的图层数据:
4. 服务发布
发布服务之前需要先登录Portal或ArcGIS Online账户,否则 Share 菜单下的 WebScene 为灰色:
填写必要内容之后,先分析,再发布:
发布成功后,最后在浏览器中登录ArcGIS账户浏览服务: