Implementing OGC Web Services with FME Server
-
Upload
safe-software -
Category
Technology
-
view
1.381 -
download
6
description
Transcript of Implementing OGC Web Services with FME Server
![Page 1: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/1.jpg)
CONNECT. TRANSFORM. AUTOMATE.
FME Server and OGC Web Services
![Page 2: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/2.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/3.jpg)
What is a web service?
![Page 4: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/4.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/5.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/6.jpg)
XML and JSON Transformers
XMLFlattener XMLValidator XMLFormatter XMLUpdater XMLTemplater JSONFlattener JSONTemplaterJust type ‘XML’ or ‘JSON’
![Page 7: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/7.jpg)
Web Transformers
HTTPFetcher / HTTPUploader / HTTP* ImageFetcher Twitter GeoRSSFeatureExtractor WebCharter ArcGISOnline (FMEStore) HTMLtoXHTMLconverter …
![Page 8: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/8.jpg)
Web Formats
![Page 9: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/9.jpg)
Using Web Services
ftp, http, ...
ODATA
OGC (WFS, WCS, WMS, ...)
SOS
ArcGIS Online
any service...
![Page 10: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/10.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/11.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/12.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/13.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/14.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/15.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/16.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/17.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/18.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/19.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/20.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/21.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/22.jpg)
WFS Service Broker Workspace
![Page 23: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/23.jpg)
Cadastral Parcels Extraction and Transformation
![Page 24: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/24.jpg)
Geographical NamesExtraction and Transformation
![Page 25: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/25.jpg)
XML Filter Processor
![Page 26: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/26.jpg)
GetBBox
![Page 27: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/27.jpg)
Inspector: WFS Reader - settings
![Page 28: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/28.jpg)
INSPIRE WFS: Geographic Names
![Page 29: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/29.jpg)
INSPIRE WFS:Cadastral Parcels
![Page 30: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/30.jpg)
Parcels with XML Filter Query
![Page 31: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/31.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/32.jpg)
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
![Page 33: Implementing OGC Web Services with FME Server](https://reader035.fdocuments.us/reader035/viewer/2022062220/55618dfed8b42a71658b5077/html5/thumbnails/33.jpg)
Thank You
More info: [email protected]
Safe’s Demo WFS Server:http://inspire-safe-software.fmecloud.com:80/fmedatastreaming/INSPIRE/INSPIRE_WFS.fmw
FMEpedia:http://fmepedia.safe.com/articles/How_To/GML-Writing