Beyond GeoServer Basics

14
Beyond GeoServer Basics

Transcript of Beyond GeoServer Basics

Beyond GeoServer Basics

2

WelcomeTom Ingold VP Products [email protected] @TIBoundless

Open Geospatial Consortium Sensor Web Enablement Boundless Technical Representative

Boundless Boundless provides geospatial tools and services for managing data and building applications.

Boundless Products OpenGeo Suite

OpenLayers, GeoServer, GWC,PostGIS Composer, WPS Builder

QGIS geoserver & opengeo suite plugins web application builder

Community GeoNode, GeoGig, GeoScript, gsconfig

3

WelcomeJody Garnett Technical Lead [email protected] @jodygarnett

Open Source Geospatial Foundation OSGeo Incubation Chair GeoTools Project Officer

Eclipse Foundation LocationTech Project Steering Committee LocationTech Technology Project

Boundless Boundless provides geospatial tools and services for managing data and building applications.

Open Source Projects GeoTools GeoServer uDig

Beyond GeoServer Basics• Background • Setup • Catalog and Data Operations • CRS Transforms • Data filtering • Data Processing and Analysis

4

Setup

Data Downloads• Data Directory download – http://dev.boundlessgeo.com/~mike/

gsadv_data_dir.zip • PostGIS data dump: • http://dev.boundlessgeo.com/~mike/gsadv_pgdb.zip

• shaded relief download • http://www.naturalearthdata.com/downloads/10m-

raster-data/10m-shaded-relief/

6

OpenGeo Suite Install• PostGIS and GeoServer • WPS and Client Tools

7

Create two Databases• Create database "earth" and "advanced"

8

restore databases from backup• Unzip gsadv_pgdb.zip • Command line – pg_restore -U postgres -d advanced -f advanced.bak – pg_restore -U postgres -d earth -f earth.bak

• Or use PgAdmin to restore each database

9

Alter Column measure_at• In the "advanced" database global table – ALTER TABLE global

ALTER COLUMN measure_atTYPE date USINGto_timestamp(measure_at, "yyyy:mm:dd hh24:mi:ss")

10

Data Directory • Windows – C:\ProgramData <-- you must type this!!! – C:\ProgramData\Boundless\OpenGeo\geoserver – tip: Use the shortcut

• Linux – /var/lib/opengeo/geoserver

• Mac – ~/Library/Application Support/GeoServer/data_dir – tip: use the shortcut!

11

Replace Data Directory• 1. Stop GeoServer • 2. Go to data directory • 3. Rename geoserver to geoserver_old • 4. Unzip gadv_data_dir.zip • 5. Restart GeoServer

12

Start GeoServer• 1. Start GeoServer • 2. Open up GeoServer

login with admin/geoserver • 3. check "stores" page

13

Setup Shaded Relief• 1. Unzip SH_HR.zip • 2. Rename SH_HR.tif to shadedrelief.tif • 3. Updated store definition with correct path

• 4. Double Check Layer CRS – Check force declared, and reload bands

14