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

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.

主站蜘蛛池模板: 溧阳市| 大同县| 南宁市| 缙云县| 元阳县| 吉木乃县| 龙门县| 噶尔县| 石河子市| 奉化市| 林周县| 鄯善县| 清流县| 新丰县| 井陉县| 馆陶县| 阿克陶县| 富蕴县| 嘉义县| 甘谷县| 岱山县| 和硕县| 大新县| 民权县| 麻栗坡县| 德保县| 新余市| 南澳县| 克什克腾旗| 怀仁县| 仙桃市| 滦南县| 贞丰县| 寿宁县| 秦安县| 合江县| 榆树市| 兰考县| 永善县| 顺平县| 大余县|