Skip to content
John Paden edited this page Aug 22, 2017 · 8 revisions

Adding Data to GeoServer

Say we get a new GeoTIFF and want to add it as a reference layer in GeoServer. How do we do that?

Copy the file to the server and place it in the data directory:

/db/geoserver/data/* and then place it in the correct directory. An arctic GeoTiff would go in /arctic/raster/

Note that to permanently include the GeoTIFF you will have to add it to the geoserver.zip file here. This file is used in provisions, and is a zip of that same folder (/db/geoserver/data/*).

Next you need to tell GeoServer about the new file:

Log into the geoserver [site]/geoserver and click on stores then Add new Store Then select the correct data type (GeoTIFF in this example).

Select the correct workspace and fill out the information, look at other stores for formatting examples. Under connection parameters click browse and go to /data/[YOUR NEW FILE]. Click Save.

EPSG:3413

WGS 84 / NSIDC Sea Ice Polar Stereographic North

Next you need to publish the layer. Click Publish (on the right). Fill out the name and projection. The projection must be either EPSG:3413 or EPSG:3031. EPSG:3413 is WGS 84 / NSIDC Sea Ice Polar Stereographic North. EPSG:3031 is WGS 84 / Australian Antarctic Polar Stereographic. Make sure to click on both "Compute from Data" and "Compute from Native Bounds" a few times. Make sure SRS handling (projection) is set correctly.

Finally click Save and your done. You can now view it in a layer preview and add the WMS wherever you want to use it (Picker/GeoPortal).

Here are some useful links:

GeoServer Stores

GeoServer Layers