Publish Layers

Install GeoCat Bridge

GeoCat Bridge is a free QGIS Plugin produced by GeoCat.

There are also advanced/premium editions as well.

To install the plugin:

1. Go to Plugins on the top menu

../_images/geocat-plugin-1.png ../_images/spacer11.png

2. Search for GeoCat

../_images/geocat-plugin-2.png ../_images/spacer11.png

3. Select and click the Install Plugin button.

GeoCat Bridgeshould now be available in the Web menu

Add Server

1. If not already open, open the GeoSuite.qgs project

../_images/13-Add-Project.png ../_images/spacer11.png

2. In the top menu, go to Web > GeoCat > Publish

../_images/geocat-1.png ../_images/spacer11.png

3. In the left menu, select Servers

../_images/geocat-2.png ../_images/spacer11.png

4. Select GeoServer from the New Server dropdown at bottom

../_images/geocat-3.png ../_images/spacer11.png

5. Enter a name and your GeoServer url. We’ll leave the rest as default for now. Click the + button to add new authentication as shown below.

../_images/geocat-4.png ../_images/spacer11.png

6. In the authentication form, enter admin and your GeoServer admin password

../_images/geocat-5.png ../_images/spacer11.png

7. Click Test Connection

../_images/geocat-6.png ../_images/spacer11.png

8. Click Test Connection

../_images/geocat-7.png ../_images/spacer11.png

9. Click the Save button at bottom right

../_images/geocat-8.png ../_images/spacer11.png

10. Click the Publish tab on the left menu to display your QGIS project layers

../_images/geocat-9.png ../_images/spacer11.png

**11. On the Metadata tab at right, enter a name, abstract and any other parameters you wish to. **

../_images/geocat-10.png ../_images/spacer11.png

12. Repeat above for each layer

../_images/geocat-10-2.png ../_images/spacer11.png

13. Click the Publish button at bottom:

../_images/geocat-12.png ../_images/spacer11.png

14. The publication process will display as below

../_images/geocat-13.png ../_images/spacer11.png

15. Upon completetion you should see the status for each layer:

../_images/geocat-14.png ../_images/spacer11.png

View Layers

1. Navigate to your GeoServer instance and click on Layers

2. Your layers should now appear as below:

../_images/geocat-15.png ../_images/spacer11.png

Note

When publishing layers to GeoServer using GeoCat Bridge, a new workspace is created using the name of qgs project file. As you can see above, workspace ‘geosuite’ was created and our layers were published to this workspace.

Styles

One of the best features of GeoCat Bridge is that it published Styles along with the layers.

As we can see below, our Parks is using the style we selected in QGIS

../_images/geocat-styles-2.png ../_images/spacer11.png

The Styles can be viewed and edited in the Style menu:

../_images/geocat-styles.png ../_images/spacer11.png

Publish Styles Only

If we wish to, we can publish only the styles. We’ll cover this in the next section

Summary

We installed GeoCat bridge in QGIS and used it to publish our PostGIS layers to GeoServer.