TAGS

There are no tags associated with this article.

How to publish geoTIFF as a WMS with use of GeoServer on OSGeoLive

1.  Create an instance with the OSGeoLive image

The process of creating an OSGeoLive instance is the same as the basic one, but in the Source tab select the OSGeoLive image.

If you need help creating a new instance, you can follow the guide below:

https://creodias.eu/-/a-9-16

Access to the OSGeoLive instance via the console is non-standard and is presented in the guide in point 2.

1.1 Assign a Floating IP to the newly created instance.

If you need help assigning a Floating IP address to your instance, you can follow the guide below:

https://creodias.eu/-/a-2

1.2 Create a new Security Group that will have a rule for GeoServer.

GeoServer requires to create a rule for port 8082.

To do this, create a new Security Group that will have this rule.

Then click on the "Manage Rules" action button to add a new rule.

The new rule should have the following fields:

Remember to assign the newly created Security Group to the instance.

If you need help creating/using a new Security Group, you can follow the guide below:

https://creodias.eu/-/how-to-use-security-groups-in-horizon-

2. Access the OSGeoLive instance

To access the GUI of the OSGeoLive instance, please follow the guide below:

https://creodias.eu/-/how-to-get-access-to-gui-on-vm-with-osgeolive-image-

3. GeoServer startup

After accessing the instance via x2go start the GeoServer.

To do this, in the application menu, go to Geospatial → Web Services → GeoServer → Start GeoServer.

When the "Starting web browser" message appears, press the OK button.

After pressing the button you will be redirected to the address:

http://localhost:8082/geoserver/web/

in your browser on the instance.

There are login fields in the top right corner of the welcome page.

To log in, use the default login details:

username: admin

password: geoserver

And then click on the Login button.

For security reasons, we recommend change the password after logging in.

In the left menu in the Security section, select Users, Groups, Roles.

Then select the Users/Groups tab.

Select the admin user.

Enter new passwords for the admin user, and then save the new password by pressing the Save button in the bottom section of the page.

4. Publish geoTIFF

To public data, go to the Data section, and then select Stores.

Then select Add new store.

From the Raster Data Sources section, select GeoTIFF.


Then on the form in the Data Source Name field enter the name of the data.
In the URL field, browse the path to the file you want to publish, and then click on the Save button.

Then, in the Action column, click on Publish.

You will be redirected to a panel where you can edit the layer. If the layer does not require editing or you want to save the changes, click the Save button at the bottom of the page.

Then select Layer Preview from the Data section in left menu. Use the search box to search for published data.

In the Common Formats column, you can select OpenLayers so you can get a quick preview.

In the All Formats column, you can select formats with which you can download data e.g. jpg, png, gif.

By copying the generated link and replacing localhost with the floating ip address of the OSGeoLive instance, you can access the data outside the instance.