All you need to know about GIS Maps on-premise with Geoserver
This post is also available in: Spanish
GIS Maps with Geoserver in Pandora FMS
Since version 7.0 NG 723, Pandora FMS has a new feature that allows the use of GIS maps with Geoserver for its integration with Pandora FMS GIS maps.
Geoserver is a free, open source Java-based server that allows you to view, edit and share geospatial data.GIS maps with Geoserver work with the free OpenLayers library and by using the WMS (Web Map Service) standard, maps with different output formats are easily and quickly available.
GIS maps with Geoserver also support WCS (Web Coverage Service), WFS (Web Feature Service) and WMTS (Web Map Tile Service).
Supports a large number of input formats, including: PostGIS, Shapefiles, GeoPackage. It also supports a wide range of output formats, including GeoTiff, GML, KML, OpenLayers, PDF, PNG, JPEG.
We are going to make an installation of the GIS map server with Geoserver in which we will get a minimum setting.
- To start, we need a JRE v8 to run it. It is preferable to use the Oracle version although OpenJDK also works correctly. You can also use a Java application server such as Tomcat.
- We download the appropriate version for our operating system from the Geoserver page. In this case we have installed Geoserver on a CentOS 7.4.
- Unzip the file in the directory where we are going to do the installation. For example
./bin/startup.shin the root of the GeoServer directory.
- After starting the server, you will be able to access the configuration web console from
http://host:8080/geoserverwith the user “admin” and the password “geoserver”.
Configuration of GIS maps with Geoserver
Geoserver has an already loaded test environment with a multitude of workspaces, warehouses and layers. But in this case we are going to create a new one from scratch.
- The first thing we will do is add a shapefile that contains the geospatial information we want to publish inside a directory that we are going to create in the path
- The next thing will be to add a workspace in which we will then add the work stores and layers. We navigate to Workspaces and create one by filling in the Name and URI fields.
- The next step will be to create a data warehouse. We navigate to Data Warehouses and create one. We will choose the file type of the vector data source, in this case Shapefile, but as we can see it admits a lot of formats
- Now choose the workspace, assign a name to the data warehouse and indicate the path of the shapefile (where we have saved the files from step 1):
- After creating the data warehouse, it will automatically redirect us to the layer editing page. We’ll click publish and assign it a title:
- The next step will be to select the declared SRS. This indicates the type of geographic projection used for our data. If we don’t know this value or the data doesn’t contain it (the native SRS field would appear automatically filled in), we can use SRS EPSG:4326 which is one of the standard geographic projections.
Now we will be able to define the frame, indicating the limits that we want the layer to have. We can calculate them from the data, with this the maximum and minimum data will appear for both axes that appear in the data that we have loaded or we can fix the margins that we want:
- We have several default styles to choose from in the WMS configuration, in this case it will be polygon.
- In the map preview tab we can see the layer we have created in different formats.
Pandora FMS Configuration
The next step will be to create a WMS connection in the setup of Pandora FMS GIS maps.
Select the type of connection that in this case will be WMS Server, indicate the URL of the WMS server, ie our GIS map server with Geoserver, by default
http://host:8080/geoserver/wms and the layers you want to add to the map, separated by commas, if you want to add more than one layer. It is necessary to take into account that it superimposes the layers so that the first one that we indicate is placed below, the following one puts it on this first one, etc, that is the reason why depending on the order of the layers it is necessary to take into account that they could cover each other. In this case we have used a layer with the map of the world and on this one a layer with the urban areas of Europe:
The result of the map with Pandora FMS GIS agents would be like this:
In short, with this new Pandora FMS feature, we can make connections to WMS servers which we can manage in our own setting. This avoids dependence on external servers such as Open Street Maps or Google Maps and we also achieve great flexibility in the use of GIS maps with Geoserver, as we can customize them.
Since Pandora FMS is a flexible monitoring software, which is capable of monitoring devices, infrastructures, applications, services and business processes, it is necessary to have features like this one, which allows us to customize the service to the maximum, according to our needs. That’s why there are already companies and organizations all over the world that use it. Do you want to know some of our clients and read their success stories? Click here: https://pandorafms.com/pandora-customers/
If you are interested in this particular feature, you can find more information and documentation available on GIS maps with Geoserver at its official website: http://geoserver.org/
Do you want to know all about Pandora FMS? Click here: https://pandorafms.com
If you have any question about Pandora FMS, don’t hesitate to let us know using the contact form that can be found in this link: https://pandorafms.com/contact/
The Pandora FMS team will be happy to assist you.
Don’t forget to have a look at the other articles that we have published in this blog, we are pretty sure that you will like them.
What did you think of this article? Give us your opinion in the comments section below.