gi2012 bartoli-intro opengeosuite
DESCRIPTION
12. Sächsisches GIS-ForumDresden: 18./19.05.2012GI2012-OpenDataPolicies-FORUMTRANSCRIPT
Introduction to
OpenGeo Suite An overview
19.05.2012 / GI2012
Autore: Francesco Bartoli 1
Agenda
What is OpenGeo Suite?
PostGIS, a spatial database
GeoServer, a geodata engine server
GeoWebCache, a map tile cache server
GeoExplorer, a ready to use fully desktop-like
webGIS application
OpenLayers and GeoExt, web map client
frameworks
19.05.2012 / GI2012
Autore: Francesco Bartoli
2
Fully qualified geospatial stack
19.05.2012 / GI2012
Autore: Francesco Bartoli
3
One single packaged software
Cross platform
Easy installation
Open/proprietary formats
fully supported
Ready to publish maps
Out-of-the-box OGC compliant
Almost entirely web-based
Dashboard
Central panel for control and management
At a glance
Components
Preferences
Start&Stop
19.05.2012 / GI2012
Autore: Francesco Bartoli
4
PostGIS
PgAdmin
Visually create spatial database
Easily populating with data
Shapefile Loader Plugin
Query editor CREATE TABLE "smallworld" (gid serial PRIMARY
KEY, "placename" varchar(50), "comment" varchar(255)
, "year" numeric);
SELECT AddGeometryColumn('','smallworld','the_geom',
'4326','POINT',2);
INSERT INTO smallworld (the_geom, placename, comment,
year) VALUES (ST_GeomFromText('POINT(51.05
13.75)',4326), ’Dresden', ’GI2012', 2012);
19.05.2012 / GI2012
Autore: Francesco Bartoli
5
GeoServer concepts
Hierarchical structure
Workspace used to group similar
data
Store, a container for geographical
data (any data source supported)
Layer, collection of features or a
coverage
Layer group, grouping of layers
Style as a visualization directive
for rendering geographic data
19.05.2012 / GI2012
Autore: Francesco Bartoli
6
Data sources Files
Shapefile
GeoTIFF
ArcGrid
JPEG2000
GDAL formats
Databases PostGIS
ArcSDE
Oracle Spatial
DB2
SQL Server
19.05.2012 / GI2012
Autore: Francesco Bartoli
7
OGC WMS Protocol
Certified compliant WMS (sample request) http://ogsuite.geobeyond.it/geoserver/wms?
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetMap&
LAYERS=usa:states&
SRS=EPSG:4326&
BBOX=24.956,-124.731,49.372,-66.97&
FORMAT=image/png&
WIDTH=600&
HEIGHT=255
19.05.2012 / GI2012
Autore: Francesco Bartoli
8
OGC WFS Protocol
Reference implementation of WFS
http://ogsuite.geobeyond.it/geoserver/wfs?
SERVICE=wfs&
VERSION=1.1.0&
REQUEST=GetFeature&
TYPENAME=usa:states&
FEATUREID=states.39
19.05.2012 / GI2012
Autore: Francesco Bartoli
9
Administration back office
Publishing data from File-System
Loading many shapefiles
Importing directory of files
Importing from PostGIS
Cascading WMS
Creating a layer group
Styling layers
19.05.2012 / GI2012
Autore: Francesco Bartoli
10
GeoWebCache
Tile Proxying
Strategies
Seeding a Tile-Cache
On-Demand
19.05.2012 / GI2012
Autore: Francesco Bartoli
11
GeoExplorer
Out-Off-The-Box WebGIS application
Comsuming layers from remote/local
GeoServer
Composer – Editing map and layers
Viewer – Browsing map and layers
Exporting map with selected tools
Printing a static map
http://ogsuite.geobeyond.it/geoexplorer/viewer#maps/1
19.05.2012 / GI2012
Autore: Francesco Bartoli
12
OpenLayers Javascript web mapping framework:
<script src="openlayers/OpenLayers.js"></script> ...
<div id="map-id”></div> <script> var map = new OpenLayers.Map("map-id");
var world = new OpenLayers.Layer.WMS(
"Earth",
"http://localhost:8080/geoserver/wms", {layers: "earthgroup”}
);
map.addLayer(world);
map.zoomToMaxExtent();
</script>
You can add layers and controls
19.05.2012 / GI2012
Autore: Francesco Bartoli
13
GeoExt
<script src="openlayers/OpenLayers.js" type="text/javascript"></script> <script src="geoext/script/GeoExt.js" type="text/javascript"></script> <script type="text/javascript"> Ext.onReady(function() { var world = new OpenLayers.Layer.WMS( "Global Imagery", "/geoserver/wms/", {layers: "earthgroup"} ); var mapwin = new Ext.Window({ title: "GeoExt Map 1", width: 600, height: 400, layout: "fit", items: { xtype: "gx_mappanel", layers: [world] } }); mapwin.show(); }); </script>
19.05.2012 / GI2012
Autore: Francesco Bartoli
14
Contact us
Geobeyond partnered with OpenGeo
Professional support
Follow us on twitter
Contact [email protected]
19.05.2012 / GI2012
Autore: Francesco Bartoli
15