Skip to content

SystemDocumentationGeoserver

linaizhong edited this page Nov 19, 2014 · 3 revisions

Introduction

About the configuration of Geoserver for the Spatial Portal.

Dependencies

Configuration

  1. In the geoserver data directory add scale.xml to a new directory "layout".
  2. Create the workspace "ALA".
  3. Create the postgis store "layersdb".
  4. Create a layer named "world". This is a base layer available in the webportal.
  5. Create the style "alastyles". Use alastyles.sld.
  6. Create the style "envelope_style". Use envelope_style.sld.
  7. Create the style "distributions_style". Use distributions_style.sld.
  8. Create the layer "Distributions" * create from: new SQL view on layersdb * sql: select * from distributions where geom_idx= %s% limit 1 * params: name="s", default=10000, validation="^[\w\d\s]+$" * attributes: the_geom column, type=Geometry, SRID=4326 * bounds: -180, -90, 180, 90 * style: distributions_style
  9. Create the layer "Objects" * create from: new SQL view on layersdb * sql: select * from objects where pid= '%s%' * params: name="s", default=1, validation="^[\w\d\s]+$" * attributes: the_geom column, type=Geometry, SRID=4326 * bounds: -180, -90, 180, 90 * style: distributions_style

All layers are added to the database as part of the Backend processes.

Clone this wiki locally