Web Feature Service and Web Map Service WATER FOR A HEALTHY COUNTRY FLAGSHIP SISS Workshop v2.3 Pavel Golodoniuc, Josh Vote 8 May 2013
Getting started SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote Ensure you have access to the internet Get your virtual machine started using the steps below: Ask one of the helpers for assistance, it’s crucial you get this working. Copy the "SISS in a Box" VMware virtual machine. (On your USB) Start VMware Player. Start the "SISS in a Box" VMware virtual machine (the vmx file). If VMware Player asks, you copied it. The virtual machine should boot. Write down the IP address. You will need it later. Visit this link /
Architecture SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Lingo What is a feature? Feature = fundamental unit of geospatial information Something that can be drawn on a map Not strictly true as not all features have a geometry Features have identity Features have properties SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Simple Features (OGC SF Level 0) Properties are only unstructured data (or geometries) “Flat” representation of table Cannot represent object relationships SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Complex Features (OGC SF Level 1) Properties can be features or structured types Can represent relationships between features Support queries based on feature relationships Support object-based information model SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Interoperability Driven by the need for sharing data. Complex features easier to share. Independent of database schema. No need to individually translate data. WFS produces XML output. XML is platform independent and extensible. Can be transformed into HTML, etc. SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Client applications SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Rendering results SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Community-agreed information models GML Application Schemas SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote XML Schemas (grammar) Geography Markup Language (GML) (spatial primitives) Geoscience Markup Language (GeoSciML) EarthResourceML (mining) Complex Features GML Application Schemas
OGC Spatial Web Services Examples: Web Feature Service (WFS) Web Map Service (WMS) Spatial filters Select features in a bounding box (BBOX) Intersects, contains, etc. Reprojection Conversion of geometries between Spatial Reference Systems Client selects Spatial Reference System in request World Geodetic System 1984 (WGS84) – EPSG:4326 Geocentric Datum of Australia 1994 (GDA94) – EPSG:4283 SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Web Feature Service Provides access to underlying data Query subset of features based on properties GetCapabilities Available feature types GetFeature Get the features of a given type matching a filter DescribeFeatureType Get an XML schema for a feature type SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Web Feature Service for Complex Features Application Schema plugin: GeoServer extension for complex features WFS. No Graphical User Interface yet. Mapping files required. References GML application schemas. SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Web Map Service Portrayal service Renders one or more feature types (layers) as an image GIF, JPEG, PNG, KML/KMZ,... Select subset of features based on properties GetCapabilities Available feature types (layers) GetMap Render features in a bounding box as an image GetFeatureInfo Information about features used to render one pixel in an image GetLegendGraphic SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Styled Layer Descriptor (SLD) Configures WMS rendering Describes how each feature should be depicted on a map Provider can set default style Requestor can provide own style Conditional rules e.g. Colour features according to property value SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
OGC Web Service Implementations Servers GeoServer (WFS, WMS) deegree (WFS, WMS) Mapserver (WMS) ArcGIS Server (WMS) Oracle Mapviewer (WMS) Snowflake GO Publisher (WFS) etc. Clients uDig OpenLayers ArcGIS Google Earth Many, many more. OGC Web Services are very easy to consume. SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
GeoServer Java servlet (runs in Tomcat, Jetty, JBoss, etc.) Open Source (GPLv2, in OSGeo incubation) Built on GeoTools (LGPLv2, OSGeo project) Large international user and developer communities WFS, WMS, WCS Reference implementation for WFS 1.1 PostGIS, Oracle, ArcSDE, MS SQL, ESRI Shapefiles, etc. Core GeoServer supports only simple features Web user interface for simple features only app-schema plugin supports complex features Hand-edited XML configuration files SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Summary Spatial information standards Open Geospatial Consortium GML, WFS, WMS, SLD Many server and client implementations GML application schemas: community-agreed information models Interoperability GeoServer GeoServer is the WFS and WMS component of SISS Simple features easy to publish: graphical user interface Complex features with the app-schema plugin Deliver feature types conforming to GML application schemas SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
What’s next More information on SEEGrid Wiki: WFS SF0 and WMS configuration in GeoServer Hands-on exercise WFS SF1 configuration in GeoServer Demo Deployment techniques for production Linkages with other services (e.g. vocabulary service, persistent identifiers service, etc.) SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
WFS SF1 Configuration – Data Directory SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Mapping File Syntax is defined in AppSchemaDataAccess.xsd Skeleton: SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
namespaces Declares namespaces for the output: SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
sourceDataStores Specifies database connection parameters: SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
targetTypes Specifies reference schemas Typically only 1 is required SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
typeMappings Specifies the complex types One FeatureTypeMapping per type SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
WFS SF1 configuration in GeoServer More detailed information is available at Wiki GeoServer documentation GeoServer Application Schema Support SISS Workshop: Web Feature Service and Web Map Service, Pavel Golodoniuc, Josh Vote
Thank you Pavel Golodoniuc, Josh Vote t wsiss.auscope.org