69 lines
2.7 KiB
Markdown
69 lines
2.7 KiB
Markdown
---
|
||
title: 发布GeoTIFF文件
|
||
date: 2020-02-25
|
||
author: ac
|
||
tags:
|
||
- GeoServer
|
||
- GeoTIFF
|
||
categories:
|
||
- GIS
|
||
---
|
||
|
||
## 1 数据准备
|
||
|
||
### 1.1 GeoTIFF
|
||
|
||
TIFF格式是当今世界上广泛接受的通用栅格数据格式。 TIFF是用于存储,传输,显示和打印光栅图像(如剪贴画,徽标,扫描的文档等)的合适格式。TIFF图像文件格式可用于存储和传输数字卫星图像,扫描的航拍照片,高程模型以及扫描的地图。
|
||
|
||
考虑到TIFF的流行和TIFF格式是无损可扩展的,许多使用TIFF格式存储数字卫星图像的TIFF用户感到需要以某种方式将地理信息(纬度,经度,地图投影等)嵌入TIFF文件,以便可以被各种 GIS 使用包轻松。这一要求促使了GeoTIFF的发展,GeoTIFF是TIFF文件,其地理(或制图)数据已作为标签嵌入TIFF文件中。
|
||
|
||
GeoTIFF 格式卫星影像是带有坐标信息的图像文件,谷歌卫星影像或是天地图都是 Web Mercator(EPSG:3857)坐标系。
|
||
|
||
GeoTIFF 已成为 GIS 和卫星遥感应用的行业图像标准文件。GeoTIFF可能随附其他文件:
|
||
|
||
- TFW 是提供栅格地理位置所需的文件。
|
||
- XML(可选)随 GeoTIFF 一起出现,并且存储元数据。
|
||
- AUX 辅助文件存储投影和其他信息。
|
||
- OVR 金字塔文件提高了栅格显示的性能。
|
||
|
||
### 1.2 下载数据
|
||
|
||
北京18层谷歌卫星地图:[测试北京18层](https://pan.baidu.com/s/1gfiaXl5)
|
||
|
||
将数据拷贝到GeoServer的数据目录的data目录下,在选择数据源的时候使用相对路径(方便数据和服务的转移及部署)。
|
||
|
||

|
||
|
||
<img src="./images/1615173323671.png" alt="1615173323671" style="zoom:67%;" />
|
||
|
||
## 2 创建数据存储
|
||
|
||

|
||
|
||

|
||
|
||
## 3 新建图层
|
||
|
||

|
||
|
||
点击发布,进入发布页面,因为GeoTIFF文件中存储有坐标信息,所以在【数据】tab页中的坐标参考系统会识别GeoTIFF文件坐标信息和边界。
|
||
|
||

|
||
|
||
点击"保存"即发布完成。
|
||
|
||
## 4 图层预览
|
||
|
||
返回主页的"Layer Preview",点击刚刚发布图层的"Openlayers"可以查看发布好的服务。
|
||
|
||

|
||
|
||

|
||
|
||
## 参考文章
|
||
|
||
[1] The Ultimate List of GIS Formats and Geospatial File Extensions https://gisgeography.com/gis-formats/
|
||
|
||
[2] GeoTIFF – GIS应用程序的标准图像文件格式 https://www.geospatialworld.net/article/geotiff-a-standard-image-file-format-for-gis-applications/
|
||
|
||
[3] 今日花园 http://www.todaygarden.net/down.html |