Geoserver publishes map WMS services, publishes and sets styles

Release of wms service:

        1. Open the geoserver management homepage (the URL is http://localhost:8098/geoserver/web/ ), and use the account name and password set during installation to log in (here is admin/geoserver) to get the following interface:

        2. In the workspace on the left panel, click Workspace, add a new workspace, enter the workspace name and namespace, and click Submit (you can check the current workspace as the default workspace).

        3. Click Storage Warehouse, and click Add New Data Storage 

 

        Geoserver supports the release of multiple data sources. Let's take shp data source release as an example, select the workspace created in the previous step, enter the data source name, and select the directory where the shapefile file is located (note that the shp file needs to be copied to the default data of geoserver It can only be selected under the file storage, the path is E:\geoserver\geoServerData).

 

        Click Save, and the following page pops up:

        4. Select the layer data you want to publish in the above list;

        Fill in the basic parameters: coordinate system such as EPSG:4326 (EPSG:4490), and frame and latitude and longitude frame (you can use the calculation tool that comes with geoserver)

 

       Click the tab Publish to set the layer symbol style: select the style of the published element;

        Click Save;

        5. Preview service. Open the layer preview on the left function panel, and you can see the published layer service. Click the red border button to preview the service just released. 

 

WMS service modification style:

        1. Create a new style (because you want to color it to make a thematic map, you need to create a style)

         Click to add a new style

        2. Select the sld file and upload:

 

        3. Upload the returned data for verification, and check whether there are any errors in the file;

        4. Click Save after checking. At this time, the corresponding style is successfully added to the style list;

        5. Jump to the publishing service page and click Publish;

         6. In the WMS service settings, set the previously added style, and then save

        7. Check the layer to complete all the settings;

        The above is a personal summary of the release of geoserver layers, as well as the process of style release and setting; engineers are welcome to learn from each other and grow together; don't forget to like and pay attention during the learning process.

Guess you like

Origin blog.csdn.net/qqjuanqq/article/details/127385560
Recommended