LOading wms layers from qgis cloud to geoserver

This post will demonstrate loading WMS layers created and stored in a QGIS Cloud database to Geoserver on the PC. For this demo, you should have a QGIS Cloud account and Geoserver installed on your PC.

Sample data to work with can be downloaded at the link below:

https://www.dropbox.com/s/zyoe0egwlr8rl0x/geology.zip?dl=0

Create the WMS layer using QGIS Cloud plugin

1. Launch Desktop QGIS and click on the Cloud Settings icon on the main menu bar.

16

2. In the QGIS Cloud window, Choose the account tab and click on Login and enter Username and password for your QGIS Cloud account. Once login is successful, the window will open a pane where the databases are listed.

image

3. Select the layer to be uploaded into the QGIS Cloud account. For our example, a multipolygon layer-geology is selected. Note that the layer is styled before upload.

image

4. In the QGIS Cloud plugin window, click on the Upload tab to open the upload window. The layer on the map canvas automatically is set in the Upload window pane. select the layer and click Upload data (pointer cursor position)

2

5.To complete the upload process, the user will be prompted to save the layer as a project.

3

6, Click on the Map tab and select Publish map.

image

7. Copy out the URL address of the WMS format of the web map.(see it red boxed in the screenshot below)

image

 

Store in Geoserver as WMS layer

8. Login into Geoserver admin page. Click on Add Stores.

image

9. In the New data source page, go down to WMS option(red boxed) and click.

image

10. In the New WMS Connection page, input a layer name under the Basic Store info section and input the copied URL address from QGIS Cloud in the Connection Info section. Click Save at the bottom of the page to save the connection.

image

11. On the next page click on publish(red boxed on the screenshot below) to publish the layer to Geoserver.

image

12. The Edit Layer page will open. Here input a name for the new layer. You may also add a description.

11

13. Scroll down the page to the Coordinate Reference Systems section. The Native SRS is the CRS of the layer from source. Declared SRS is the CRS the user prefers. Force declared option simply means the system will be forced to use the CRS inputted for the Declared SRS. Native Bound Boxes are the bounds from the data source and is better to compute from the native bounds unless preferences are otherwise.  Click Save to save the layer data.

12

14. A) Click on the Layer Preview tab on the Left hand corner. B) Search for the layer in the search tab C) Click on the Openlayers option to preview the layer.

13

15. The browser page opens with the layer displayed.

14

16. The layer also displays some WFS capabilities. Click on the features and attribute information is displayed under the map canvas (See red boxed area on the screenshot below)

15

Thank you for following the blog.

Advertisements

One response to “LOading wms layers from qgis cloud to geoserver

  1. Pingback: QGIS Cloud WMS to Local GeoServer | Dosen GIS·

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s