官术网_书友最值得收藏!

Understanding the interface

Accessing the interface just requires you to open the browser and point it at http://localhost:8080/geoserver/web. If you have read the previous chapter and executed the examples, you should have changed the default password for the admin user.

You can use the new one to log in again on GeoServer; we will now focus our attention on the interface's layout.

Consider the following screenshot. You may recognize three main areas in the GeoServer web interface:

The central area shows you some information about the GeoServer status--the elements inside it change according to the operation you are performing. Just after you log on, it shows you a brief detail of the configured data, and warning or errors that you should correct. The last line shows the release number and there is a link to the administrator mailbox; it defaults to a famous ancient geographer until you insert your data.

To update information about the administrator and its contact point, you can go on the left panel and select the Contact Information link, then insert the proper information about you and your company and press the save button.

On the right-hand side, there is a list showing you GeoServer capabilities. The listed acronyms refer to standard OGC protocols; we will talk about some of them in detail in this book, and each of them has at least one release supported. The numbers are links to the XML documents that exactly describe which data and operations each protocol supports. They are very valuable resources for clients willing to use your services.

Try to open the WMS 1.1.1 link and open the result in a text editor. You can easily understand some sections. Consider the following:

  • The first one contains a description of the service exposed:
        <Service> 
        <Name>OGC:WMS</Name> 
        <Title>GeoServer Web Map Service</Title> 
  • Then you can find some information about the administrator:
       <ContactInformation> 
       <ContactPersonPrimary> 
         <ContactPerson>Stefano Iacovella</ContactPerson> 
         <ContactOrganization>Packt Publishing  
            Ltd.</ContactOrganization> 
       </ContactPersonPrimary> 
       <ContactPosition>Chief geographer</ContactPosition> 
  • The list of the supported operations and the base URL for the requests is as follows:
       <Request> 
       <GetCapabilities> 
       <Format>application/vnd.ogc.wms_xml</Format> 
       <DCPType> 
       <HTTP> 
         <Get> 
            <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"xlink:href="http://localhost:8080
/geoserver/wms?SERVICE=WMS&amp;"/> </Get> <Post> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="http://localhost:8080
/geoserver/wms?SERVICE=WMS&amp;"/> </Post> </HTTP> ... </GetCapabilities> <GetMap> ... </GetMap> <GetFeatureInfo> ... </GetFeatureInfo> <DescribeLayer> ... </DescribeLayer> <GetLegendGraphic> ... </GetLegendGraphic> <GetStyles> ... </GetStyles> </Request>

This information helps clients understand what kind of requests they can do and the response format they can expect. We will use this information in the rest of the book:

 

On the left-hand side, there is a table of contents listing the configuration areas. Each area contains links to administrative operations. When you click on one of them, the central area shows you contextual options. We will explore each area in the rest of this chapter.

主站蜘蛛池模板: 鹤庆县| 图片| 会泽县| 彰武县| 花垣县| 丽江市| 无锡市| 华池县| 阳曲县| 蓝田县| 富民县| 阜城县| 天镇县| 凉山| 平泉县| 犍为县| 平武县| 安远县| 贵德县| 冀州市| 图们市| 麟游县| 东平县| 全南县| 临西县| 临沂市| 南投市| 尤溪县| 绥德县| 兴业县| 沙雅县| 垦利县| 巴东县| 柞水县| 乐至县| 濮阳县| 吴桥县| 宜春市| 开阳县| 太仆寺旗| 巴彦淖尔市|