The OGC Web Server Suite is an API to create your own OGC Web Server for WMS, WFS-T, WCS, and CSW services, and tailor it to your needs. To get you started, the OGC Web Server Suite provides a ready-to-run sample OGC Web Server. This article explains how to run and use this server.

As an alternative approach, you can make use of LuciadFusion Studio and Platform to set up an OGC Web Server. LuciadFusion Studio and LuciadFusion Platform offer an end-user solution to manage your geospatial data and serve that data to clients. It supports the OGC protocols WMS, WFS, WCS, WMTS, CSW, and 3D Tiles, as well as the Luciad Tile Service (LTS) protocol and others.

Using the ready-to-run sample OGC Web Server

You can start the sample OGC Web Server with the OGCServer script available in the root of your product installation.

After you started the server, you can use the following URLs to verify that your OGC services are up and running:

These URLs send a GetCapabilities request to the OGC services. The purpose of this operation is to obtain service metadata. The service returns the metadata in an XML document with a description of the service content and acceptable request parameter values.

In addition, you can access the server through a web page available at:

This web page is part of the sample OGC Web Server and gives access to a few sample OGC service requests. You can find the source code of this web page in build/ogc/resources.

To use OGC services and their data in your application, you can rely on the OGC Web Client API. For more information, see Data Formats: OGC WMS, Data Formats: OGC WCS, Data Formats: OGC WFS, and Data Formats: OGC WMTS.

Running the sample OGC Web Server in an IDE

You can also run the sample OGC Web Server directly in your IDE, to ease the development and testing of your own OGC Web Server.

The sample OGC Web Server consists of these services and code:

  • A sample WMS service, based on the sample code in samples.wms.server

  • A sample WFS-T service, based on the sample code in samples.ogc.wfs.server

  • A sample WCS service, based on the sample code in samples.ogc.wcs.server

  • A sample CSW service, based on the sample code in samples.csw.server

  • A main class that uses Spring Boot to discover these OGC services and start a server: samples.ogc.server.Main.

By running the main class, you start a LuciadOGCServices server on port 8080. Before you run the main class, add config, sample/resources and build/ogc/resources to your classpath, to make sure that all required OGC Web Server configuration files can be found. If the sample starts successfully, it prints out the GetCapabilities URLs of the available OGC services.