Skip to content
wliu58i5ki edited this page Dec 11, 2014 · 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.

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.

Next you need to publish the layer. Click Publish (on the right). Fill out the name and projection (Either EPSG:3413 or EPSG:3031) and make sure to click on both "Compute from Data" and "Compute from Native Bounds" a few times. Make sure SRS handling 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