AGI STK可以使用本地地形和地图,效果如下:

通过搭建本地地形服务器和地图服务器,可以让STK在与互联网隔绝的情况下使用超精细的地形和地图。相关技术已经测试通过,目前地图数据到谷歌11级,地形数据到30米。当然,如果有更精细的数据也可以添加并应用。

本地地形服务器和地图服务器搭建方便快捷,并且利用已有的全国30米地形数据、全球11级卫图数据,能够较好的服务于相关应用。

Getting Started with STK Terrain Server

STK Terrain makes it easy to import your own terrain data for visualization in Cesium. This walk-through shows you how to obtain raw terrain data, import it into STK Terrain Server, and visualize the resulting tileset in Cesium.

For additional information on installing and configuring the Terrain Server, see the STK Terrain Server Installation Guide.

For importing a Tileset created by another server, see the STK Terrain Server Processed Data Installation Guide.

For documentation on the Public REST API, see the STK Terrain Server Public REST API Guide.

Obtaining raw terrain data

STK Terrain Server can import raw terrain data in any raster format supported by the Geospatial Data Abstraction Library (GDAL), and in most map projections. Let’s start by obtaining GTOPO30, a global, 30 arc-second (approximately 1 kilometer) dataset for the entire world, available from the United States Geological Survey (USGS). This dataset is found in the USGS Long Term archive:

USGS EROS Archive - Products Overview | U.S. Geological Survey

The USGS Long Term Archive states that the dataset can be downloaded from the EarthExplorer Data set Browser. Simply select the Data Sets tab, expand the Digital Elevation tree control, and select the GTOPO30 data set. Click on the Results link to find download links for the data set.

GTOPO30 is split into 33 tiles. To build a tileset with terrain for the entire globe, download all of the files, excluding GT30ANTARCPS Entity ID, because it is redundant with the other files. To save time if you don’t need the entire globe, you can download just the tiles you need.

Once the GTOPO30 tiles are downloaded, extract them to a folder somewhere on your system. You can use 7-Zip to extract *.zip files on Windows. You should have a folder that looks something like this:

Importing the raw terrain into STK Terrain Server

Now that we’ve obtained a raw terrain dataset, let’s import it into STK Terrain Server. Navigate to the Data Sources page:

An STK Terrain Server data source is a raw set of terrain data, like the GTOPO30 data we just downloaded. Let’s create a new data source for our GTOPO30 data by clicking the Add a New Data Source button. We’ll name it “GTOPO30” and enter a brief description of the data source before clicking the Submit button.

The GTOPO30_README.doc at the USGS site – particularly section 2.0 - gives us all of the information we need to configure the data source. It says:

The vertical units represent elevation in meters above mean sea level.

That tells us that the Height Reference field should be set to Mean Sea Level and that the Height Unit field should be set to Meters. Next, it says:

In the DEM, ocean areas have been masked as "no data" and have been assigned a value of -9999.

This tells us that we want to set the Fill Voids With field to Mean Sea Level. A void, or “no data” sample, indicates that a height is not available at a particular location. In some data sources, this simply means that the height is not known at that location, perhaps due to limitations of the sensor used to measure the heights. In those cases, it is reasonable to fill the void with heights from the underlying layer in the tileset, if any. For other data sources, including GTOPO30, a void is used to indicate that there is no land at the location, and thus we would prefer to fill the void by sampling mean sea level at that location.

This correlation of void values to ocean areas also tells us that this global datasource can be used for constructing a watermask. The watermask is a feature that informs client applications where water effects should be rendered on the globe. If constructing a watermask for a tileset, we recommend that a global datasource, such as GTOPO30, be incorporated into the tileset first to establish a global watermask. Additional datasources can then be incorporated into the tileset to define higher resolution watermask datasources.

After making these changes, click Save at the bottom of the page. Our configured data source looks like this:

Next, we’ll add the files that we previously downloaded to this data source. There are two ways to do this. If the files are accessible to the server, and in particular if they are accessible to the Windows user running the IIS app pool on the server, we can simply point the server to the directory in which the files are stored by setting the Directory field above and clicking Save.

More likely, however, we’d like to upload the files to the server. To do that, open the folder containing your GTOPO30 files in Windows Explorer, select all of the files, and drag them onto the Upload Files area of the data source page in your web browser. The upload will take a few minutes, depending on the speed of your network connection to the server.

When the upload completes, you should see all of the files you uploaded in the Available Files list on the left:

Next, we need to tell STK Terrain Server which of these files contain the actual terrain data. In the case of GTOPO30, we can again check the GTOPO30_README.doc file to learn that the *.DEM files contain the terrain data. Typically, as is the case here, the terrain data files are the largest files.

We can quickly select all of the *.DEM Files by typing *.DEM in the Filter by name or file mask box and then clicking Select all. Then, we click the Include Selected in Data Source button, and the files will move over to the Included Elevation Files list on the right. Click Save. STK Terrain Server will inspect each of the select files to learn its type or format. When the save completes, you should see a list like this:

The server has deduced that the GTOPO30 DEM files are "ESRI .hdr Labelled" files.

Building a tileset

At this point, we have added a GTOPO30 data source to the server, but we can’t use a data source directly in Cesium. We need to process this raw data into a tileset that is optimized for rendering.

To create a tileset, visit the Tilesets page, and click the Add a New Tileset button:

We’ll call our new tileset “Global” and give it a reasonable description:

Now we add our GTOPO30 data source to the tileset by clicking the Add button next to GTOPO30, and clicking Save.

STK Terrain Server will begin processing the datasource and incorporating it into the tileset. The entire process will take between a couple of minutes and a couple of hours, depending on the speed of the server.

When processing is complete, click the View on globe button to see what the new tileset looks like in Cesium. Use the Cesium Geocoder Widget (Magnifying Glass icon in the top right of the Cesium Viewer), and search for "Half Dome, CA".

The Tileset Viewer provides additional tools for viewing the features constructed by the Terrain Server. Mouse over the Options menu in the top left corner of the viewer to view the visualization options available. A complete list of the View Tileset Options are defined below:

Option Description
Zoom To Position the camera view to the bounding extents of a selected DataSource.
Wireframe Render the geometry in wireframe mode, a feature useful for inspecting the underlying geometry of the terrain.
Show Tile Coordinates Displays the XYZ tile coordinates for each individual terrain tile.
Suspend LOD Update Restricts the Tileset Viewer from requesting additional tiles. Once enabled, you are free to zoom closer to tiles without requesting or upsampling higher resolution tiles.
Enable Terrain Lighting Shades the terrain based on the position of the Sun.
Enable Watermask Renders water effects over areas of ocean, as defined by the watermask constructed for this tileset.
Show Elevation on Mouseover Displays latitude, longitude, and elevation of the tiles currently in view under the mouse cursor.

Enable Terrain Lighting, and slide the control in the timeline widget located at the bottom of the screen. This will change the position of the sun and give control to the shading provided by the terrain lighting feature.

Click on the home button in the upper right corner of the viewer, and then enable the Watermask to see the global water effect rendered over ocean areas. The water effect includes specular highlights, that are also affected by the position of the sun.

Adding a high-resolution layer to the tileset

So far we’ve imported a single data source and created a tileset from it. More commonly, a tileset is a mosaic of multiple data sources, layered together in a user-defined order. Let’s import another data source, this time containing high-resolution terrain for just a small area.

The National Map Viewer from USGS lets us discover and download data products, including terrain, for the United States. Visit the viewer in your web browser at The National Map - Data Delivery | U.S. Geological Survey.

Click the Download Data link at the top of the page, and then click the first link to “draw and download by bounding box.” Draw a bounding box around a small area of the map, preferably somewhere mountainous. A box will appear with the types of data available for download. Check the box next to Elevation and click Next.

A list of National Elevation Dataset data products will appear, offering the terrain data in various resolutions and formats. STK Terrain Server supports all of the formats presented, including ArcGrid, GridFloat, and IMG format, but the IMG format is a bit smaller so that is a good choice. Choose the ones that you would like to download and click Next. The list of products you select will appear in a pane on the left. Click Checkout. You will need to enter your email address and then check your email for links to download the data products you selected.

Download and extract the terrain files, just as we did for GTOPO30. Then, create a new data source in STK Terrain Server and upload the extracted files. National Elevation Dataset terrain files, like GTOPO30, are expressed in meters above mean sea level. In this case, though, we want any voids in the data to be filled by the underlying layer (GTOPO30 in our case) rather than by sampling the mean sea level surface.

Upload the extracted files as we did before, and then include the primary terrain file, usually the largest file, in the data source.

Finally, let’s add the new data source to our Global tileset by clicking the Add button next to the data source on the tileset page.

The data source is added to the list of included data sources above the existing GTOPO30 data source, indicating that the new source will be layered on top of the existing one. Because GTOPO30 has already been incorporated into the tileset, it is not possible to layer it underneath a new layer. New layers can be added to the top of an existing tileset, but not at the bottom or in the middle.

When we click Save, the new data source will be processed and incorporated into the tileset. When it’s finished, click the View on globe button. In the Cesium Viewer, use the Geocoder Widget again to locate "Half Dome, CA" with the new higher resolution Terrain. You can also hover over the Options menu in the top left corner and choose the NED - Yosemite Data Source from the Zoom To drop-down menu to zoom to the bounding extents of the datasource.

Next Steps

We've just covered the core concepts for layering raw terrain input data to construct a Terrain Tileset. With the techniques covered above, you can construct more detailed Terrain Tilesets with your own data. Analytical Graphics, Inc, also maintains the STK World Terrain dataset that can be deployed directly onto your Terrain Server, or used as the foundation for incorporating your own raw terrain data. Contact us today to learn more.

AGI STK使用本地地形和地图相关推荐

  1. WPF技术触屏上的应用系列(二): 嵌入百度地图、API调用及结合本地数据库在地图上进行自定义标点的实现...

    原文:WPF技术触屏上的应用系列(二): 嵌入百度地图.API调用及结合本地数据库在地图上进行自定义标点的实现 去年某客户单位要做个大屏触屏应用,要对档案资源进行展示之用.客户端是Window7操作系 ...

  2. WPF技术触屏上的应用系列(二): 嵌入百度地图、API调用及结合本地数据库在地图上进行自定义标点的实现

    去年某客户单位要做个大屏触屏应用,要对档案资源进行展示之用.客户端是Window7操作系统,54寸大屏电脑电视一体机.要求有很炫的展示效果,要有一定的视觉冲击力,可触控操作.当然满足客户的要求也可以有 ...

  3. AGI STK 11.6 含所有官方模块

    AGI STK 11.6 通过测试,可正常使用,包含所有官方模块,详见下图. 下载链接:由于存在恶意盗链,现在取消链接,敬请见谅! 感兴趣的童鞋,可+Q:516951770 交流! 链接不会更新了,评 ...

  4. 百度地图服务器不显示本地运行,百度地图定位成功,但地图不显示

    大概回忆一下我的问题:就是用百度定位成功订到,但是下面的地图没有显示,有图有真相---> android studio提示的错误是: E/baidumapsdk: Authentication ...

  5. STK加载地图与高清影像图

    在STK软件中,其3D/2D窗口中地球(其它行星类似)的地图图片是通过特定格式(带经纬度信息)的图片直接加载而成.选择合适的地图图片,除了可以显示不同形式的地理坐标外,还可提升视景仿真动画的逼真效果. ...

  6. Cesium本地影像与地形服务发布

    推荐:将 NSDT场景编辑器 加入你的3D开发工具链. 1 数据切片 目前遥感影像及数字高程模型切片主要包括 gdal 和 ctb 两种方式,相应的开源工具包可以在 Cesium 交流群(QQ 群:1 ...

  7. 百度地图加载空白颜色_本地地图标点的html实现

    地图批量标点的实现方法有很多,也有很多网站支持直接Excel上传数据进行标点的.比如地图无忧等.但都是软收费的模式(要么有使用期限,要么有数量限制),后来在查找资料的过程中,发现了一个在本地可以实现地 ...

  8. 百度地图加载空白颜色_本地地图批量标点的html实现

    地图批量标点的实现方法有很多,也有很多网站支持直接Excel上传数据进行标点的.比如地图无忧等.但都是软收费的模式(要么有使用期限,要么有数量限制),后来在查找资料的过程中,发现了一个在本地可以实现地 ...

  9. STK运载火箭发射仿真

    因为最近需要仿真运载火箭发射过程,而之前也没接触过STK软件,花了近一周的时间还没完全做好,但也学到了不少知识,刚好趁着清明假期,把学习过程中遇到的一些问题做一个记录,同时也希望能帮到有需要的人. 首 ...

  10. 怎样用计算机做一个电子地图,怎样用计算机编制一幅地图

    世界地图集是按统一设计编制的世界和各国地图的系统汇集.古希腊地理学家托勒密为创始人.他在公元2世纪出版的8卷<地理学指南>巨著中,第一次附了27幅世界地图和26幅局部地区地图.这些地图于1 ...

最新文章

  1. 2021河南省高考文科成绩排名查询,2021年河南高考成绩排名及一分一段表
  2. $http中文乱码|param乱码|angular提交后台乱码|
  3. wap打包 本地化 hbuilder_秋收接近尾声 冰城开启秸秆打包、秋整地
  4. sublime text 3 , 3143
  5. JavaScript 之 JS重载
  6. 使用spring cache和ehcache之前必须了解的
  7. NLP--- 将改变你未来沟通方式的7种NLP技术(第二部分)
  8. 12.12 静态文件不记录日志和过期时间
  9. PLAY2.6-SCALA(五) Action的组合、范围的设置以及错误的处理
  10. shared_ptr的简单实现
  11. php上传的文件名乱码,php上传文件时文件名乱码怎么办
  12. 茶几 清明上河图 诗句
  13. html页面背景图片,css如何设置背景图片?
  14. 搜狗站长移动开放适配的pattern匹配规则怎么写?
  15. 计算机DNS怎么配置,如何设置计算机dns?电脑dns设置教程
  16. java编写一个文件查找器
  17. 用Servlet实现统计网站被访问次数的功能
  18. edge 错误 客户端和服务器不支持常用的 SSL 协议版本或密码套件
  19. 虚拟机.linux.pgf90
  20. 推荐10个关键时刻能派上大用场的神级软件,帮你解决80%的问题

热门文章

  1. plink软件初体验3--计算样本杂合度和SNP位点杂合度
  2. 计算机英语作文初中,初中关于电脑的英语作文
  3. android中的后退功能,在Android中单击按钮时触发后退按钮功能
  4. dataGrid使用deleteRow删除数据时会出现 ‘id‘ of undefined
  5. 一步一步搭建客服系统
  6. java实现excel导入数据库
  7. React Hook介绍(二):Effect Hook
  8. python线程池学习
  9. Optimization Week 4: Duality
  10. 物理定律告诉你:表白可能巨亏,分手一定血赚