- GeoServer Beginner's Guide(Second Edition)
- Stefano Iacovella
- 268字
- 2021-07-08 09:21:15
The KML preview
We have seen that other than OpenLayers, several preview formats are available. Now we will use another popular format: Keyhole Markup Language (KML). This time, GeoServer will not open up an application as you select the layer to preview. In fact, KML is a data format and you will need another piece of software to display it on a map. Perform the following steps:
- If you have not already installed Google Earth, you can download it from http://www.google.com//earth/desktop.
- Accept the license agreement and save the installation file. Then, execute it and install Google Earth on your personal computer.
- Point your browser to the Layer Preview page, scroll to the topp:states layer, and click on the KML link.
- You are prompted to save or open the KML output file. Save it on your filesystem.
- Open the KML file in Google Earth. Consider the following screenshot:

OK, that was pretty cool. We had GeoServer displaying layers on Google Earth. Drop the book and play around with Google Earth. Zoom in and out, and notice how it streams data from GeoServer. In fact, the KML file does not contain any data, just a reference to them. Any operation on the map triggers a request to GeoServer, and its response is a stream of data to the Google Earth client.
- GeoServer Cookbook
- Pandas Cookbook
- SpringMVC+MyBatis快速開發(fā)與項目實戰(zhàn)
- 構建移動網(wǎng)站與APP:HTML 5移動開發(fā)入門與實戰(zhàn)(跨平臺移動開發(fā)叢書)
- 精通Scrapy網(wǎng)絡爬蟲
- 微信公眾平臺開發(fā):從零基礎到ThinkPHP5高性能框架實踐
- Linux操作系統(tǒng)基礎案例教程
- 蘋果的產(chǎn)品設計之道:創(chuàng)建優(yōu)秀產(chǎn)品、服務和用戶體驗的七個原則
- Arduino Wearable Projects
- 零基礎C#學習筆記
- After Effects CC技術大全
- Java高手是怎樣煉成的:原理、方法與實踐
- 小學生C++趣味編程從入門到精通
- Python全棧開發(fā):數(shù)據(jù)分析
- Getting Started with SQL Server 2014 Administration