NOTE: the zip file must contain PRJ file for proper projection.

Geoserver Extractor handles

  1. zip file with ESRI shapefile (consists with .shp, .shx, .dbf, .prj and etc.).
  2. GeoTiff image with Geo tag in the header

The extractor publishes the ESRI shapefile or Geotiff file to geoserver as WMS service. In order for the extractor to work, you need to two things:

Install Geoserver

http://docs.geoserver.org/stable/en/user/installation/war.html

1. Download geoserver war

wget http://downloads.sourceforge.net/geoserver/geoserver-2.3.0-war.zip

2. Unzip the file 

unzip geoserver-2.3.0-war.zip

3. Deploy the war to tomcat

sudo cp geoserver.war /var/lib/tomcat6/webapps/

4. Access web page for geoserver admin at http://[your_server]/geoserver and Login

The inital access to the admin page will initialize the setting of geoserver. Therefore you have to access it at least once.

5. Follow the security instructions at the admin page

Here are example instrucitons:

- open /var/lib/tomcat6/webapps/geoserver/data/security/masterpw.info
- make a note of the master pw from the file and delete the file
- delete /var/lib/tomcat6/webapps/geoserver/data/security/users.properties.old

6. Change the password of "admin" user

  1. go to "Security/users, groups, roles" - "users/groups tab"
  2. click "admin" user
  3. change the password and save

7. Clean the example layers at geoserver

  1. go to Workspaces
  2. select all workspaces
  3. remove selected workspace

8. Add new workspace for medici with the following information

Name: medici
Namespace URI: http://medici.ncsa.illinois.edu
Default workspace: true
Settings: Enabled
Services: Check WMS

Setting up Geoserver Extractor

The following software are needed for the Geoserver Extractor. Also it needs the "identify" command from Magik. Since Image Extractor is usually installed as default, we assume that it's already installed.

1. Install GDAL libraries

Installing GDAL libraries
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install gdal-bin
sudo apt-get install python-gdal
sudo apt-get install proj
sudo apt-get install libgdal-dev

2. Update the extractor configuration

  1. Edit /home/medici/extractor/server.properties with the following info:
geoserver.server=http://lowermississippi.ncsa.illinois.edu/geoserver
geoserver.owsserver=http://lowermississippi.ncsa.illinois.edu/geoserver/wms
geoserver.username=admin
geoserver.password=[password]

3. Restart Extractor Service

sudo /etc/init.d/medici-extractor restart

 

 

 

  • No labels