Adding a GDAL Supported Format

In case the GDAL libraries are available, it is possible to access to several GDAL’s supported data formats. Actually, the available GDAL plugins allow to support DTED, EHdr, ERDASImg, MrSID, JP2K (via MrSID Driver) and NITF data formats. Moreover, in case a valid license have been purchased and the proper native library is available, also ECW, JP2K (via ECW) and JP2K (via Kakadu) are supported. This section provides instructions to add and publish a MrSID, ECW and JP2K datasets.

Warning

This assumes the GeoServer image GDAL plug-in is already installed. The GDAL plugin is normally an extension.

If the stores described in this section are not available, install the ‘geoserver-2.18.SNAPSHOT-gdal-plugin’ from %TRAINING_ROOT%\data\plugins\. Just decompress the zip file into %TRAINING_ROOT%\tomcat\instances\instance1\webapps\geoserver\WEB-INF\lib\ and restart GeoServer.

MrSID Data Set

  1. Open the web browser and navigate to the GeoServer Welcome Page.

  2. Select Add stores from the interface.

    ../_images/geotiff_addstores.png
  3. Select MrSID - MrSID Coverage Format from the set of available Raster Data Sources.

    ../_images/gdal_sources.png
  4. Specify a proper name (as an instance, c3008957_nes_20) in the Data Source Name field of the interface.

  5. Specify file:%TRAINING_ROOT%/data/user_data/c3008957_nes_20/c3008957_nes_20.sid as URL of the sample data in the Connections Parameter’s - URL field. (replace %TRAINING_ROOT% with your current training root directory. If you are using Windows, check that you use / symbol in the paths, otherwise the plugin will show an error because cannot find the resource)

    ../_images/gdal_addraster.jpg
  6. Click Save.

  7. Assign a proper layername (e.g c3008957_nes_20) then publish the layer by clicking on the publish link.

    ../_images/gdal_publish.jpg
  8. click on Save when done.

At this point the MrSID data is being published with GeoServer.

  1. Click the Layer Preview link in the left GeoServer menu.

  2. Look for a geosolutions:c3008957_nes_20 layer and click the OpenLayers link beside of it.

    ../_images/gdal_preview.jpg
    ../_images/gdal_openlayer.jpg

ECW Data Set

Warning

Attention, you need a license in order to use ECW data sets. Here we are using a free distributed ECW file only for demonstration.

ECW (Enhanced Compression Wavelet) is a proprietary wavelet compression image format optimized for aerial and satellite imagery.

  1. Open the web browser and navigate to the GeoServer Welcome Page.

  2. Select Add stores from the interface.

    ../_images/geotiff_addstores.png
  3. Select ECW - ECW Coverage Format from the set of available Raster Data Sources.

    ../_images/ecw.png
  4. Specify a proper name (as an instance, TerraColor_Sydney_AU_15m) in the Data Source Name field of the interface.

  5. Specify file:%TRAINING_ROOT%/data/user_data/tc_sydney_au_ecw/TerraColor_Sydney_AU_15m.ecw as URL of the sample data in the Connections Parameter’s - URL field (replace %TRAINING_ROOT% with your current training root directory. If you are using Windows, check that you use / symbol in the paths, otherwise the plugin will show an error because cannot find the resource)

    ../_images/ecw0.png
  6. Click Save.

  7. Assign a proper layername (e.g TerraColor_Sydney_AU_15m) then publish the layer by clicking on the publish link.

    ../_images/ecw1.png

At this point the ECW data is being published with GeoServer.

  1. Click the Layer Preview link in the left GeoServer menu.

  2. Look for a geosolutions:TerraColor_Sydney_AU_15m layer and click the OpenLayers link beside of it.

    ../_images/ecw3.png
    ../_images/ecw4.png

JP2K Data Set

JPEG 2000 is an image coding system that uses state-of-the-art compression techniques based on wavelet technology.

  1. Open the web browser and navigate to the GeoServer Welcome Page.

  2. Select Add stores from the interface.

    ../_images/geotiff_addstores.png
  3. Select JP2ECW - JP2 (ECW) Coverage Format from the set of available Raster Data Sources.

    Note

    We used JP2ECW - JP2 (ECW) Coverage Format because JP2MrSID - JP2 (MrSID) Coverage Format is not fully stable, and may not work properly especially with several Linux distributions.

    ../_images/jpeg2k0.png
  4. Specify a proper name (as an instance, TerraColor_Sydney_AU_15m_JP2K) in the Data Source Name field of the interface.

  5. Specify file:%TRAINING_ROOT%/data/user_data/tc_sydney_au_jp2/TerraColor_Sydney_AU_15m.jp2 as URL of the sample data in the Connections Parameter’s - URL field. (replace %TRAINING_ROOT% with your current training root directory. If you are using Windows, check that you use / symbol in the paths, otherwise the plugin will show an error because cannot find the resource)

    ../_images/jpeg2k1.png
  6. Click Save.

  7. Assign a proper layername (e.g TerraColor_Sydney_AU_15m_JP2K) then publish the layer by clicking on the publish link.

    ../_images/jpeg2k2.png
    ../_images/jpeg2k3.png

At this point the JP2K data is being published with GeoServer.

  1. Click the Layer Preview link in the left GeoServer menu.
  2. Look for a geosolutions:TerraColor_Sydney_AU_15m_JP2K layer and click the OpenLayers link beside of it.

DTED Data Set

Digital Terrain Elevation Data (DTED) is an image format which consist of a matrix of terrain elevation values.

DTED is a standard National Geospatial-Intelligence Agency (NGA) product that provides medium resolution, quantitative data in a digital format for military system applications that require terrain elevation.

  1. Open the web browser and navigate to the GeoServer Welcome Page.

  2. Select Add stores from the interface.

    ../_images/geotiff_addstores.png
  3. Select DTED - DTED Coverage Format from the set of available Raster Data Sources.

    ../_images/dted0.png
  4. Specify a proper name (as an instance, n43_dted_ds) in the Data Source Name field of the interface.

  5. Specify file:%TRAINING_ROOT%/data/user_data/n43.dt0 as URL of the sample data in the Connections Parameter’s - URL field. (replace %TRAINING_ROOT% with your current training root directory. If you are using Windows, check that you use / symbol in the paths, otherwise the plugin will show an error because cannot find the resource)

    ../_images/dted1.png
  6. Click Save.

  7. Assign a proper layername (e.g n43_DTED) then publish the layer by clicking on the publish link.

    ../_images/dted2.png
    ../_images/dted3.png

At this point the DTED data is being published with GeoServer.

  1. Click the Layer Preview link in the left GeoServer menu.
  2. Look for a geosolutions:n43_DTED layer and click the OpenLayers link beside of it.
../_images/dted4.png