- 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.
- Mastering ServiceStack
- Django開發(fā)從入門到實踐
- Python Game Programming By Example
- Unity Virtual Reality Projects
- 機器人Python青少年編程開發(fā)實例
- AngularJS深度剖析與最佳實踐
- TypeScript圖形渲染實戰(zhàn):基于WebGL的3D架構與實現(xiàn)
- Java Web應用開發(fā)技術與案例教程(第2版)
- Java Web開發(fā)技術教程
- MySQL數(shù)據(jù)庫基礎實例教程(微課版)
- 從零開始學C#
- Instant jQuery Boilerplate for Plugins
- Simulation for Data Science with R
- 數(shù)據(jù)分析與挖掘算法:Python實戰(zhàn)
- WebStorm Essentials