implementing ogc web services with fme server

33
CONNECT. TRANSFORM. AUTOMATE. FME Server and OGC Web Services

Upload: safe-software

Post on 24-May-2015

1.379 views

Category:

Technology


6 download

DESCRIPTION

See more FME World Tour 2014 presentations at www.safe.com/recap2014

TRANSCRIPT

Page 1: Implementing OGC Web Services with FME Server

CONNECT. TRANSFORM. AUTOMATE.

FME Server and OGC Web Services

Page 2: Implementing OGC Web Services with FME Server

FME – The Tool for OGC Services

FME 2014!The most powerful tool for creating, transforming, distributing and using complex XML / GML over OGC services

No coding! No XSLT!

Page 3: Implementing OGC Web Services with FME Server

What is a web service?

Page 4: Implementing OGC Web Services with FME Server

What is a Web Service?

HTML Request sent to web server via HTTP GET, POST, PUT or DELETE

URL may have parameters (GET)

Body of request can be anything but is commonly XML or JSON (POST)

Server takes request, grinds it, and sends back response (often XML or JSON)

ftp://

http://

https://

Page 5: Implementing OGC Web Services with FME Server

FME Approach to Web Services

Remove the mystery – no coding required Web service - just another format Consume web services with Inspector

or workspace Do value added transformations /

processing Workspaces which accept / generate

XML* become web services once published to FME Server**

Page 6: Implementing OGC Web Services with FME Server

XML and JSON Transformers

XMLFlattener XMLValidator XMLFormatter XMLUpdater XMLTemplater JSONFlattener JSONTemplaterJust type ‘XML’ or ‘JSON’

Page 7: Implementing OGC Web Services with FME Server

Web Transformers

HTTPFetcher / HTTPUploader / HTTP* ImageFetcher Twitter GeoRSSFeatureExtractor WebCharter ArcGISOnline (FMEStore) HTMLtoXHTMLconverter …

Page 8: Implementing OGC Web Services with FME Server

Web Formats

Page 9: Implementing OGC Web Services with FME Server

Using Web Services

ftp, http, ...

ODATA

OGC (WFS, WCS, WMS, ...)

SOS

ArcGIS Online

any service...

Page 10: Implementing OGC Web Services with FME Server

Your Data to/from Complex GML

FME can read or write over 325 formats FME has supported xsd based GML reading for some time New in FME 2014: GML writer application schema mode Complete support for complex schemas – xsd’s

If you can read it – you can write it!

Page 11: Implementing OGC Web Services with FME Server

Consuming Complex GML data

FME takes the pain out of reading and leveraging complex GML and web services

Benefit from the diverse array of freely available published data sources

New Data Inspector makes it easy to visualize all types of data: 2D or 3D, vector or raster, non-spatial or complex geometries

See web services webinar, August 2013

Page 12: Implementing OGC Web Services with FME Server

FME 2014 GML Developments

Improvements to GML Reader to capture full schema model

New GML writer – write anything that GML reader can read New generic web services

published workspace handles

message brokering and data publish virtually any web service and data stream (xml, json, …)see OGC Web Services lizard talk

Page 13: Implementing OGC Web Services with FME Server

Key points on the FME GML Writer

GML writing in schema mode uses destination model captured from the application schema (xsd)

map directly to destination feature type fields, like other formats

multiple, complex geometry support

geometry names and traits

voidable attributes in output GML / FME null support

XMLTemplater no longer needed for GML writing, but still useful for other XML generation like metadata

Page 14: Implementing OGC Web Services with FME Server

Web Service Request Response

Web Serverurl request via get, post, put, delete

Response JSON, XML

All web services follow the same pattern

Page 15: Implementing OGC Web Services with FME Server

Build any web service!

Any service is now a workspace away.

FME Data Streaming service delivers response.

Power of FME is Transformation

CodeNo Code!!

Page 16: Implementing OGC Web Services with FME Server

FME Workspace as Web Service Broker for WFS

FME WFS Workspace

GetCapabilities Request

Response XMLFME Server

Page 17: Implementing OGC Web Services with FME Server

FME Workspace as Web Service Broker for WFS

FME WFS Workspace

describeFeatureType Request

Response XMLFME Server

Page 18: Implementing OGC Web Services with FME Server

FME Workspace as Web Service Broker for WFS

FME WFS Workspace

getFeature Request

Response XMLFME Server

Page 19: Implementing OGC Web Services with FME Server

FME Workspace as Web Service Broker for WFS

FME WFS Workspace

GetCapabilities Request

Response XML

GetFeature Request

Response GMLFME Server

Page 20: Implementing OGC Web Services with FME Server

WFS Workspace Workflow

1. Extract parameters from request (GET / POST)2. Determine request type3. For GetCapabilities, DescribeFeatureType:

return appropriate response xml4. For GetFeature:

i. Determine request feature typeii. Parse bbox and filter xml to geometry and fieldsiii. Apply bbox and where filter to FeatureReaderiv. Apply schema transformation and output GML

Page 21: Implementing OGC Web Services with FME Server

Workspace Parameters

http://inspire-safe-software.fmecloud.com:80/fmedatastreaming/INSPIRE/INSPIRE_WFS.fmw?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=NamedPlace&MAXFEATURES=1111

Page 22: Implementing OGC Web Services with FME Server

WFS Service Broker Workspace

Page 23: Implementing OGC Web Services with FME Server

Cadastral Parcels Extraction and Transformation

Page 24: Implementing OGC Web Services with FME Server

Geographical NamesExtraction and Transformation

Page 25: Implementing OGC Web Services with FME Server

XML Filter Processor

Page 26: Implementing OGC Web Services with FME Server

GetBBox

Page 27: Implementing OGC Web Services with FME Server

Inspector: WFS Reader - settings

Page 28: Implementing OGC Web Services with FME Server

INSPIRE WFS: Geographic Names

Page 29: Implementing OGC Web Services with FME Server

INSPIRE WFS:Cadastral Parcels

Page 30: Implementing OGC Web Services with FME Server

Parcels with XML Filter Query

Page 31: Implementing OGC Web Services with FME Server

Troubleshooting

Copy http re quest from inspector log to browser to test server responses

Download GML with browser to test if problem is with WFS client / server or GML reading

Try removing all constraints except for max features

Try specifying local schema file (.xsd)

Page 32: Implementing OGC Web Services with FME Server

Summary

FME makes it easy to use, leverage and produce web services

New GML writer, validation and web service support make publishing complex GML to services a breeze (INSPIRE etc)

FME Server workspace service broker approach provides a completely new way to build web services – no code!

Can be used to build all types of web services from WFS, WMS, WMTS, Odata, Junaio AR, SOS, etc.

FME, a “No-code” approach to web services